Hi R users

 

I am wondering how I can avoid automatic coercion of my numeric vector
elements to character

 

init <- c(age='N', R=as.numeric(0.5), S=as.numeric(0.8))

 

I have used as.numeric() but it does not seem to work

 

Thank you 

Lorenzo


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to