[R] How to read only ten rows from a SAS dataset (read.ssd)?

johannes rara johannesraja at gmail.com
Tue Oct 19 12:47:50 CEST 2010


I'm trying to read SAS datasets on Windows:

sashome <- "C:/Program Files/SAS/SAS 9.1"
fold <- "C:/temp"
g <- read.ssd(fold, "sasfile", sascmd = file.path(sashome, "sas.exe"))

How to get only e.g first ten rows into R?

-J



More information about the R-help mailing list