所以现在我的列表看起来像这样:
$a [1] 2 $b [1] 5 $c [1] 3
只是想知道是否有办法让它们成为:
$a [1] 1 2 $b [1] 1 2 3 4 5 $c [1] 1 2 3
非常感谢您的回答!!
我们可以使用seq
seq
lapply(lst1, seq)