similar to: R - C programm. calling load() from within C code

Displaying 20 results from an estimated 11000 matches similar to: "R - C programm. calling load() from within C code"

2005 Apr 26
0
Fwd: R - C programm. calling load() from within C code
Hi! I've already asked in in R-help, but it seems that is more a topic for this list. This is the first time I'm trying to write a C program to be linked with R by my own and I've got one (main) problem 1) I've got a stack of big matrixes, so to manage them I' using save() in the preparation process to save workspace (they are about 1000 matrixes and each one occupies 4.2
2005 Jun 15
2
ploting error
Hello! I've tried to execute an R script that I used to use with older versions with no problem. In the scrip ,I try to create a series of plots in png format, and now there is an error (my actual verion is R2.0.1) Error in title(main=main,sub=sub,xlab=xlab,ylab=ylab,...): X11 font at size 14 could not be loaded Perhaps I did something wrong with this new install? Thanks and best
2005 Jul 07
2
about image() function in R and colors
Hi! I've got a map in R imported from a GIS (GRASS) as a vector of factors. So I've got 20 different levels in the map and I've created a vector of custom colors of exactly 20 colors in lenght. I'm trying to use image() (really plot.grassmeta() that call image()) to plot the map with those colors but it doesnt work and the colors are changed. I would like that all points
2004 Aug 18
1
Fwd: strptime() problem? - Resolved
Hi Gabor and everybody; Thanks Gabor, with the alternative step you've told me the problem is resolved. Comparing the two procedures: Extract from the source 'character' data: > rain$ts[2039:2046] [1] "25/03/2000 22:00:00 UTC" "25/03/2000 23:00:00 UTC" [3] "26/03/2000 00:00:00 UTC" "26/03/2000 01:00:00 UTC" [5] "26/03/2000 02:00:00
2004 Aug 12
2
error using daisy() in library(cluster). Bug?
Hi, I'm using the cluster library to examine multivariate data. The data come from a connection to a postgres database, and I did a short R script to do the analisys. With the cluster version included in R1.8.0, daisy worked well for my data, but now, when I call daisy, I obtain the following messages: --------- Error in if (any(sx == 0)) { : missing value where TRUE/FALSE needed In
2009 Mar 03
1
SPSS data import: problems & work arounds for GSS surveys
I'm using R 2.8.1 on Ubuntu 8.10. I'm writing partly to ask what's wrong, partly to tell other users who search that there is a work around. The General Social Survey is a long standing series of surveys provided by NORC (National Opinion Research Center). I have downloaded some years of the survey data in SPSS format (here's the site:
2005 Mar 17
1
png device & videos
Hi all; please, has anyone found a way to convert a series of png files created in an R script into a video (as avi), from within the same R script? I know this has little relation with typical R problems. Just because I've spent all day without finding a solution, and perhaps anyone has done it before here. Thanks and best regards, Javier -- A. Javier Garcia Water and Soil
2009 Nov 18
0
Optimal parameters for Savitzky-Golay smoothing filter (loop)
Hi I am running a Savitzky-Golay smoothing filter (http://tolstoy.newcastle.edu.au/R/help/04/02/0385.html) for variables in my dataset, dim (272:90). I managed to run the code for individual variables in the dataset and then combine the results into a single dataset. My novice attempt at this task is shown below csg<-NULL for (i in 1:ncol(data.all)) {
2008 Dec 14
1
re ad.spss (foreign) conflict with SPSS 17 files.
SPSS seems to have changed its default datafile format, resulting in issues for read.spss(). In Windows this results in a warning, in Debian the import completely fails: Debian (R version 2.8.0 (2008-10-20) i486-pc-linux-gnu, foreign_0.8-29) > read.spss("/home/jeroen/samples/Tomato.sav") Error in iconv(names(rval), cp, "") : unsupported conversion from 'CP65001'
2008 Feb 22
1
Calling R_PreserveObject from embedded R
Hello. This is my first post to the list, so first I'd like to thank everybody for making and mantaining such a great product as R. I'm writting a native binding to R from Dolphin Smalltalk. I've followed up the examples of the documentation showing how to run R embedded, and I got it partially working. However, I have a problem with the reference handling of the R objects.
2010 May 25
1
Merging dataframe with list
I often read SPSS system files (*.sav) into R using the 'read.spss' function from the 'foreign' library. To retain all the meta data, i.e. 'variable labels', I call the function like this: test.sav <- read.spss('http://www.cdc.gov/healthyYouth/shpps/2006/spss/envs2006.sav', to.data.frame=FALSE, use.value.labels=TRUE ) This returns a list, which is fine.
2009 Nov 12
0
Reading .sav (SPSS) files.
Hi, I used the method read.spss() in library(foreign) to read a .sav file using commands. >library(foreign) >data.sav <- read.spss(''masterfile.sav'') >mydat <- as.data.frame(data.sav) It''s throwing some warnings.. ---------------------------------------------------------------------------- --------------------------------------------
2006 Sep 29
3
What is wrong with this input
I can't seem to figure out why I'm getting this error. The output is copied right off the screen. Notice how in some cases the back slash is missing. In other cases, it can't read a file that I know is there. Thanks in advance > library(foreign) > hrout <- read.spss("c:\\hrab200.sav") Error in read.spss("c:\\hrab200.sav") : unable to open file
2009 Jan 07
1
Importing data from SPSS with Arabic encoding
Dear R-users, I'm facing a problem with the import of data in R. I have a sav file that, I presume, uses some Arabic encoding (but I don't know which one) and I would like to read it with R. When I use the function read.spss (I also tried spss.get(Hmisc)), I get the following message: > read.spss("Hhld.sav") Erreur dans read.spss("Hhld.sav") : erreur ? la lecture
2010 Jun 18
1
Read SPSS v 18 .sav file
Hi, I repeatedly get an error when trying to read an SPSS v. 18 .sav file into R. > require(foreign) Loading required package: foreign > femaleSPSS.dat <- read.spss("female-04-02-2010.sav") Warning message: In read.spss("female-04-02-2010.sav") : female-04-02-2010.sav: Unrecognized record type 7, subtype 18 encountered in system file > However, read.spss works
2003 Aug 10
1
read.spss doesn't work anymore
A couple of months ago, probably using an older version of R, R used to run the following code just fine: library("foreign") data.exp1 <- as.data.frame(read.spss("dataDef.sav")) Issuing the same commands now (after starting R using --vanilla), gives me the following behavior: > library("foreign") > x <- read.spss("dataDef.sav") Error
2014 Dec 16
0
[ANNOUNCE] nftables 0.4 release
Hi! The Netfilter project proudly presents: nftables 0.4 This release contains a lot of bug fixes and new features contained up to the recent 3.18 kernel release (and some features coming up in the yet unreleased 3.19-rc). New features ============ * Add support for global ruleset operations (available since 3.18). Get rid of all tables, chains, and rules in one go: # nft
2008 Dec 24
1
Using SPSS Labels
I am trying to import a SPSS.sav file into R. The attached file is not technically the file I am trying to import, but does replicate my problem. The actual file is much too large to attach. No matter what I do, I can not get R (base or Hmisc) to apply the value labels in the .sav file to the dataframe created in R. Here's the code that I am using. maine <- spss.get("test.sav") #
2008 Aug 01
1
importing explicitly declared missing values in read.spss (foreign)
There is a problem when importing an spss-file containing explicitly declared missing values in R using the read.spss function from the foreign package. I'm not sure these problems are the same in every version of spss, I am using the latest version 16.0.2. I included http://www.nabble.com/file/p18776776/missingdata.sav missingdata.sav and
2004 Aug 17
3
Fwd: strptime() problem?
Hi all; I've already send a similar e-mail to the list and Prof. Brian Ripley answered me but my doubts remain unresolved. Thanks for the clarification, but perhaps I wasn't clear enough in posting my questions. I've got a postgres database which I read into R. The first column is Timestamp with timezone, and my data are already in UTC format. An 'printed' extract of R