search for: housedatesformat

Displaying 1 result from an estimated 1 matches for "housedatesformat".

2009 Jun 04
3
Getting a column of values from a list - think I'm doing it the hard way
...ndering 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.character(HouseDatesFormatted), "-", fixed=TRUE) HouseYear_array<-NULL length_array<-length(HouseDatesList) for(ii in 1:length_array) { HouseYear<-HouseDatesList[[ii]...