Skip to content

Numeric class and sasxport.get

4 messages · Sebastien Bihorel, Frank E Harrell Jr

#
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"?

Thank you

Sebastien
#
Sebastien Bihorel wrote:
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

  
    
#
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
Frank E Harrell Jr wrote:
#
Sebastien Bihorel wrote:
'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