Skip to content
Prev 207503 / 398503 Next

Delete components of a list

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 <lisajca at gmail.com> wrote: