如下显示:
> weightBJ_data= read.table("E:\\london\\weightBJ.txt",header=T,sep="\t")
> head(weightBJ_data)
first second
1 27.14000 31.36667
2 23.44167 24.07000
3 NA NA
4 20.30000 21.56667
5 24.62000 26.17000
6 22.86500 23.30667
>
> cor.test(first,second,data= weightBJ_data)
错误于cor.test(first, second, data = weightBJ_data) :
找不到对象'first'
>
然后我就尝试赋值
> first[,2]
错误: 找不到对象'first'
>
就素这样。。。怎么办 R刚刚入门 很多地方不懂 望各位大神指点!不胜感激!


雷达卡







京公网安备 11010802022788号







