search for: parseddt

Displaying 3 results from an estimated 3 matches for "parseddt".

Did you mean: parsed
2012 Jan 24
6
Checking for invalid dates: Code works but needs improvement
...) class(TestDates$metastaticDT) #### List of Date Variables #### DateNames <- c("birthDT", "diagnosisDT", "metastaticDT") #### Read Dates #### for (i in seq(TestDates[DateNames])){ TestDates[DateNames][[i]] <- as.character(TestDates[DateNames][[i]]) TestDates$ParsedDT <- strsplit(TestDates[DateNames][[i]],"/") TestDates$Month <- sapply(TestDates$ParsedDT,function(x)x[1]) TestDates$Day <- sapply(TestDates$ParsedDT,function(x)x[2]) TestDates$Year <- sapply(TestDates$ParsedDT,function(x)x[3]) TestDates$Day[TestDates$Day=="un"] <-...
2012 Jan 26
0
R-help Digest, Vol 107, Issue 25
...) class(TestDates$metastaticDT) #### List of Date Variables #### DateNames <- c("birthDT", "diagnosisDT", "metastaticDT") #### Read Dates #### for (i in seq(TestDates[DateNames])){ TestDates[DateNames][[i]] <- as.character(TestDates[DateNames][[i]]) TestDates$ParsedDT <- strsplit(TestDates[DateNames][[i]],"/") TestDates$Month <- sapply(TestDates$ParsedDT,function(x)x[1]) TestDates$Day <- sapply(TestDates$ParsedDT,function(x)x[2]) TestDates$Year <- sapply(TestDates$ParsedDT,function(x)x[3]) TestDates$Day[TestDates$Day=="un"] <-...
2012 Jan 18
4
R-Help
I am trying to create a frequency distribution and I am a bit confused. Here are the commands I have entered: > data <- read.csv(file="40609_sortedfinal.csv",head=TRUE,sep=",") > NumberOfActionsByStatus = data$STATUS > NumberOfActionsByUser = data$ETS_LOGIN > NumberOfBidOffer = data$BID_OFFER > NumberOfActionsByUser.freq = table(NumberOfActionsByUser) >