sas.get(library, member, variables=<<see below>>, ifs=<<see below>>, format.library=library, id=<<see below>>, dates="sas", keep.log=T, log.file="_temp_.log", macro="sas_get", macro.dir=<<see below>>, data.frame.out=T, clean.up=T, quiet=F, temp=tempfile("SaS"))
If data.frame.out is FALSE, the output will be a list of vectors, each containing a variable from the SAS dataset. If id was specified, that element of the list will be used as the id attribute of the entire list.
SAS Institute Inc. (1988). SASO Technical Report P-176, Using the SASO System, Release 6.03, under UNIXO Operating Systems and Derivatives. SAS Institute Inc., Cary, North Carolina.
SAS Institute Inc. (1985). SASO Introductory Guide. Third Edition. SAS Institute Inc., Cary, North Carolina.
sas.contents("saslib", "mice") [1] "dose " "ld50 " "strain" "lab_no" attr(, "n"): [1] 117 mice <- sas.get("saslib", mem="mice", var=c("dose", "strain", "ld50")) plot(mice$dose, mice$ld50)nude.mice <- sas.get(lib=unix("echo $HOME/saslib"), mem="mice", ifs="if strain='nude'")
nude.mice.dl <- sas.get(lib=unix("echo $HOME/saslib"), mem="mice", var=c("dose", "ld50"), ifs="if strain='nude'")