[R] Validating data type
Suzen, Mehmet
msuzen at gmail.com
Mon Sep 2 00:29:51 CEST 2013
R is weakly typed language. I have asked similar question previously:
http://r.789695.n4.nabble.com/count-appearence-of-zero-in-a-vector-td4654591.html
It is advised to me to use S4 classes, if you want to enforce type
checking automatically. Excellent
reference on this is by the ACM award holder Prof. John Chamber's
book, Software for Data Analysis.
On 30 August 2013 05:29, <jeffjohn at worldvision.org> wrote:
>
>
> I'm very new to R. I have a data file that I have read in via read.csv. I
> expect one of the "columns" to be of type date for example. However at
> least one value in that column is not of date type. I know this because
> another program I am trying to process the file with is erroring, yet it
> doesn't tell me what row/value is erroring. Does R have a way to: treat
> column x as date type, and print out all values/row numbers do not conform
> to that type for that specified column?
>
> Many thanks!
> Jeff
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list