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