Skip to content
Prev 336645 / 398513 Next

dim vector or data.frame

Yes.

And there's also a possibility of keeping the vector as a one column
data frame (using a drop=FALSE argument in indexing to avoid
conversion to vectors perhaps) so that nrow() can be used. This has
the disadvantage of the inefficiency of using a data frame when a
vector will do, and the advantage of avoiding the test.

Cheers,
Bert



Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
H. Gilbert Welch
On Fri, Feb 14, 2014 at 7:44 AM, Jorge I Velez <jorgeivanvelez at gmail.com> wrote: