我有以下数据框(firstweek
)。行数非常高:165992.我有14个不同的用户。我想自动创建14个不同的数据帧,每个用户一个。另外,我想在每个数据帧中添加一个具有时差的列。我不是R的专家。
> head(firstweek)
times users signal log
14 2014-01-13 00:00:16 00250902DC7A true ON
28 2014-01-13 00:00:47 00250902DC7B true ON
42 2014-01-13 00:01:18 00250902DC7C true ON
56 2014-01-13 00:01:48 00250902DC7E true ON
70 2014-01-13 00:02:19 00250902DC7F true ON
84 2014-01-13 00:02:50 00250902DC7G true ON
> nrow(firstweek)
[1] 165992