It works well. Thank you very much.
Lisa
--
View this message in context:
http://n4.nabble.com/Delete-components-of-a-list-tp1289732p1289745.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://st
Try this:
# Exclude the first column:
lapply(l, '[', -1)
# Remove the second row:
lapply(l, '[', , i = -2)
On Mon, Jan 25, 2010 at 5:37 PM, Lisa wrote:
>
> Dear all,
>
> I have a question about deleting components of a list. For example, I have a
> list that looks like this:
>
> [[1]]
> var1
Dear all,
I have a question about deleting components of a list. For example, I have a
list that looks like this:
[[1]]
var1 var2 var3
134
221
[[2]]
var1 var2 var3
251
217
[[3]]
var1 var2 var3
167
384
Ho
3 matches
Mail list logo