Skip to content
Prev 131653 / 398502 Next

Arguments become nonnumeric

You program contains:

de.dd<-c("Dresden",51,2,13,44)

and since you are mixing characters with numerics and putting them
into a single vector, the data is coerced to a common data type, which
in this case is numeric.  What are you trying to do?  Do you want to
use a list?
[1] "Dresden" "51"      "2"       "13"      "44"
[[1]]
[1] "Dresden"

[[2]]
[1] 51

[[3]]
[1] 2

[[4]]
[1] 13

[[5]]
[1] 44

A list will maintain the mode of each element.
On Dec 9, 2007 6:14 AM, Mag. Ferri Leberl <ferri.leberl at gmx.at> wrote: