read.xport              package:foreign              R Documentation

_R_e_a_d _a _S_A_S _X_P_O_R_T _F_o_r_m_a_t _L_i_b_r_a_r_y

_D_e_s_c_r_i_p_t_i_o_n:

     Reads a file as a SAS XPORT format library and returns a list of
     data.frames.

_U_s_a_g_e:

     read.xport(file)

_A_r_g_u_m_e_n_t_s:

    file: character variable with the name of the file to read.  The
          file must be in SAS XPORT format.

_V_a_l_u_e:

     If there is a more than one dataset in the XPORT format library, a
     named list of data frames, otherwise a data frame.  The columns of
     the data frames will be either numeric (corresponding to numeric
     in SAS) or factor (corresponding to character in SAS).  All SAS
     numeric missing values (including special missing values
     represented by '._', '.A' to '.Z' by SAS) are mapped to R 'NA'.

     Trailing blanks are removed from character columns before
     conversion to a factor.  Some sources claim that character missing
     values in SAS are represented by '' '' or '''': these are not
     treated as R missing values.

_A_u_t_h_o_r(_s):

     Saikat DebRoy <saikat@stat.wisc.edu>

_R_e_f_e_r_e_n_c_e_s:

     SAS Technical Support document TS-140: ``The Record Layout of a
     Data Set in SAS Transport (XPORT) Format'' available at <URL:
     http://ftp.sas.com/techsup/download/technote/ts140.html>.

_S_e_e _A_l_s_o:

     'lookup.xport'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     read.xport("transport")
     ## End(Not run)

