[R] Numeric class and sasxport.get
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Wed Feb 4 00:51:14 CET 2009
Sebastien Bihorel wrote:
> It is a non existing issue for me if the variables of class "labelled"
> (and only "labelled") can only be numerical variables (integer or numeric).
'labelled' can apply to any type of vector. I'm not clear on the
problem this causes you. Please provide a command that is broken by
> Frank E Harrell Jr wrote:
>> Sebastien Bihorel wrote:
>>> Dear R-users,
>>> The sasxport.get function (from the Hmisc package) automatically
>>> defines the class of imported variables. I have noticed that the
>>> class of theoretically numeric variables is simply "labelled",
>>> although character variables might end up been defined as "labelled"
>>> "Date" or "labelled" "factor".
>>> Is there a way to tell sasxport.get to define numeric variable as
>>> "labelled" "integer" or "labelled" "numeric"?
>> If that would fix a problem you're having we could look into it.
>> Otherwise I'd tend to leave well enough alone.
>>> Thank you
>>> R-help at r-project.org mailing list
>>> PLEASE do read the posting guide
>>> and provide commented, minimal, self-contained, reproducible code.
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help