search for: writeforeignsa

Displaying 8 results from an estimated 8 matches for "writeforeignsa".

Did you mean: writeforeignsas
2019 Jun 04
1
foreign:::writeForeignSAS patch not released?
Hello, In May 2018 there was some R-devel discussion about a bug in foreign:::writeForeignSAS. See here: https://stat.ethz.ch/pipermail/r-devel/2018-May/076220.html and it resulted in a patch. See: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17256 And I see the changes in Subversion here: https://svn.r-project.org/R-packages/trunk/foreign/R/writeForeignSAS.R But I don...
2018 May 17
2
Patch for bug 17256 'possible bug in writeForeignSAS in the foreign library when string is NA'
Attached is a patch to fix https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17256 'possible bug in writeForeignSAS in the foreign library when string is NA' The patch 1. fixing the case where there were NA within a character column, and the case where all values are strings of length 0 2. general replacement of calls to `sapply` with `vapply` (and replacing any(is.na()) with anyNA. Happy to add in...
2018 May 17
0
Patch for bug 17256 'possible bug in writeForeignSAS in the foreign library when string is NA'
>>>>> NELSON, Michael <mnels at doh.health.nsw.gov.au> >>>>> on Thu, 17 May 2018 11:53:27 +0000 writes: > Attached is a patch to fix > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17256 > 'possible bug in writeForeignSAS in the foreign library > when string is NA' > The patch 1. fixing the case where there were NA within a > character column, and the case where all values are > strings of length 0 2. general replacement of calls to > `sapply` with `vapply` (and replacing a...
2006 Jul 13
1
writeForeignSAS and potential extensions
Dear R-devel, I've made some potential extensions to writeForeignSAS in 'foreign' that I wanted to pass along if anyone is interested. I've attached the diff -u output against the version found in foreign_0.8-15 and an .R file with my changes. (In this .R file, the function is named writeForeignSAS7 to simplify testing/comparisons.) I've tri...
2009 Jan 03
1
Bug report in foreign library (PR#13425)
...edu/sasr/datasets/help.csv") # running foreign package version 0.8-30 library(foreign) # this works fine write.foreign(ds, "foo", "bar", package="Stata") # this yields an error write.foreign(ds, "foo", "bar", package="SAS") # Error in writeForeignSAS(df = list(id = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, : # object "dfn" not found There appears to be a space between < and - in foreign:::writeForeignSAS on or around line 15: dfn < - df should be dfn <- df <<insert bug report here>> --please do not edit t...
2009 Feb 02
3
Problem with foreign package
I tried to use write.foreign() to export to SAS this morning and got an error. When I looked at the code for writeForeignSAS() I saw this line: dfn < -df which I think should be dfn <- df So, I tried to run update.packages() to see if there was an updated version and got the following result. > update.packages(c("foreign")) Warning message: In list.files(lib) : list.files: 'foreign' is...
2006 Dec 20
1
FW: R Version Problem in using write.foreign+SAS
Hi R experts, I have a problem in Write.foreign command (SAS). I have a data frame called d. >d Datetime 2006-12-01 00:00:00 2006-12-01 00:10:00 2006-12-01 00:20:00 2006-12-01 00:30:00 2006-12-01 00:40:00 >class(d$Datetime) [1] "POSIXt" "POSIXct" Then I tried with, write.foreign(d,"Z:\\try_i.sas7bdat"," Z:\\try_i.sas
2006 Dec 20
1
R Version Problem in using write.foreign+SAS
Hi experts, I have a problem in Write.foreign command (SAS). I have a data frame called d. >d Datetime 2006-12-01 00:00:00 2006-12-01 00:10:00 2006-12-01 00:20:00 2006-12-01 00:30:00 2006-12-01 00:40:00 >class(d$Datetime) [1] "POSIXt" "POSIXct" Then I tried with, write.foreign(d,"Z:\\try_i.sas7bdat"," Z:\\try_i.sas