On Fri, Nov 2, 2012 at 7:49 PM, David Romano <roma...@grinnell.edu> wrote:
> I don't know if R has the equivalent of an identity
> function, but the following solution accomplishes this:
>
>> splitvectors <- sapply(splitlist, function(x) x)

Indeed it does, called, not surprisingly, "identity." You managed to
guess the definition ;-)

?force also does the same, but the reason for the name is perhaps a
lesson for another time.

Also, note that in certain circumstances c(x) != x because c() strips
attributes.

Cheers,
Michael

______________________________________________
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