[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:
> Frank,
> 
> 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).
> 
> Sebastien

'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 
this behavior.

Frank

> 
> 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"?
>>
>> Sebastien,
>>
>> If that would fix a problem you're having we could look into it. 
>> Otherwise I'd tend to leave well enough alone.
>>
>> Frank
>>
>>>
>>> Thank you
>>>
>>> Sebastien
>>>
>>> ______________________________________________
>>> 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.
>>>
>>
>>
> 


-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list