[R] grofit package problem inputting dataset

2014-08-08 Thread Fethe, Michael
I've recently wanted to analyze some data sets of growth curves; so, I decided to try out the grofit package the dataset inputting gave me some issues. I've been trying to replicate the example from the grofit package with R > foo <- ran.data(100, 25) > time <- foo$time > data <- foo$data

Re: [R] how to process multiple data files using R loop

2014-08-08 Thread Rolf Turner
On 09/08/14 06:25, Fix Ace wrote: I have 16 files and would like to check the information of their first two lines, what I did: ls(pattern="P_") [1] "P_3_utr_source_data" "P_5_utr_source_data" [3] "P_exon_per_gene_cds_source_data" "P_exon_per_gene_source_data" [5] "P_ex

Re: [R] Installing manual package problem

2014-08-08 Thread Jeff Newmiller
The obvious suggestion is to not repack the package file. You should also be sure to read the Posting Guide, which points out that this is a plain text mailing list (HTML is not a what-you-see-is-what-we-see format). --- Jeff

Re: [R] Installing manual package problem

2014-08-08 Thread James Holland
I re-zipped it because when I downloaded from GitHub, it had the actual glassbox folder within the glassbox-master folder, so I zipped that glassbox folder because my understanding was the install.package function only works on zipped files. And it does seem like it installed within my R library (

Re: [R] Logical operators and named arguments

2014-08-08 Thread Patrick Burns
On 07/08/2014 07:21, Joshua Wiley wrote: Hi Ryan, It does work, but the *apply family of functions always pass to the first argument, so you can specify e2 = , but not e1 =. For example: sapply(1:3, `>`, e2 = 2) [1] FALSE FALSE TRUE That is not true: gt <- function(x, y) x > y > sapply(

Re: [R] Installing manual package problem

2014-08-08 Thread David Winsemius
On Aug 8, 2014, at 1:29 PM, James Holland wrote: > Running R 3.03 on Windows 7 > > I am trying to install a package from a github repository. > > https://github.com/google/glassbox > > I downloaded the repository as a zip file, extracted it to get the glassbox > folder and re-zipped it with 7-

Re: [R] circlize package: some error message

2014-08-08 Thread David Winsemius
On Aug 8, 2014, at 11:28 AM, Fix Ace wrote: > I recently tried to run some sample code from R package: circlize, > and got an error message (please see below) = > library(circlize) > > circos.genomicInitialize(df) > df = data.frame(name = c("TP53", "TP63", > "TP73"), + start = c(7565097, 1

Re: [R] color palettes

2014-08-08 Thread Jim Lemon
On Fri, 8 Aug 2014 06:26:35 AM carol white wrote: > Hi, > Is there any way to take one color of each color family from a color > palettes like rainbow? For ex, if there are different blues differentiated > by intensity, hue etc, taking one of them. In this case, when using > rainbow(n), then how t

Re: [R] Logical operators and named arguments

2014-08-08 Thread Joshua Wiley
On Sat, Aug 9, 2014 at 9:56 AM, Patrick Burns wrote: > On 07/08/2014 07:21, Joshua Wiley wrote: > >> Hi Ryan, >> >> It does work, but the *apply family of functions always pass to the first >> argument, so you can specify e2 = , but not e1 =. For example: >> >> sapply(1:3, `>`, e2 = 2) >>> >> [

Re: [R] Installing manual package problem

2014-08-08 Thread James Holland
I re-zipped it because when I downloaded from GitHub, it had the actual glassbox folder within the glassbox-master folder, so I zipped that glassbox folder because my understanding was the install.package On Aug 8, 2014, at 1:29 PM, James Holland wrote: > Running R 3.03 on Windows 7 > > I am tryi

Re: [R] how to process multiple data files using R loop

2014-08-08 Thread William Dunlap
> for(i in ls(pattern="P_")){ head(get(i), 2)} # Should work. You also need to use print(head(...)) if you want to see the printed output from each iteration. Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Aug 8, 2014 at 4:36 PM, David Winsemius wrote: > > On Aug 8, 2014, at 11:25 AM,

Re: [R] how to process multiple data files using R loop

2014-08-08 Thread David Winsemius
On Aug 8, 2014, at 11:25 AM, Fix Ace wrote: > I have 16 files and would like to check the information of their first two > lines, what I did: > > >> ls(pattern="P_") > [1] "P_3_utr_source_data" "P_5_utr_source_data" > [3] "P_exon_per_gene_cds_source_data" "P_ex

[R] Installing manual package problem

2014-08-08 Thread James Holland
Running R 3.03 on Windows 7 I am trying to install a package from a github repository. https://github.com/google/glassbox I downloaded the repository as a zip file, extracted it to get the glassbox folder and re-zipped it with 7-zip. I then ran #-Start code---#

[R] how to process multiple data files using R loop

2014-08-08 Thread Fix Ace
I have 16 files and would like to check the information of their first two lines, what I did: > ls(pattern="P_")  [1] "P_3_utr_source_data"   "P_5_utr_source_data"   [3] "P_exon_per_gene_cds_source_data"   "P_exon_per_gene_source_data"   [5] "P_exon_source_data"   

[R] circlize package: some error message

2014-08-08 Thread Fix Ace
I recently tried to run some sample code from R package: circlize, and got an error message (please see below) = > library(circlize) > circos.genomicInitialize(df) > df = data.frame(name = c("TP53", "TP63", "TP73"), + start = c(7565097, 189349205, 3569084), + end = c(7590856, 189615068, 3652

Re: [R] dynamic runSum

2014-08-08 Thread Gabor Grothendieck
On Thu, Aug 7, 2014 at 9:32 AM, amarjit chandhial wrote: > Hello, > runSum calculates a running sum looking back a fixed distance n, e.g. 20. > How do I calculate a dynamic runSum function for an xts object? > In > otherwords, I want to calculate a running sum at each point in time > looking back

Re: [R] boot strapping poisson getting warnings and negative values

2014-08-08 Thread Berend Hasselman
On 08-08-2014, at 16:12, K Aravindhan wrote: > Dear Team, > I am getting this error while running the boot-strapping functions. > do you really have to post identical messages within 4 to 5 minutes? One message is enough and be patient and wait! Berend >

Re: [R] Problems installing Packages

2014-08-08 Thread Luís de Sousa
Dear Sven, I am running into this exact some problem in Ubuntu 14.04. I have R 3.1.1 freshly installed and OpenJDK 7 (I do not need BLAS, as far as I know). Trying to install rj and rj.dg I get the exact same error messages as you were getting "Error: cannot determine complete Java config". Were

[R] glmnet, Error in apply(nz, 1, median) : dim(X) must have a positive length

2014-08-08 Thread Sheila the angel
Hello all, In glmnet package, cv.glmnet is giving error >data(iris) >df<-data.frame(iris$Sepal.Length, iris$Sepal.Width, iris$Petal.Length, iris$Petal.Width) >x<- as.matrix(df) >y<- as.numeric(iris$Species) >fit = glmnet(x, y, family = "multinomial", type.multinomial = "grouped") >plot(fit, xvar =

[R] boot strapping poisson getting warnings and negative values

2014-08-08 Thread K Aravindhan
Dear Team, I am getting this error while running the boot-strapping functions. == mod.db.hub<-glm(TOTAL~1+IPD,family="poisson",data=db) fit<-fitted(mod.db.hub) e<-residuals(mod.db.hub) X<-model.matrix(mod.db.hub) boot.huber.fixed<-function(data,indi

[R] inverse Gaussian data transformation in R?

2014-08-08 Thread gj
Anyone know of an R package that will allow me to do an inverse Gaussian/Wald distribution transform of my data (reaction times)? Thanks! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Need help on boot strapping

2014-08-08 Thread Aravindhan, K
Dear Team, I am getting this error while running the boot-strapping functions. == mod.db.hub<-glm(TOTAL~1+IPD,family="poisson",data=db) fit<-fitted(mod.db.hub) e<-residuals(mod.db.hub) X<-model.matrix(mod.db.hub) boot.huber.fixed<-function(data,indi

Re: [R] color palettes

2014-08-08 Thread Mark Knecht
?rainbow ?col2rgb rainbow(8) col2rgb(rainbow(8)[5]) col2rgb(rainbow(8)[5])[1] col2rgb(rainbow(8)[5])[2] col2rgb(rainbow(8)[5])[3] On Fri, Aug 8, 2014 at 6:26 AM, carol white wrote: > Hi, > Is there any way to take one color of each color family from a color palettes > like rainbow? For ex, if

[R] FW: color palettes

2014-08-08 Thread David L Carlson
I think your question is too vague to answer since we don't know what you are trying to do or how many colors you need. The easy answer is that you don't need to use rainbow() at all, just use color names: mycolors <- c("red", "green", "blue", "violet") and you will have one of each. For exampl

Re: [R] color palettes

2014-08-08 Thread Sarah Goslee
You might take a look at the RColorBrewer package. Sarah On Fri, Aug 8, 2014 at 9:26 AM, carol white wrote: > Hi, > Is there any way to take one color of each color family from a color palettes > like rainbow? For ex, if there are different blues differentiated by > intensity, hue etc, taking

Re: [R] color palettes

2014-08-08 Thread David L Carlson
I would suggest not using pie charts and not trying to make 1000 color distinctions. Also read all of my original post and do some research. > cols <- hsv(.6, seq(0, 1, length.out=1000), .9) > pie(1:1000, labels="", col=cols, border=NA) David From: carol white [mailto:wht_...@yahoo.com] Sent: F

Re: [R] Output from file.info()$mtime

2014-08-08 Thread Fisher Dennis
Professor Ripley You asked “how that managed to give TRUE? (I apologize for the mangled quotes — the error occurred with plain quotes). All that I can say is that R versions <= 3.1.0 allowed my code to execute without error. The bug report appears to address the issue. I typically review Dalg

[R] color palettes

2014-08-08 Thread carol white
Hi, Is there any way to take one color of each color family from a color palettes like rainbow? For ex, if there are different blues differentiated by intensity, hue etc, taking one of them. In this case, when using rainbow(n), then how to select 1 color of each family, for ex 1 blue, 1 red etc?

Re: [R] map column name in matrix to multiple elements

2014-08-08 Thread Sarah Goslee
Using dput() to provide your data is enormously easier. Assuming the original column names of your data frame correspond to the ColMap column of the second data frame, it's very straightforward: mat <- structure(list(A = c(0.01, -2, -4), B = c(0.2, 1.4, -3), C = c(-0.3, 2.3, -2), D = c(0.8, 3.1,

[R] map column name in matrix to multiple elements

2014-08-08 Thread Adrian Johnson
Hi: I am requesting help on matrix mapping. I have a matrix that is 5000 rows x 3000 columns in R env. Matrix: A BC D E S1 0.01 0.2 -0.3 0.8-1 S2 -21.4 2.3 3.1-2 S3 -4 -3-2

Re: [R] Output from file.info()$mtime

2014-08-08 Thread Prof Brian Ripley
On 07/08/2014 23:37, Fisher Dennis wrote: R 3.1.1 OS X (and Windows) Colleagues I have some code that manages files. Previously (as late as 3.1.0), the command: file.info(FILENAME)$mtime == “” yielded T/F Now, it triggers an error: Error in as.POSIXlt.character(x, tz, ...) :

Re: [R] Some hpc problems with doMPI and runmpi (I know there is R-SIG-HPC)

2014-08-08 Thread Pascal Oettli
Hello, In your email, you speak about foreach()%dopar%, but in your script, it is foreach()%do%. Best, Pascal On Thu, Aug 7, 2014 at 7:19 PM, André Ziervogel wrote: > Dear R people, > > I’ve been doing some hpc using R and openmpi. Unfortunately I’ve encoutred a > major problem and it’s nature