楼主: xucaifeng66
5676 14

[问答] 一变量有很多个list,请问怎么一次性取下 [推广有奖]

11
xucaifeng66 发表于 2015-1-6 11:21:20
zngtian 发表于 2015-1-6 11:16
Yes, presumably. Look at the example in Data Manipulation with R by Phil Spector.
It is really quicker, in my case about 40s

12
曲散人终 发表于 2015-1-6 11:23:58
zngtian 发表于 2015-1-6 11:16
Yes, presumably. Look at the example in Data Manipulation with R by Phil Spector. Basicall ...
oh,I see,thank you...

13
zngtian 发表于 2015-1-6 11:24:27
xucaifeng66 发表于 2015-1-6 11:21
It is really quicker, in my case about 40s
It is because your function is simple.

14
曲散人终 发表于 2015-1-6 11:25:17
xucaifeng66 发表于 2015-1-6 11:21
It is really quicker, in my case about 40s
I think I should learn to how to use sapply and lapply too...

15
李会超 发表于 2015-1-6 11:25:52
library(plyr)
laply(a,function(x) x[[1]])

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-23 11:01