Hi all and thanks in advance. I am regressing Time and Weight, and then predicting Weight at different Time. The format of the Time data is day/month/year. How can I get R to use time series data such as this? Keith -- M. Keith Cox, Ph.D. Alaska NOAA Fisheries, National Marine Fisheries Service Auke Bay Laboratories 17109 Pt. Lena Loop Rd. Juneau, AK 99801 Keith.Cox at noaa.gov marlinkcox at gmail.com U.S. (907) 789-6603
jullian day? On Mon, Oct 19, 2009 at 1:20 PM, Marlin Keith Cox <marlinkcox at gmail.com> wrote:> Hi all and thanks in advance. > > I am regressing Time and Weight, and then predicting Weight at > different Time. ?The format of the Time data is day/month/year. ?How > can I get R to use time series data such as this? > > Keith > > -- > M. Keith Cox, Ph.D. > Alaska NOAA Fisheries, National Marine Fisheries Service > Auke Bay Laboratories > 17109 Pt. Lena Loop Rd. > Juneau, AK 99801 > Keith.Cox at noaa.gov > marlinkcox at gmail.com > U.S. (907) 789-6603 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
If you convert your dates to an object d of Date class then as.numeric(d) will be the number of days since the Epoch. See R News 4/1. On Mon, Oct 19, 2009 at 2:20 PM, Marlin Keith Cox <marlinkcox at gmail.com> wrote:> Hi all and thanks in advance. > > I am regressing Time and Weight, and then predicting Weight at > different Time. ?The format of the Time data is day/month/year. ?How > can I get R to use time series data such as this? > > Keith > > -- > M. Keith Cox, Ph.D. > Alaska NOAA Fisheries, National Marine Fisheries Service > Auke Bay Laboratories > 17109 Pt. Lena Loop Rd. > Juneau, AK 99801 > Keith.Cox at noaa.gov > marlinkcox at gmail.com > U.S. (907) 789-6603 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >