[R] Checking for invalid dates: Code works but needs improvement
Rui Barradas
ruipbarradas at sapo.pt
Tue Jan 24 18:54:57 CET 2012
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
--
View this message in context: http://r.789695.n4.nabble.com/Checking-for-invalid-dates-Code-works-but-needs-improvement-tp4324356p4324533.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list