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 advan
Hi Berry,
What about using
NROW(input)
?
Best,
Jorge.-
On Sat, Feb 15, 2014 at 2:26 AM, Berry Boessenkool <
berryboessenk...@hotmail.com> wrote:
> Hi,
>
> In my function, I want to allow input to be a vector or a data.frame.
> Certain operations need to be done if the length or nrows exceeds
2 matches
Mail list logo