On 10/09/15 06:30, Frank Schwidom wrote:
c( as.factor( VAS))
On Sat, Sep 05, 2015 at 02:14:18PM -0700, Dan D wrote:
# your data
VAS<-c("Green","Green","Black","Green","White","Yellow","Yellow",
"Black","Green","Black")
<SNIP>
Better:
as.numeric(factor(VAS))
See fortune(185).
cheers,
Rolf Turner
--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.