[R] Dealing with data
David Winsemius
dwinsemius at comcast.net
Fri Aug 13 19:19:29 CEST 2010
On Aug 13, 2010, at 1:03 PM, TGS wrote:
> # how would I code in R to look at the letter of the alphabet
> # in the second column and create a indicator column for the
> # corresponding letter?
>
> data(InsectSprays)
> InsectSprays$spray
It's already what most people mean when they say "indicator column",
i.e., a factor variable (and not a character vector) .... so, what do
_you_ mean?
>
--
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list