Vlatka Matković Puljić
2010-Apr-21 13:04 UTC
[R] calculating age from year of birth and date?
Hi, I have v1 (date of test) and v2 (year of birth). v1 v2 15.5.2008 88 18.6.2009 54 I want R to use only year in v1; and v2 see as 1988 and calculate age in v3. any ideas how to do that? -- ************************** Vlatka Matković Puljić 095/8618 171 [[alternative HTML version deleted]]
Vlatka Matkovic Puljic
2010-Apr-21 13:48 UTC
[R] calculating age from year of birth and date?
Hi, I have v1 (date of test) and v2 (year of birth). v1 v2 15.5.2008 88 18.6.2009 54 I want R to use only year in v1; and v2 see as 1988 and calculate age in v3. any ideas how to do that? -- ************************** Vlatka Matković Puljić 095/8618 171 [[alternative HTML version deleted]]
Dimitri Liakhovitski
2010-Apr-21 13:52 UTC
[R] calculating age from year of birth and date?
In what format are you dates? Are they always like this: two digits for day, then one or two digits for month, and four digits for the year? Also - are any of your people born after 1999? Dimitri 2010/4/21 Vlatka Matkovi? Pulji? <vlatka.m at gmail.com>:> Hi, > > I have v1 (date of test) and v2 (year of birth). > ?v1 ? ? ? ? ? ? v2 > 15.5.2008 ? 88 > 18.6.2009 ? ?54 > > I want R to use only year in v1; and v2 see as 1988 and calculate age in v3. > any ideas how to do that? > > -- > ************************** > Vlatka Matkovi? Pulji? > 095/8618 171 > > ? ? ? ?[[alternative HTML version deleted]] > > > ______________________________________________ > 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. > >-- Dimitri Liakhovitski Ninah.com Dimitri.Liakhovitski at ninah.com