Hello,

say I have an object

> x = list(first = 10, second = 20, third = "Yeah!")

and want to remove the $second element of that list. My first try was, of
course,

> rm(x$second)

which gave me the following error message

> Error in rm(x$second) : ... must contain names or character strings

Any ideas here, folks?

Best regards, and Merry Christmas!

Eduardo Horta

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to