【发布时间】:2014-10-28 14:46:25
【问题描述】:
da=read.table("m-ibm6708.txt",header=T) #<== Load data with header
#<== Check dimension of the data (row = sample size, col = variables)
###############502 rows, col 1 = date, col 2 = ibm, col 3 = sprtn
#<== Print out the first 6 rows of the data object "da".
printrows <- da[1:6]
printrows
打印行不起作用。我尝试了一堆东西。我认为它可能会使用 cbind。 da 是一个大表,但我只需要显示前 6 行。
【问题讨论】:
-
可以使用
head函数:head(da, 6) -
感谢大家的帮助!