Hi,

Yes you can. As William says, the 'seq_len' approach seems to be better.
'head' function is the wrapper for 'seq_len' approach and slower.

I didn't know that '-length(x)' approach is slow for long vectors....

-- 
Noia Raindrops
noia.raindr...@gmail.com

______________________________________________
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