[R] ncol() vs. length() on data.frames
c@|@ndr@ @end|ng |rom rgzm@de
Tue Mar 31 14:47:54 CEST 2020
I have a very simple question:
On a simple data.frame (i.e. each element is a vector), ncol() and
length() will give the same result.
Are they just equivalent on such objects, or are they differences in
Is one of them to be preferred for whatever reason?
Dr. Ivan Calandra
TraCEr, laboratory for Traceology and Controlled Experiments
MONREPOS Archaeological Research Centre and
Museum for Human Behavioural Evolution
56567 Neuwied, Germany
+49 (0) 2631 9772-243
More information about the R-help