Skip to content
Prev 169268 / 398502 Next

Numeric class and sasxport.get

Sebastien Bihorel wrote:
Not a good idea, for many reasons including dates and other types.

And the labelled type is need if you subset the data, in order to keep 
the labels.

Note that your original issue is related to "class" being "soft" for 
integers and regular numerics:

  x <- 1:3
 > attributes(x)
NULL
 > class(x)
[1] "integer"
 > x <- runif(3)
 > class(x)
[1] "numeric"
 > attributes(x)
NULL

Frank