[R] Re: referencing values of strings

Vito Ricci vito_ricci at yahoo.com
Wed Nov 17 17:27:27 CET 2004


Hi,

see ? as.numeric

as.numeric(c("-.1"," 2.7 ","-1.5"))
[1] -0.1  2.7 -1.5

you wrote:

Say you have a vector named x and a function which
returns the character
string "x" .  How would I take "x" as an input and
return the vector x?

=====
Diventare costruttori di soluzioni
Became solutions' constructors

"The business of the statistician is to catalyze 
the scientific learning process."  
George E. P. Box


Visitate il portale http://www.modugno.it/
e in particolare la sezione su Palese http://www.modugno.it/archivio/cat_palese.shtml




More information about the R-help mailing list