search for: datenam

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

Did you mean: datanam
2012 Jan 24
6
Checking for invalid dates: Code works but needs improvement
...") TestDates <- data.frame(scan(connection, list(Patient=0, birthDT="", diagnosisDT="", metastaticDT=""))) close(connection) TestDates class(TestDates$birthDT) class(TestDates$diagnosisDT) 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...
2012 Jan 26
0
R-help Digest, Vol 107, Issue 25
...7697928-4324533.post at n4.nabble.com> Content-Type: text/plain; charset=us-ascii Hello, Point 3 is very simple, instead of 'print' use 'cat'. Unlike 'print' it allows for several arguments and (very) simple formating. { cat("Error: Invalid date values in", DateNames[[i]], "\n", TestDates[DateNames][[i]][TestDates$Invalid==1], "\n") } Rui Barradas Message: 53 Date: Tue, 24 Jan 2012 08:54:49 -0800 (PST) From: Paul Miller <pjmiller_57 at yahoo.com> To: r-help at r-project.org Subject: [R] Checking for invalid dates: Co...
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) >