similar to: Problem with sas.get function in Hmisc

Displaying 20 results from an estimated 1200 matches similar to: "Problem with sas.get function in Hmisc"

2007 Apr 20
4
importing sas datasets
Hello, I wanted to ask help about importing sas datasets. 1)I tried with some functions as read.ssd (foreign package), but it doesn't import the file if the length of the variables' names are longer than 8 bite (it has to conform to the 6 version). 2)I then tried with the sas.get function (Hmisc package) but with the command: c<- sas.get(lib="c:\\ghan",
2007 Apr 10
3
sas.get problem
I have 3 SAS files all in the directory F:/sas, two data files and a format file : form.ea1.sas7bdat form.ea2.sas7bdat sas.fmts.sas7bdat F is a USB. I am trying import them to R using "sas.get". I have not used SAS since I was downloading data from mainframe and having to write JCL. I had forgotten how bizarre SAS can be. I currently have not even figured out how to load the files
2007 Apr 27
0
Fwd: RE: importing sas datasets
Hi Dan, sorry for the precedent email, I created a csv file of only 1000 records by mistake, that's why R has only read 1000 records. regards Anna ----- Messaggio Inoltrato ----- Da : "a.martino at crismaitalia.it" <a.martino at crismaitalia.it> A : "Daniel Nordlund" <res90sx5 at verizon.net>,<r-help at stat.math.ethz.ch> Oggetto : RE: [R] importing
2008 Jul 23
2
shQuote and cat
Dear R-users, It is my understanding that cat(shQuote(a.string)) should print the origintal a.string. Is this right? I am not sure cat() correctly prints strings which are generated by triple-shQuote(): > shQuote(shQuote("a")) [1] "\"\\\"a\\\"\"" > cat(shQuote(shQuote(shQuote("a"))), '\n')
2008 Jul 23
2
shQuote and cat
Dear R-users, It is my understanding that cat(shQuote(a.string)) should print the origintal a.string. Is this right? I am not sure cat() correctly prints strings which are generated by triple-shQuote(): > shQuote(shQuote("a")) [1] "\"\\\"a\\\"\"" > cat(shQuote(shQuote(shQuote("a"))), '\n')
2006 Jul 05
3
Invoking SAS in order to use sas.get
I am trying to use the sas.get function to bring a SAS dataset into R. After calling the sas.get function I got an error message stating that 'sas' is not a recognized internal or external command, etc. I am guessing that I need to specify the internal command to invoke SAS in the sasprog option for the sas.get function, but I don't know how to determine what that command might be.
2008 Jun 23
3
Simulating Gaussian Mixture Models
Hi, Is there any package that I can use to simulate the Gaussian Mixture Model , which is a mixture modeling method that is widely used in statistical learning theory. I know there is a mclust, however, I think it is a little bit different from my problem. Thanks very much.. regards. -------------------------- Peng Jiang ?? Ph.D. Candidate Antai College of Economics &
2019 Feb 28
2
Exit status of Rscript
Current R release (3.5.2) and devel return a 0 exit status on error, while prior versions returned a non-zero exit status. On Linux and MacOs, the following line returns TRUE for R-3.5.2 and R-devel, and FALSE for R-3.5.1 and R-3.5.0: system2("Rscript", c("-e", shQuote("stop('foo')"))) == 0 I didn't find this in the NEWS, so I believe this is a bug.
2004 Dec 09
2
system() and file names with spaces
Consider the question we had recently: "how do I count the lines in a file without reading it into R?" The solution I suggested was as.numeric(system(paste("wc -l <", filename), TRUE)) Unfortunately, it doesn't work, or at least, not all the time. If you already know all about that, and don't care, or already have a solution, stop reading now. Otherwise, let
2011 Nov 15
2
Problem creating reference manuals from latex
R Community, I often am in need of viewing the reference manuals of packages and do not have Internet access. I have used the code: path <- find.package('tm') system(paste(shQuote(file.path(R.home("bin"), "R")),"CMD", "Rd2pdf",shQuote(path))) someone kindly provided from this help list to generate the manuals from the latex files. This
2008 Dec 17
1
using dvi with latex object: directory not correctly set, maybe due to error in shQuote()
Dear friends of R, I want to produce a pdf file with the contents of a matrix. I employ the latex command in combination with dvi, both contained in the Hmisc package. It seems to me that the function does not correctly set the directory. > tbl.loc <- matrix(1:4, nc=2) > latex.obj <- latex(tbl.loc) > dvi(latex.obj) warning: extra args ignored after 'cd' H:\PROJECTS\data
2019 Dec 15
1
system2 doesn't quote stdin on unix, unlike stdout, stderr & input and on Windows
Hi again! While investigating the bug report [*] I found out that on unix, system2 does not quote its `stdin` argument while preparing the command line to launch. It does shQuote the `stdout` and `stderr` arguments, and also the `f <- tmpfile()` variable (which is used if `input` argument is provided), which seems to set a precedent. On Windows, stdin, stdout, and stderr are handled
2008 Nov 03
1
dev2bitmap: extra missing
Hi, I don't know if I am the first one to report the problem: in 2.8.0 dev2bitmap gained aa support, but "extra" is null if neither taa nor naa is specified. > dev2bitmap("plot.pdf",type="pdfwrite") Error in paste(shQuote(gsexe), " -dNOPAUSE -dBATCH -q -sDEVICE=", type, : object "extra" not found >
2004 Dec 29
3
Windows vignettes, shQuote, texi2dvi
I noticed a shQuote fix for Windows in the svn logs. Just wanted to point out that this will favorably affect texi2dvi on Windows which previously used UNIX quoting and so generated an incorrect Windows command. (Note that texi2dvi is used when creating vignettes.) Another problem is that the recommended tex distribution for Windows, fptex, does not have texi2dvi in the first place. The
2006 Jan 05
1
defining a print method
In the following session we define an xx class and a print method for it. If I invoke it with print then it prints as expected but if we just type xx at the R prompt then we get nothing back. How do we define the print method so that it works in the latter case too? > xx <- structure("abc", class = "xx") > print.xx <- function(x, ...) shQuote(x) > print(xx) #
2006 Jul 19
3
illegal operation in debian (PR#9086)
Full_Name: Agustin Perez Version: 2.3.1 OS: Debian 2.6.8-11-amd64-generic Submission from: (NULL) (193.147.142.6) First of all excuses for my bad use of english and thanks for read my problem. Well when I do the following comand in R suddenly crashes and exit me for the enviroment: > a<-matrix(1:13500,450,30) > a%*%t(a) *** caught illegal operation *** address 0x2a9590086f, cause
2008 Jun 27
4
Recoding
Hi! Given a vector (or a factor within a df),i.e. v1 <- c(1,1,1,2,3,4,1,10,3) and a dictionary cbind(c(1,2,3),c(1001,1002,1003)) is there a function (on the same line than recode() in car) to get v2 as c(1001,1001,1001,1002,1003,4,1001,10,1003) ? I'm using myself a function based on match() since long ago (I think that thanks to advice by Prof. B. Ripley), but would like to know if there
2015 Nov 06
2
corrupt PACKAGES.gz?
Is it just me, or did a corrupt PACKAGES.gz file get installed in the bin/windows/contrib/3.2 directory of CRAN mirrors recently? gzfile() complains about it and Cygwin's gzip cannot decompress it. I tried the following repos <- "https://cran.rstudio.com" v <- "3.2" pkgs.gz <- paste(sep="/", repos, "bin/windows/contrib", v,
2008 Sep 12
2
Greyed text in the background of a plot
Hi! Is there any way of having a greyed ("ghosted") text (i.e, 2006) in the background of a plot? I'm making a dynamic plot and would like to show the year of each time step as a big greyed text in the background. (the idea comes from Hans Rosling video: http://video.google.com/videoplay?docid=4237353244338529080&sourceid=searchfeed ) Thanks Agus -- Dr. Agustin Lobo Institut
2012 Jun 08
3
day of the year for chron objects
Hi! Is not there an standard R function to retrieve the day of the year (since 1st Jan of the same year)? I know I can make my own using julian, but find it weird that having days(), months() etc doy() does not exist as an standard function. Also, is the following not a bit inconsistent? > a <- chron("20100506",format="ymd") > a [1] 100506 > years(a) [1] 2010