R 生成列表的兩種方式

第一種方法,直接用list() 函數生成列表 #method one a <- "my first list" b <- 1:3 c <- matrix(0, ncol=3,nrow=4) mylist <- list(name=a, other=b,c) 第二種方法 先生成一個空文件,而後用[[i]] 生成列表,第二種方法在循環生成列表中用的不少 a <- "my first list" b <
相關文章
相關標籤/搜索