0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Google Colaboratory で R を使う

Last updated at Posted at 2022-05-19

Google Colaboratory で R を使う

以下の内容の雛形ファイル.ipynb を作り,

{
  "cells": [],
  "metadata": {
    "colab": {
      "collapsed_sections": [],
      "name": "Title",
      "toc_visible": true,
      "provenance": []
    },
    "kernelspec": {
      "display_name": "R",
      "name": "ir"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}

Google Colaboratory の「ファイル --> ノートブックをアップロード」で作っておいた雛形ファイルを指定して読み込む。

アレヤコレヤが終わって,たとえば

t.test(1:6, 3:10)

と入力して,以下の結果が表示されれば OK.

	Welch Two Sample t-test

data:  1:6 and 3:10
t = -2.5981, df = 11.979, p-value = 0.02334
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -5.5163747 -0.4836253
sample estimates:
mean of x mean of y 
      3.5       6.5 
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?