Re: [R] R Experts

2010-03-01 Thread Paul Hiemstra
Hi, Maybe the R version Ryan is using is very old? cheers, Paul Erik Iverson wrote: Ryan Kinzer wrote: Erik Thanks for helping. Both of them are factors. That's the problem, they need to be of class Date. See the R NEWS article about Date classes in Volume 4/1. http://cran.r-projec

Re: [R] R Experts

2010-02-26 Thread Erik Iverson
Ryan Kinzer wrote: Erik Thanks for helping. Both of them are factors. That's the problem, they need to be of class Date. See the R NEWS article about Date classes in Volume 4/1. http://cran.r-project.org/doc/Rnews/ I don't see how they could be factors though, since you shouldn't be

Re: [R] R Experts

2010-02-26 Thread Erik Iverson
Hello, Ryan Kinzer wrote: I am trying to understand why R is working in a particular way. I have a data set with two variables; mark date (markd) and recap date (recapd). I would like to know the number of days between capture dates. But if I subtract recap date from mark date I often get the

[R] R Experts

2010-02-26 Thread Ryan Kinzer
I am trying to understand why R is working in a particular way. I have a data set with two variables; mark date (markd) and recap date (recapd). I would like to know the number of days between capture dates. But if I subtract recap date from mark date I often get the wrong results. Example: