作者Johnpolo (隐行)
站内Statistics
标题[问题] 请问R语言
时间Thu Nov 25 11:36:02 2010
请问R语言的hist的语法
假如要画频率图
那个hist(x,brokes,.....)
x是不是一定要数值
可是我现在有一笔excel的资料
要如何套用划出hist的频率图
--
※ 发信站: 批踢踢实业坊(ptt.cc)
1F:→ Johnpolo:请问是要把excel所有资料套在x栏里面吗?那资料有8000笔 11/25 11:43
2F:→ gsuper:把8000个数字变成向量 x , >hist(x,breaks= 8000/20 ) 11/25 14:07
3F:→ Johnpolo:可是他说x必须要市数字才行 11/25 14:29
4F:→ gsuper:我的意思是,x <- c(10.3 , 11.5 , 18) , 像这样就有3个数字 11/25 14:40
5F:→ gsuper:要把 8000 个数字送到 R 里面 , 你得研究一下 read.table() 11/25 14:41
※ 编辑: Johnpolo 来自: 114.32.49.184 (06/16 14:56)