Message-ID: <1327427697928-4324533.post@n4.nabble.com>
Date: 2012-01-24T17:54:57Z
From: Rui Barradas
Subject: Checking for invalid dates: Code works but needs improvement
In-Reply-To: <1327424089.1149.YahooMailClassic@web161604.mail.bf1.yahoo.com>
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.