标签:http ar 文件 c html r ad htm as
在~下有一文本文件matrix.dat内容如下:99 102 3 12 43 213.0 12 12 2 23 21 211
> A <- matrix(scan("~/matrix.dat", n = 3*4), 3, 4, byrow = TRUE) Read 12 items > A [,1] [,2] [,3] [,4] [1,] 99 102 3 12 [2,] 43 213 12 12 [3,] 2 23 21 211
> A <- as.matrix(read.table("matrix.dat")) > A V1 V2 V3 [1,] 99 102 3 [2,] 12 43 213 [3,] 12 12 2 [4,] 23 21 211
标签:http ar 文件 c html r ad htm as
原文地址:http://my.oschina.net/letiantian/blog/324257