[R] extract vector elements of unknown range

Sepp Tannhuber sepp.tannhuber at yahoo.de
Sat Aug 25 11:23:37 CEST 2012


Hi,

thanks for your quick answers! These solve my problem.

Now I have another question. I think I can use 
  head(y, -1)
instead of
  y[-length(y)]

Are there differences in terms of performance?

Best regards
Joseph




More information about the R-help mailing list