You cannot call a column on a dataframe using the first letter (or first
few letters) if the letters match more than one name. Extraction
methods for data frames allow partially matching row names, but if the
result is undefined you get NULL in return.
Try this.
>first_item <- seq(1,10)
>
If you had updated your R before posting (as the posting guide suggested)
you would have found such an option under ?options. It was new in R
2.6.0.
On Tue, 30 Oct 2007, P. Olsson wrote:
> Dear R-users,
>
> currently I am working with the R version 2.4.1.
> I realized it has a feature, which
Dear R-users,
currently I am working with the R version 2.4.1.
I realized it has a feature, which might be wonderful (as so many things in
R), but in this case might be a bit dangerous as well. It seems that columns
of a data frame can be called just by indicating the first letter of the
name of
3 matches
Mail list logo