Displaying 2 results from an estimated 2 matches for "bisca".
Did you mean:
bisa
2007 May 13
1
how to convert a string vector to a numeric vector
Hello all,
I'm new to R and I cannot find a simple answer to a simple question.
If I have a character vector like v <- c('1/50,'1/2','1/8'...) how can
I convert it to a numeric vector like vn <- c(0.02,0.5,0.125...). I
tried as.numeric in various ways and failed miserably. Currently I use
a function like: for (e in v) { if (e=='1/50') vn<-c(vn,0.02) ...}
2007 May 20
1
lattice contourplot error
Hello,
A weird thing is happening to me. I have a 128x128 elements matrix m
with values between 0 and 1. If I do:
R> library(lattice)
R> contourplot (m, cuts=9)
I get the following error message: Error in validDetails.text(x) :
Invalid 'rot' value
The same for any cuts >9.
I can plot m with contourplot(m, cuts=8) but this is not detailed
enough. The 'normal'