[R] How to analyse this type of data...?

2011-09-30 Thread _Luc_
We have data on habitat use of a bird species (30 radio-tracked individuals). We followed each bird every day for ~45 min for 6 weeks. We recorded a number of things, each minute (a device would beep every minute and we would write down a number of variables). I recorded for example at what kind of

Re: [R] Problem with converting factors to numbers

2011-09-20 Thread _Luc_
ok great, as.numeric(as.character(data$x)) works perfectly. I am sorry that i did not find this before making this post. @ peter what did not work was: data$x2 <- as.character(data$x) data$x3 <- as.numeric(data$x2) -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-

[R] Problem with converting factors to numbers

2011-09-20 Thread _Luc_
Hi all, I have a very simple problem, but i cant find a solution probably because i search for the wrong keywords. I have coordinates x and y. They look like this: > str(data) 'data.frame': 13979 obs. of 2 variables: $ x : Factor w/ 3815 levels "","186011.4971280",..: 1528 1524