Displaying 20 results from an estimated 9000 matches similar to: "sas.get"
2000 Jan 06
1
Are blank fields allowed in SAS data sets?
Saikat DebRoy and I have been working on an R package that, among
other things, will read SAS data libraries in the XPORT format. Even
though a SAS data set is of a fairly simple structure, it is a
challenge to write code to read the libraries "properly". In fact, I
am beginning to think that file format is not well-defined.
Here is the situation:
- a SAS data set is a table.
2003 Jan 18
1
SAS transport files and the foreign package
Even though the FDA has no policies at all that limit our choices of statistical software, there is one defacto standard in place: reliance of the SAS transport file format for data submission (even though this format is deficient for this purpose, e.g., it does not even document value labels or units of measurement in a self-contained way). Because of the widespread use of SAS transport files in
2001 May 31
1
R and SAS
Hi
I'm trying to read SAS-data on VAX/VMS to Windows R using
foreign pakage read.xport and experience some problems.
Following lines are used in SAS to create XPORT file
LIBNAME a ''xxx;
LIBNAME b XPORT '';
PROC COPY IN=a OUT=b;
RUN;
and I succeed in getting file that looks like correct xport
file.However
when typing in R following
1999 Dec 11
2
SAS XPORT Transport Format
A colleague pointed out that the United States Food and Drug
Administration (FDA) has adopted a transport format defined by SAS
Institute as a standard for electronic submissions of data. As a
result, this format has been openly documented.
The URL for the documentation on the format is
http://ftp.sas.com/techsup/download/technote/ts140.html
Information on the FDA standards for
2013 May 01
1
foreign: write.xport
I see in the archives significant discussion about SAS, CDISC formats etc.
for FDA, but no direct suggestion of adding a write.xport method to the
foreign package. Are there significant barriers to doing so?
[[alternative HTML version deleted]]
2004 Nov 23
3
Problem with read.xport() from foreigh package (PR#7389)
Full_Name: Ruskin Chow
Version: R 2.0.1
OS: Windows 2000
Submission from: (NULL) (203.169.154.66)
Data imported from SAS using read.xport() in package foreign are converted to
<NA> when the SAS data field consists of character strings that are only one
character long.
This is apparently a previously reported bug and perhaps fixed in some platform
other than Windows (rw2001).Some
2005 Apr 07
1
Importing SAS transport data
I have encountered a problem reading SAS transport files on both a Mac
(OS X) and Linux (RedHat 9), both using R2.0.1.
After loading "foreign", the command:
read.xport("V1622101_050304.xpt")
yields:
Error in lookup.xport(file) : File not in SAS transfer format
In Linux, I can "cat" the file. The first few lines are:
**COMPRESSED** **COMPRESSED** **COMPRESSED**
2001 Aug 23
3
Reading SAS version 8 data into R
Hi,
SAS transport files created with the xport engine in SAS can be read using read.xport. However, the xport engine only works with SAS version 6, and consequently long variable names are not allowed...
Can anyone tell me how to get SAS data (ver 8) into R (easily)?
Thanks in advance
S?ren H?jsgaard
sorenh at agrsci.dk http://www.jbs.agrsci.dk/~sorenh
2010 Dec 06
3
How to this SAS transport file in R?
Dear All,
I try to read the SAS transport file in R, but it shows error. Please help!
I am using R 2.11.1
library(foreign)
download.file("http://isites.harvard.edu/fs/docs/icb.topic35387.files/demo_c.xpt","C:/Desktop/demo_c.xpt")
sasxport <- read.xport("C:/Desktop/demo_c.xpt")
Error in lookup.xport(file) : file not in SAS transfer format
--
View this
2005 Aug 12
1
Concerning reading of SAS-files
Hi!
I'm trying to start a credibility estimation study with a coule of data
sets that are created for SAS. The data sets are saved as ".sas7bndx" and
".sas7bdat".
I've tried reading them to R with the function 'read.xport' but this
returns the error message 'Error in lookup.xport(file) : unable to open
file'.
Are there any other functions that one
2008 Nov 10
3
read SAS file
Looked at a lot of documentation and listserv postings and still can’t solve this problem. I need to get a SAS dataset into R. I’ve converted it to an .xpt file and when I try to read it I get:
> read.xport("cft2008R")
Error: could not find function "read.xport"
>
Not sure what I’m doing wrong. I’m running SAS 9.1.3 on an UNIX box. I ftp’d the file over to my
2004 Nov 20
15
SAS or R software
Hi all there
Can some one clarify me on this issue, features wise which is better R or SAS, leaving the commerical aspect associated with it. I suppose there are few people who have worked on both R and SAS and wish they would be able to help me in deciding on this.
THank you for the help
---------------------------------
[[alternative HTML version deleted]]
2002 Dec 21
2
Part II Re: read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)
>>>>> "Stephen" == Stephen Arthur <sarthur67 at yahoo.com> writes:
Stephen> The SAS data set I PROC CPORTed is [9] the result is [10].
Stephen> I PROC CIMPORTed [10] back to its orginal state [9], and it
Stephen> worked.
Stephen> So the SAS people think that the error is not with the SAS
Stephen> XPORT file, but with R trying to load a text
2008 Dec 03
2
reading version 9 SAS datasets in R
Hi,
I am trying to read a SAS version 9.1.3 SAS dataset into R (to preserve
the SAS labels), but am unable to do so (I have read in a CSV version).
I first created a transport file using the SAS code:
libname ces2 'D:\CES Analysis\Data';
filename transp 'D:\CES Analysis\Data\fadata.xpt';
/* create a transport file - R cannot read file created by proc cport */
proc
2003 Jun 06
4
sas vs. r
I like R more than SAS. My job is doing research on clinical trial. But I was told that FDA only accepts the result from SAS. Is that true? TOO BAD.
[[alternate HTML version deleted]]
2004 Feb 09
1
Another question, unfortunately. . . .(Installing "foreign"/trying to import/export SAS files)
I have downloaded R--no problem there. Unfortunately, I have run into a
second problem.
I am trying to use read.ssd and then read.xport (to get a SAS data set).
I have imported the package "foreign" according to instructions (
options(CRAN="http://cran.us.r-project.org/") and
install.packages("foreign") ), but when I do so and then use either
read.ssd or read.xport I
2008 Oct 09
1
Error when reading a SAS transport file
Dear All,
I get the following error when using either SASxport or Hmisc to read an
.xpt file:
> w <- read.xport("D:/consult/Trophos/dnp/base/TRO_ds_20081006.xpt")
Erreur dans factor(x, f$value, f$label) :
invalid labels; length 15 should be 1 or 14
> z<- sasxport.get("D:/consult/Trophos/dnp/base/TRO_ds_20081006.xpt")
Erreur dans factor(x, f$value, f$label) :
2000 Jul 05
1
function SAS dataset to R matrix (dataframe)
Is there such a function (like sas.get for S ...)
to be able to convert a SAS dataset (PC one .sd2)
to a dataframe or matrix in R?
thanks
--
Didier G. Leibovici didier at fmrib.ox.ac.uk +44 (0)1865 222 739
Image Analysis Group fax:+44 (0)1865 222 717
Oxford University, Centre For Functional Magnetic Resonance Imaging of
the Brain (FMRIB), John Radcliffe Hospital,
2005 Sep 26
1
reading SAS data files
I am attempting to read in a SAS 9.1 data file. After starting R I
change to the directory containing the sas data file and use the "dir"
command to confirm that it is there. Then I run the following R-code:
library(foreign)
sashome <- "/Program Files/SAS/SAS 9.1"
test<-read.ssd(file.path(sashome), "pcb",
sascmd = file.path(sashome,
2009 Oct 20
2
Problems importing Unix SAS .ssd04 file to R (Win)
Hello,
I'm trying to import a SAS file made using SAS on Unix. Currently I'm
using SAS on Windows and I'm trying to import that .ssd04 file to R.
The file name of the file is testfile.ssd04 and it is located in
'M:\sasuser'. I'm using Windows XP and R 2.91. Basically what I'm
doing is
############ r code ##############
> library(foreign)
> sashome <-