Displaying 20 results from an estimated 2000 matches similar to: "increasing memory"
2009 Aug 18
1
Strange package installation error
Hi. I'm trying to install a new package. I'm a relatively long-time
(though not advanced) R user and have never seen this error before.
For the first example, I tried a few different CRAN mirrors. In the
second example, the file does exist; I downloaded it from the CRAN
website for the package and pasted in the name exactly a few different
times to make sure it was right.
>
2004 Nov 05
3
Resources for optimizing code
I want to eliminate certain observations in a large dataframe (21000x100).
I have written code which does this using a binary vector (0=delete obs,
1=keep), but it uses for loops, and so it's slow and in the extreme it
causes R to hang for indefinite time periods.
I'm looking for one of two things:
1. A document which discusses how to avoid for loops and situations in
which it's
2003 Mar 14
2
numbers and decimal points
I have a question for our European readers: how common is it to use
commas as decimal points in spread-sheet and statistics applications?
Is it an inconvenience to require that all data use a period as decimal point?
(i.e., 3.14159 rather than 3,14159).
We're trying to make our program as foolproof as possible, and would
prefer not to give users a chance to have commas as both decimal
2003 Apr 08
2
use of variable labels
The R documentation for some of the foreign package's functions says
that the set of variable labels becomes attributes in the resulting
data frame.
Thus, e.g., 5="strongly agree", 4="agree", etc.
I'm happy that the labels are being passed, but unfortunately, when
R summarizes the data, it will list it only as categories, and
doesn't deal with the
2003 Apr 08
2
quotes within quotes
How does one put quotes within quotes, if it's possible?
I've tried replacing one set of the quotes by single quotes.
If it's not possible, is there any way to do the following?
> cmd <- "read.dta"
> opt <- "convert.factors=FALSE"
> data.file <- " file="/full/path/name.dta" "
> eval(call(cmd,data.file,opt))
Prior to
2018 Apr 14
0
Fwd: Re: Reading xpt files into R
-------- Original Message ----------
From: WRAY NICHOLAS <nicholas.wray at ntlworld.com>
To: peter dalgaard <pdalgd at gmail.com>
Date: 14 April 2018 at 20:18
Subject: Re: [R] Reading xpt files into R
Well yesterday I'd downloaded the "foreign" package and tried to open the xpt file using that:
library(foreign)
read.xport("test.xpt")
I got the following
2018 Apr 13
5
Reading xpt files into R
Hello R folk
I have an xpt file which I have been trying to open into R in R studio
On the net I found guidance which says that I need packages Hmisc and SASxport which I have successfully loaded.
I had also found some code which says that this would allow me to read the xpt file into R:
library(SASxport)
data(Alfalfa)
lookup.xport("test.xpt")
2006 Jun 23
2
Tetrachoric correlation in R vs. stata
I hope someone here knows the answer to this since it will save me from
delving deep into documentation.
Based on 22 pairs of vectors, I have noticed that tetrachoric
correlation coefficients in stata are almost uniformly higher than those
in R, sometimes dramatically so (TCC=.61 in stata, .51 in R; .51 in
stata, .39 in R). Stata's estimate is higher than R's in 20 out of 22
2018 Apr 14
1
Fwd: Re: Reading xpt files into R
> On Apr 14, 2018, at 12:18 PM, WRAY NICHOLAS via R-help <r-help at r-project.org> wrote:
>
>
> -------- Original Message ----------
> From: WRAY NICHOLAS <nicholas.wray at ntlworld.com>
> To: peter dalgaard <pdalgd at gmail.com>
> Date: 14 April 2018 at 20:18
> Subject: Re: [R] Reading xpt files into R
>
>
> Well yesterday I'd downloaded
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
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
2003 Apr 01
1
Windows GUI palimpsest
Windows (both XP and 98) seems to have a problem with our GUI, written
using R's tcl/tk package.
When we open another window, and then return to the GUI, the GUI has old
pieces of text left from the previous windows and/or places which are
cut off where a window had been.
Also, when it computes something, the window will often decide to move
itself over for no apparent reason, so it moves
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
2007 Aug 15
2
Loading JMP Files
Hi,
I know how to use SPSS and JMP, and have quite a few
JMP files I would like to use in R. I converted them
to .xpt files, downloaded the 'foreign' library then
tried this command:
>read.xport("D:\\Databases\nameoffile.xpt")
to which I get:
>Error in lookup.xport(file) : unable to open file
I have read FAQ lists and Google searched and cannot
figure out what I'm
2004 Mar 26
1
lookup.xport in foreign ignoring some datasets (PR#6701)
The Details.
In the following version.
> version
_
platform i386-pc-linux-gnu
arch i386
os linux-gnu
system i386, linux-gnu
status
major 1
minor 8.1
year 2003
month 11
day 21
language R
>
lookup.xport ignores some datasets in sas export file.
File "emptySasData3.xpt"
(available at http://biostat.mc.vanderbilt.edu/tmp/emptySasData3.xpt)
is a
2002 Dec 20
1
read.xport and lookup.xport in foreign (PR#2385)
Under
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 6.1
year 2002
month 11
day 01
language R
and using foreign 0.5-8 I am encountering errors when using read.xport. Here's
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
2001 May 05
1
read.xport bug of foreign pkg (PR#933)
Full_Name: Jorge A. Tomasevic
Version: 1.2.2
OS: Win98
Submission from: (NULL) (146.83.23.177)
As i'm not an "R-expert-user", i will describe what i do:
i) open Rgui.exe
ii) ivoke foreign library : >library(foreign)
iii) i try to read an .xpt file (from Systat 9): >datos <-
read.xport('ipoisson.xpt')
iv) then the program crashes. Norton CrashGuard alerts the
2003 Mar 11
0
different file types
You might look at "eval" and "parse".
Reid Huntsinger
-----Original Message-----
From: Spencer Graves [mailto:spencer.graves at pdf.com]
Sent: Tuesday, March 11, 2003 4:03 PM
To: janet rosenbaum
Cc: r-help
Subject: Re: [R] different file types
The command "'source' causes R to accept its input from the named file".
I don't know what you mean by
2003 Mar 06
1
tkexit
Sorry, my question is if exists a command tkexit in R, i need a command how
exit of tcl for close an aplication. How to use him. Thank