Displaying 1 result from an estimated 1 matches for "housedates".
2009 Jun 04
3
Getting a column of values from a list - think I'm doing it the hard way
...below. Right now, I'm using a "for" loop to pull the year out of a list where the dates were split up into their individual components.
This seems to work, but just wondering if there is an easier way.
Thanks for any insights.
#*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
HouseDates <- c("02/27/90", "02/27/91", "01/14/92", "02/28/93", "02/01/94", "02/01/95", "02/01/96")
# ?as.Date
HouseDatesFormatted<-as.Date(HouseDates, "%m/%d/%y")
HouseDatesFormatted
HouseDatesList<-strsplit(as.charac...