Skip to content
Prev 383164 / 398502 Next

ncol() vs. length() on data.frames

Thank you Greg for the insights!

I agree with you that the decrease in speed is not worth the decrease in
readability, and I'll change my length() calls to ncol().

Best,
Ivan

--
Dr. Ivan Calandra
TraCEr, laboratory for Traceology and Controlled Experiments
MONREPOS Archaeological Research Centre and
Museum for Human Behavioural Evolution
Schloss Monrepos
56567 Neuwied, Germany
+49 (0) 2631 9772-243
https://www.researchgate.net/profile/Ivan_Calandra
On 03/04/2020 17:45, Greg Snow wrote: