[R] Probably dumb question about lists

Raphael Päbst raphael.paebst at gmail.com
Wed Jan 14 15:23:18 CET 2015


Hello everybody!
I feel very stupid right now but suspect it has something to do with
tiredness. I am trying to drop the last couple of Elements from a list
and this doesn't work as expected.

My code looks something like this:

del <- deldir(x, y)
tl <- tile.list(del)
plot(tl)

Now, I only want to plot the first 800 elements of tl and can't work
out how to do this.
plot(tl[1:800])
gives me an error "x is a list but does not have components x and y"
which somewhat baffles me. I'm sure this is all due to lack of sleep
but right now I feel very dumb and would welcome any pointers towards
a solution for my problem.

Many thanks!

Raphael



More information about the R-help mailing list