Re: [R] Your data set manipulations

2024-09-16 Thread Thomas . Rose
Dear Francesca, As Rolf already pointed out, please provide more comprehensible information. As shot into the blue, excluding the NAs when calculating the mean might help: > mean(c(3, 5, NA)) [1] NA > mean(c(3, 5, NA), na.rm = TRUE) [1] 4 Cheers, Thomas Von:

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Thomas . Rose
Dear Upananda, I see a misplaced bracket in your code, and there is no need in aes() to call the dataframe explicitly. Does this work? ggplot(data = data_vol3, aes(x = index, y = usa)) + geom_line() Best wishes, Thomas Von: R-help im Auftrag von Upananda Pan

[R] Please help: cannot import files from Windows into R

2016-07-14 Thread Christa Rose
Can someone please help? The read.table command is not working for me I think because Windows has my account name stored as "Christa Rose" with a space in it. Is this a problem? I have tried many syntax iterations, and cannot get around this. Here is an example of the syntax

[R] dev-lang/R-3.1.0: biocLite("vsn") removes all files in /

2014-05-17 Thread Juergen Rose
I had the following files in /: root@caiman:/root(8)# ll / total 160301 drwxr-xr-x 2 root root 4096 May 16 12:23 bin/ drwxr-xr-x 6 root root 3072 May 14 13:58 boot/ -rw-r--r-- 1 root root 38673 May 14 14:22 boot_local-d.log lrwxrwxrwx 1 root root11 Jan 22 2011 data -

Re: [R] computationaly singular error!

2013-09-12 Thread Rose
I have 8 predictors and 1144 observations over 13 years. I think it is not the case. -- View this message in context: http://r.789695.n4.nabble.com/computationaly-singular-error-tp4675810p4675962.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] computationaly singular error!

2013-09-12 Thread Rose
Thanks Bert, all predictors are numerical. By the way, I have checked the collinearity of predictors by vif(). All vif of predictors were less than 2 that means none of the predictors are linear combinations of the others. Best, Rose -- View this message in context: http://r.789695.n4

[R] computationaly singular error!

2013-09-10 Thread Rose
Hi there, I am trying to estimate the mlogit model. but I get the following error. Error in solve.default(H, g[!fixed]) : system is computationally singular: reciprocal condition number = 4.65795e-19 I have googled it and found out the collinearity between independent variables cause this err

[R] panel multinomial logit

2013-09-04 Thread Rose
X1 + X2 +X3 + X4 + X5 + X6 + X7 + X8 + X9 + X10 + : panel is only relevant for mixed logit models. Now, I would like to know if the mlogit.dat is correct or not? Secondly, how could I make correct the mlogit command. Any help would be appreciated in advance. Best, Rose -- View this mess

[R] Bootstrapping a 11x10 matrix

2013-04-23 Thread Herbejie Rose Cuizon
Good evening! This is Herbejie Rose I need your help for me to compute the following: I just want to ask on how to bootstrap a 11x10 matrix to obtain 1000 bootstrap samples and compute the 10 dimensional mean per bootstrap sample. the 11x10 dimension of the matrix has 11 subjects and 10

[R] update.packages(checkBuilt = TRUE) fails in updating rpanel_1.1-1 due to missing package BWidget

2013-03-26 Thread Juergen Rose
update.packages(checkBuilt = TRUE) fails with: > update.packages(checkBuilt = TRUE) rpanel : Version 1.0-6 installed in /usr/lib64/R/library built under R 2.15.0 Version 1.1-1 available at http://mirrors.softliste.de/cran Update (y/N/c)? y trying URL 'http://mirrors.softliste.de/cran/src/contr

Re: [R] Reference a variable inside a string and another for object assingments

2012-08-17 Thread Kenneth Rose
Thanks Gabor! This is exactly what I was searching for! --- And it works like a charm. On Fri, Aug 17, 2012 at 1:03 PM, Gabor Grothendieck wrote: > On Thu, Aug 16, 2012 at 3:30 PM, Kenneth Rose wrote: >> Hi R community >> >> I copied a bit of my R code that gets some data

Re: [R] Reference a variable inside a string and another for object assingments

2012-08-17 Thread Kenneth Rose
7;, '2012-06-12 23:14', sql) ) > > > > Or if mydates is a vector of dates stored as a POSIXt object: > > for (id in mydates) { > dbGetQuery( con, gsub('ADATE', format(id), sql) ) > } > > > -Don > > -- > Don MacQueen > > Lawrence Liv

[R] Reference a variable inside a string and another for object assingments

2012-08-16 Thread Kenneth Rose
Hi R community I copied a bit of my R code that gets some data from a database. You won't be able to run the code, but I am a beginner so you will probably understand what going on. I would like to make a variable I can refer to inside the sqlQuery. Instead of writing the start date and time (ex

Re: [R] getopt does not work as expected!

2012-03-30 Thread Juergen Rose
Am Mittwoch, den 28.03.2012, 14:08 +0200 schrieb Juergen Rose: > I have the following script (also attached): > ... > Ausführung angehalten > > This behaviour I don't like at all. Why getopt does not distinguish > beetween options starting with alt least one hyph

[R] getopt does not work as expected!

2012-03-28 Thread Juergen Rose
(opt$verbose ) ) { opt$verbose = 0 } if ( is.na(opt$verbose ) ) { opt$verbose = 0 } print(sprintf("%s: do something with %s!",self,infile)) If I run this script from the command line, I get the output: rose@moose:/home_moose/rose/Txt/src/Test/R(24)$ ./getopt_test.R [1] "/

Re: [R] Rmpi fails to install

2011-07-18 Thread Juergen Rose
Am Sonntag, den 03.07.2011, 18:19 +0200 schrieb r...@rz.uni-potsdam.de: > Quoting r...@rz.uni-potsdam.de: > > > Quoting Juergen Rose : > > > >> Hi, > >> > >> I was just able to install the patched Rmpi on the second system with > >> openmp

Re: [R] Rmpi fails to install

2011-07-03 Thread rose
Quoting r...@rz.uni-potsdam.de: Quoting Juergen Rose : Hi, I was just able to install the patched Rmpi on the second system with openmpi-1.5.3. What can we that Rmpi_0.5-9a.tar.gz becomes a standard CRAN package? Regards Juergen Now there is a new problem. Testing openmpi-1.5.3-r1 and

Re: [R] Rmpi fails to install

2011-07-03 Thread rose
Quoting Juergen Rose : Hi, I was just able to install the patched Rmpi on the second system with openmpi-1.5.3. What can we that Rmpi_0.5-9a.tar.gz becomes a standard CRAN package? Regards Juergen Now there is a new problem. Testing openmpi-1.5.3-r1 and Rmpi_0.5-9a.tar.gz with the attached

Re: [R] Rmpi fails to install

2011-06-30 Thread Juergen Rose
Hi, I was just able to install the patched Rmpi on the second system with openmpi-1.5.3. What can we that Rmpi_0.5-9a.tar.gz becomes a standard CRAN package? Regards Juergen Am Freitag, den 17.06.2011, 13:28 +0200 schrieb Hugo Mildenberger: > Juergen, > > > I try to install Rmpi as root with in

Re: [R] Rmpi fails to install

2011-06-30 Thread Juergen Rose
Hi Hugo, I tried your patch. The first 'R CMD INSTALL --preclean Rmpi_0.5-9a.tar.gz' failed with: *** installing help indices ** building package indices ... ** testing if installed package can be loaded [inspironM12:22936] *** Process received signal *** [inspironM12:22936] Signal: Segmentation

[R] gcc-4.5.2 and install.packages("glmnet")?

2011-06-23 Thread Juergen Rose
supported Fortran 90 compiler or Fortran 90 compilers unavailable! Stop! ERROR: configuration failed for package ‘glmnet’ How can I get more information, what a problem has happened? Otherwise I have no problem to compile a small Fortran 90 program: root@orca:/home/rose/Txt/src/Test/Fortra

Re: [R] Segfaults of eigen

2011-06-07 Thread Juergen Rose
debug segfaults for yourself (see 'Writing R Extensions') or > ask your vendor for support. I still suffer from the same problem, but now with R version 2.12.2. > On Mon, 21 Feb 2011, Juergen Rose wrote: > > > Am Montag, den 21.02.2011, 11:11 +0100 schrieb Juergen Rose:

Re: [R] access data on server

2011-06-07 Thread Juergen Rose
Am Dienstag, den 07.06.2011, 11:40 +0200 schrieb Brown, Mathew: > Hello, > > I'm running R on Linux (Ubantu) and I'm trying to run a script that will read > and plot data on a linux server. I've looked around and haven't been able to > figure out how to do this. > > I want to load several files

[R] glmnet_1.6 fails to install due to unsupported Fortran 90 compiler

2011-05-20 Thread Juergen Rose
Hi, if I try to install glmnet, the installation fails with: > install.packages("glmnet",dependencies=TRUE) trying URL 'http://mirrors.softliste.de/cran/src/contrib/glmnet_1.6.tar.gz' Content type 'application/x-gzip' length 522657 bytes (510 Kb) opened URL ===

[R] Installation of rattle complains about missing packages

2011-05-13 Thread Juergen Rose
Hi, if I try to install rattle, R fails to install: rpvm, rsprng, RBGL, pcalg, arulesViz, pkgDepTools, Rgraphviz . rpvm depends on pvm, rsprng on sprng which is not installed and which seems not so easy to install on my gentoo systems. ArulesViz depends on Rgraphviz, RBGL and pcalg depends on

[R] Rmpi fails to install

2011-03-07 Thread rose
I try to install Rmpi as root with install.packages("Rmpi"). It fails with: ... checking for x86_64-pc-linux-gnu-gcc -std=gnu99 option to accept ISO C89... none needed I am here /usr and it is OpenMPI Trying to find mpi.h ... Found in /usr/include Trying to find libmpi.so or libmpich.a ... Found l

Re: [R] repeated execution of svm(e1071) gives different results, if weights are use and if probability = TRUE is set

2011-02-24 Thread Juergen Rose
Am Mittwoch, den 23.02.2011, 18:12 +0100 schrieb Juergen Rose: > class.weights=Wts, I have just seen, that me last code was not complete. I try it once more: > library(e1071)> data(Glass, package = "mlbench") > index <- 1:nrow(Glass) > testindex <- sample(index, tr

[R] repeated execution of svm(e1071) gives different results, if probability = TRUE is set

2011-02-23 Thread Juergen Rose
I called svm and predict three times with the same data and got three differing predictions: > library(e1071) Lade nötiges Paket: class > data(Glass, package = "mlbench") > index <- 1:nrow(Glass) > testindex <- sample(index, trunc(length(index)/5)) > testset <- Glass[testindex, ] > trainset <- Gla

[R] svm(e1071) and scaling of weights

2011-02-23 Thread Juergen Rose
I expected, that I will get the same prediction, if I multiply the weights for all classes with a constant factor, but I got different results. Please look for the following code. > library(e1071) > data(Glass, package = "mlbench") > index <- 1:nrow(Glass) > testindex <- sample(index, trunc(lengt

Re: [R] Segfaults of eigen with blas-atlas at x86_64-pc-linux-gnu systems

2011-02-21 Thread Juergen Rose
Am Montag, den 21.02.2011, 11:25 +0100 schrieb Karl Ove Hufthammer: > Juergen Rose wrote: > > >> eigen(D) > > > > *** caught segfault *** > > address (nil), cause 'unknown' > > > > Traceback: > > 1: .Call("La_rs", x, only.va

Re: [R] Segfaults of eigen

2011-02-21 Thread Juergen Rose
Am Montag, den 21.02.2011, 11:11 +0100 schrieb Juergen Rose: > Hi, > > with small matrices eigen works as expected: > > > eigen(cbind(c(1,4),c(4,7)), only.values = TRUE) > $values > [1] 9 -1 > > $vectors > NULL > > > eigen(cbind(c(1,4),c(

[R] Segfaults of eigen

2011-02-21 Thread Juergen Rose
Hi, with small matrices eigen works as expected: > eigen(cbind(c(1,4),c(4,7)), only.values = TRUE) $values [1] 9 -1 $vectors NULL > eigen(cbind(c(1,4),c(4,7))) $values [1] 9 -1 $vectors [,1] [,2] [1,] 0.4472136 -0.8944272 [2,] 0.8944272 0.4472136 > eigen(cbind(c(1,-1),c(1,-

Re: [R] segfault during example(svm)

2011-02-19 Thread rose
Hi Peter, Quoting Peter Ehlers : On 2011-02-18 12:32, Juergen Rose wrote: Am Freitag, den 18.02.2011, 11:53 -0800 schrieb Peter Ehlers: On 2011-02-18 11:16, Juergen Rose wrote: If do: library("e1071") example(svm) I get: svm> data(iris) svm> attach(iris) svm>

Re: [R] segfault during example(svm)

2011-02-18 Thread Juergen Rose
Am Freitag, den 18.02.2011, 21:42 +0100 schrieb Claudia Beleites: > update.packages (checkBuilt = TRUE) Dear Claudia, I just tried update.packages (checkBuilt = TRUE), it did not solved the issue. Nevertheless thanks, Juergen __ R-help@r-project.org

Re: [R] segfault during example(svm)

2011-02-18 Thread Juergen Rose
Am Freitag, den 18.02.2011, 11:53 -0800 schrieb Peter Ehlers: > On 2011-02-18 11:16, Juergen Rose wrote: > > If do: > >> library("e1071") > >> example(svm) > > > > I get: > > > > > > svm> data(iris) > > > > svm&g

[R] segfault during example(svm)

2011-02-18 Thread Juergen Rose
If do: > library("e1071") > example(svm) I get: svm> data(iris) svm> attach(iris) svm> ## classification mode svm> # default with factor response: svm> model <- svm(Species ~ ., data = iris) svm> # alternatively the traditional interface: svm> x <- subset(iris, select = -Species) svm> y <- S

[R] How to reset libPaths for root

2011-02-10 Thread Juergen Rose
rary/2.12" [2] "/usr/lib64/R/library" > How can I reset libPaths permanently for root to "/usr/lib64/R/library"? I have: root@lynx:/root(4)# R --version R version 2.12.1 (2010-12-16) .. Regards. -- Juergen Rose Uni-Potsdam __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] update.packages() and install.packages() does not work more because of "Error in read.dcf"

2010-03-30 Thread Juergen Rose
ing 'Li ...' is malformed! All systems are gentoo systems with R-2.10.1. Also reinstalling of R from sources did not solve the problem. Any hint is appreciated. Regards Juergen -- Juergen Rose Uni-Potsdam __ R-help@r-project.org mailing l

[R] Combining 2 columns into 1 column many times in a very large dataset

2010-02-27 Thread Sherri Rose
*Combining 2 columns into 1 column many times in a very large dataset* The clumsy solutions I am working on are not going to be very fast if I can get them to work and the true dataset is ~1500 X 45000 so they need to be efficient. I've searched the R help files and the archives for this list and

Re: [R] Strange indices of support verctors from e1071

2009-06-08 Thread Juergen Rose
Am Montag, den 08.06.2009, 13:33 -0400 schrieb David Winsemius: > On Jun 8, 2009, at 12:42 PM, Juergen Rose wrote: > > > Am Montag, den 08.06.2009, 18:33 +0200 schrieb Juergen Rose: > >> Am Montag, den 08.06.2009, 12:30 -0400 schrieb milton ruser: > >>> Dear R

Re: [R] Strange indices of support verctors from e1071

2009-06-08 Thread Juergen Rose
Am Montag, den 08.06.2009, 18:33 +0200 schrieb Juergen Rose: > Am Montag, den 08.06.2009, 12:30 -0400 schrieb milton ruser: > > Dear Rose, > > > > no attached file came with the message. > > > > bests > > milton > > I try once more to attache the

Re: [R] Strange indices of support verctors from e1071

2009-06-08 Thread Juergen Rose
Am Montag, den 08.06.2009, 12:30 -0400 schrieb milton ruser: > Dear Rose, > > no attached file came with the message. > > bests > milton I try once more to attache the file. I hope that 89 KB is not to large for the mailing list. > On Mon, Jun 8, 2009 at 12:20 PM,

Re: [R] Strange indices of support verctors from e1071

2009-06-08 Thread Juergen Rose
Am Montag, den 08.06.2009, 18:20 +0200 schrieb Juergen Rose: > Hello, > > In the attached file training.csv (I apologize for the large file) I > have 238 objects belonging to 13 classes, which are described by 183 > properties. I would like to find a svm model for these objects. &

[R] Strange indices of support verctors from e1071

2009-06-08 Thread Juergen Rose
Hello, In the attached file training.csv (I apologize for the large file) I have 238 objects belonging to 13 classes, which are described by 183 properties. I would like to find a svm model for these objects. I tried the following R statements. library('e1071') datatraining <- read.csv("training

Re: [R] interactive file choosing in Linux?

2009-05-27 Thread Juergen Rose
> > version.string R version 2.8.1 (2008-12-22) > > > > > > > > Derek N. Eder > > Gothenburg University > > Vigilance and Neurocognition Laboratory > > Medicinaregatan 8B > > Gothenburg Sweden > > SE 405 30 > > > > tlf (031) 342-8261 > > mobil 0704

Re: [R] package for /usr/lib64/R/library/tkrplot/libs/tkrplot.so

2009-05-17 Thread Juergen Rose
Am Sonntag, den 17.05.2009, 13:16 -0500 schrieb Dirk Eddelbuettel: > On 17 May 2009 at 12:53, Juergen Rose wrote: > | 'revdep-rebuild' under GENTOO shows me > | that /usr/lib64/R/library/tkrplot/libs/tkrplot.so, which was installed > | at April 24th, is broken. > |

[R] package for /usr/lib64/R/library/tkrplot/libs/tkrplot.so

2009-05-17 Thread Juergen Rose
Hi, 'revdep-rebuild' under GENTOO shows me that /usr/lib64/R/library/tkrplot/libs/tkrplot.so, which was installed at April 24th, is broken. 'ldd /usr/lib64/R/library/tkrplot/libs/tkrplot.so' shows me that tkrplot.so needs libtcl8.4.so and libtk8.4.so, which is no more installed since the installat

Re: [R] 'Dynamic' 3D plot

2009-05-08 Thread Juergen Rose
other mailing list simply to reply the postings. Regards Juergen > 2009/5/8 Juergen Rose > Am Freitag, den 08.05.2009, 02:43 -0700 schrieb Tony Breyal: > > Hi Martial, > > > > The rgl package is quite nice for this sort of thing: >

[R] args and test of passed paramters

2009-04-17 Thread Juergen Rose
Hi, I would like to call a R script sometimes with: R --slave --vanilla --args Debug=1 N=25 < test.R and sometimes with R --slave --vanilla Debug=1 < test.R or similar. Inside the R script I get the arguments with: args=(commandArgs(TRUE)) if(length(args)==0){ print("===No arguments s

Re: [R] Translate the elements of a dataframe

2009-04-16 Thread Juergen Rose
Am Donnerstag, den 16.04.2009, 15:14 -0400 schrieb Chuck Cleland: > On 4/16/2009 2:58 PM, Juergen Rose wrote: > > The second beginner question. I want to create a new dataframe, where > > each element of the original dataframe is translated to 1 if it was "+", >

[R] Translate the elements of a dataframe

2009-04-16 Thread Juergen Rose
The second beginner question. I want to create a new dataframe, where each element of the original dataframe is translated to 1 if it was "+", to 0 if it was "-" to -1 otherwise. I could do with: Lines <- "abcd +-+ + +++ - +1- '+ ' -

Re: [R] Howto build combinations of colums of a data frame

2009-04-16 Thread Juergen Rose
quot;tripels="); print(tripels) and I am very satisfied. Juergen > baptiste > On 16 Apr 2009, at 17:33, Juergen Rose wrote: > > > Am Donnerstag, den 16.04.2009, 10:59 -0400 schrieb David Winsemius: > > > > Thanks David, > > > > is there also

Re: [R] Howto build combinations of colums of a data frame

2009-04-16 Thread Juergen Rose
Am Donnerstag, den 16.04.2009, 10:59 -0400 schrieb David Winsemius: Thanks David, is there also a shorter way to get the columns names of the new data frames? Juergen > On Apr 16, 2009, at 10:14 AM, Juergen Rose wrote: > > > Hi, > > > > as a R-newcomer I would like

[R] Howto build combinations of colums of a data frame

2009-04-16 Thread Juergen Rose
Hi, as a R-newcomer I would like to create some new data frames from a given data frame. The first new data frame should content all pairs of the columns of the original data frame. The second new data frame should content all tripels of of the columns of the original data frame and the last the q

[R] package vars: save plots

2009-03-17 Thread Koboltschnig, Rose-Gerd
=var.png) plot(var.canada) dev.off() i only get the last plot. how can i save the four plots, not only the last one? thanks in advance, rose __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

[R] read.xls and name of worksheet

2009-03-12 Thread Juergen Rose
"--- i=%2d rc=%s ---",i,rc)) if (rc != "try-error") { cmd<-paste("sed -n \"s/.*[(](.*)[)].*/\1/p\" ",log," > text.log") system(cmd) #unlink(log) print("--- summary(wksh

[R] Simulating Conditional Distributions

2008-03-22 Thread Sherri Rose
ticularly useful when the probability of being "diseased" is even smaller and I want a large number of diseased individuals. Any pointers to do this would be extremely helpful! Thank you, Sherri Rose UC Berkeley [[alternative HTML version deleted]]

[R] Using Predict and GLM

2008-01-28 Thread Sherri Rose
Dear R Help, I read through the archives pretty extensively before sending this email, as it seemed there were several threads on using predict with GLM. However, while my issue is similar to previous posts (cannot get it to predict using new data), none of the suggested fixes are working