Displaying 20 results from an estimated 7000 matches similar to: "read.spss {foreign} doesn't work over network?"
2008 Nov 05
1
How do I read a text (.csv) file to match a matrix/cross tab? (Object confusion??)
I'm having a problem reading data to set control totals for a dataframe.
I want to adjust a dataframe based on a 2-d table of values, which I get
by using :
> CurrentX1Sums <- as.matrix(xtabs(~tripid_nu+lineon, data=SurveyData))
> CurrentX2Sums <- apply(CurrentX1Sums, 1, sum)
I've created a .csv file with new (target) sums that looks like this:
tripid_nu Warner
2008 Oct 30
1
Trying to "expand" some data - Newbie needs help
I want to calculate "expansion factors" for elements in my dataframe
based on a 2-d cross classification. Since I'll have "missing values"
(many combinations will have no record) I'll need a second "expansion
factor" for each "row". I've included my "work to date" below, but I'm
not very close to getting this right.
My
2008 Nov 07
2
Faster way to combine data sets with different date ranges
I am trying to combine two data sets, one with daily values and one with weekly values. SurveyData conatins environmental data collected on a daily basis. sat.data contains satellite sea surface temperature that is an average of satellite measurements over a six day period. I would like to combine the two files so that my output file has the daily dates from SurveyData and the weekly average
2008 Aug 14
2
Simple (?) subset problem
I can't figure out the syntax I need to get subset to work. I'm trying
to split my dataframe into two parts. I'm sure this is a simple issue,
but I'm stumped. I either get all or none of the original "rows".
> XTTable <- xtabs( ~ direction_ , SurveyData)
> XTTable
direction_
EASTBOUND
2008 May 16
1
Sweave.sty problems under WinXP (English locale) with default settings
Hi R-devels,
I encounter the following problem when I want to build a vignette
in the package building process under Windows
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor
2008 Jun 17
3
Sweave: problem with usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave}
R users,
I'm at a loss with a problem considering running .tex files produced
by Sweave. When I run (R 2.7.0):
---------------------------------------------------
#Taken from ?Sweave
testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package = "utils")
## enforce par(ask=FALSE)
options(device.ask.default=FALSE)
## create a LaTeX file
Sweave(testfile)
2009 Nov 22
2
how to read BRFSS file
hello,
I am trying to do exploratory factor analysis with BRFSS dataset (
http://www.cdc.gov/brfss/technical_infodata/surveydata/2008.htm) for a
couple of days, but I was not able to do that and got frustrated. Can
anybody help me with step by step guide? BRFSS dataset provides ASCII or SAS
format.
Thank you.
chloe
[[alternative HTML version deleted]]
2010 Oct 24
1
140 packages in R Commander!!
Dear List
I just downloaded and installed R 2.12.0 and then installed R Commander .
First it got RCmdr and Car, and then suggested for other packages for
utilizing the full functionality- I clicked yes!
I got 140 packages installed!!! Cran Mirror was UCLA...
Here is the list.
Is this intentional- I can see some packages like snow and multicore which
are desirable but quite optional.(see list
2008 Aug 18
1
Survey Design / Rake questions
I'm trying to learn how to calibrate/postStratify/rake survey data in
preparation for a large survey effort we're about to embark upon. As a
working example, I have results from a small survey of ~650 respondents,
~90 response fields each. I'm trying to learn how to (properly?) apply
the aforementioned functions.
My data are from a bus on board survey. The expansion in the
2008 Oct 31
0
Why are these different?
I want to import some "target values" to normalize elements of a
dataframe. I'm summarizing the existing totals using
as.matrix(xtabs(~tripid_nu+lineon, data=SurveyData)) and reading a .csv
table of target values. I can't even get them to list out as similar
data items.
My idea is to do something like this, but I don't know how to do it in R
2008 Mar 24
1
Running rpy produces the error message undefined symbol: KillAllDevices
Hello All,
I've been using R for a while and decided to test R from the svn trunk. I
know that trunk is not stable, but I wanted to see if I can install and run
the latest rpy on my Ubuntu 7.10 box. It installed ok, but I got the
runtime error message:
$ python
Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type
2003 Feb 11
2
Periods instead of spaces in dataframe names?
Basic question:
when I use names() to extract the name of a dataframe element, why does it
have "." instead of " " between words?
Context:
I'm importing a CSV file of survey results for analysis. I read them like
this:
df <- read.csv("surveydata.csv",nrows=40,header=TRUE,
2003 Apr 16
3
R-1.7.0 WIN2000 INSTALL
This is the first time I've ever compiled from sources so bear with me.
OS: Windows 2000
PATH:
.:
D:/Rtools/:
D:/mingw/bin/:
C:/Progra~1/Perl/bin:
D:/texmf/miktex/bin/:
D:/Progra~1/HTMLHe~1:
D:/Progra~1/R/rw1062/bin/:
C:/Progra~1/Insightful/splus61/cmd/:
D:/cygwin/bin:
D:/Progra~1/SSHCom~1/SSHSec~1:
D:/Progra~1/Tcl/bin/:
C:/Progra~1/Microso~3/VC98/Bin
2009 May 31
2
install.packages hangs RGui with frozen rpwd process at bottom of process tree (PR#13734)
Full_Name: Allan Stokes
Version: 2.8.1
OS: XP
Submission from: (NULL) (24.108.0.245)
I've just spent a hellish six hours trying to create my own R package with a
bare bones "hello world" R function inside. I was able to create a
package.tar.gz file eventually with much perseverance.
My remaining problem is that when I try to install my simple package under RGui,
it hangs.
2008 Aug 26
1
plot3d origin
Hi all,
I am trying to do a 3d plot where the x,y,z axes intersects with the origin
(0,0,0) using the plot3d() funtion in the rgl package without success. I
looked back at the past archives on this subject and someone suggested using
djmrgl package. I searched and found it, installed it but when I try to load
it I get the error ...
Error in inDL(x, as.logical(local), as.logical(now), ...) :
2007 Jun 03
2
Problems compiling RMySQL
Hello, I am trying to compile/Install RMySQL_0.6-0 in
R-2.4.1/2.5.0 under Windows XP MCE, I am using MySQL
5.0.41. I have followed the instructions in the file
INSTALL.win, but I get some errors...
C:\Program Files\R\R-2.4.1>Rcmd build --binary RMySQL
--docs=normal
* checking for file 'RMySQL/DESCRIPTION' ... OK
* preparing 'RMySQL':
* checking DESCRIPTION meta-information
2006 Feb 09
1
Question on help system under windows
G'day all,
I spend today sometime playing around with R under Windows since our
lecturing starts in 2 weeks again and our IT guys want to know which
version to put onto our lab machines.
I noticed the following:
Under R-2.2.1, I obtain the following output:
> R.home()
[1] "C:\\PROGRA~1\\R\\R-22~1.1"
and if I run "help.start()" under R, I obtain a file
2011 May 03
1
Compiling Rgraphiz on Windows 7 64bit with R-2.13.0
Hi all,
I am trying to compile Rgraphiz on Windows 7 64bit with R-2.13.0. I have
installed
Rtools213.exe from [1]. The 64bit packages in [2] provided me with the 64 bit
version
of graphviz. After intalling the binary version Rgraphviz 1.30 (in 32bit) it
complains (as
expected) that:
> library(Rgraphviz)
Error: package 'Rgraphviz' is not installed for 'arch=x64'
I
2011 Oct 12
1
Error in Rcpp/inline (Windows XP)
Hi, everyone,
I am just trying to use Rcpp in my computer, and I would like to try a
simple example from website, but R keeps reporting me error. I am using
Windows XP, and has installed Rtools and GSI.
Here is the response:
> src = '
+ Rcpp::NumericVector xa(a);
+ Rcpp::NumericVector xb(b);
+ int n_xa = xa.size();
+ int n_xb = xb.size();
+
+ Rcpp::NumericVector xab(n_xa + n_xb - 1);
2013 Jul 18
2
question about Makeconf and nvcc/CUDA
Dear R development:
I'm not sure if this is the appropriate list, but it's a start.
I would like to put together a package which contains a CUDA program on Windows 7. I believe that it has to do with the Makeconf file in the etc directory.
But when I just use the nvcc with the shared option, I can use the dyn.load command, but when I use the is.loaded function, it shows FALSE.