我无法解释这种不蟒蛇,假设:如何访问R中的内部结构?
a=((((()),(),())*3,((((())))))*2)
现在我怎么能在具有类似结构为R得到a[0][2]
?我有点失落如何这些x[2,]
等意味着在R - here我想通过x[2,]
获得每隔一个列,并保持结构,但R混合它,所以现在试图了解如何玩R的内部结构像上面那样。
什么用这种结构的(使用IGRAPH):
g <- as.undirected(ba.game(100, m=1))
l <- layout.drl(g, options=list(simmer.attraction=0))
## Not run:
plot(g, layout=l, vertex.size=7, vertex.label=NA)
我怎么能访问内部结构呢? g[96:98]
是什么意思或g[7]
? g[7]
sevenththigig? g[96:98]
维度1还是?那么g[96:98,]
?
...相关答案[这里](http://stackoverflow.com/questions/7754901/the-art-of-r-programming-where-else-could-i-find-the-information/7755770#7755770),关于进一步阅读。 – hhh 2012-01-05 00:00:44