[R] How to make a proper use of blocking in limma using voom

2014-04-12 Thread Catalina Aguilar Hurtado
Hi Steve, Thanks for you reply. I have tried what you suggested and checked the limma guide sessions. Now I am getting the results from only one treatment which is great but the problem is all my adjusted Pvalues (adj.P.Val) are >0.05. Don't really know how to solve this, I know my data works be

[R] FW: Reading output of a GLMM run in R

2014-04-12 Thread ruth harries
Hi, I am a complete novice and dummy when it comes to statistics so I apologise in advance... I have been asked to report the results of my GLMMs (I ran two) in a table. This table must state: effect, standard error, test statistic, and P value, for all fixed effects. Unfortunately I am str

[R] Reading output of a GLMM run in R

2014-04-12 Thread ruth harries
Hi, I am a complete novice and dummy when it comes to statistics so I apologise in advance... I have been asked to report the results of my GLMMs (I ran two) in a table. This table must state: effect, standard error, test statistic, and P value, for all fixed effects. Unfortunately I am struggli

Re: [R] R 3.0.3, Windows 7: Problem installing XML package

2014-04-12 Thread Alpesh Pandya
@Uwe I tried the same steps from office as well as home network with same results. Are you using windows 7 with R 3.0.3? I have seen same question being asked by others without any resolution. Is anything special about XML package? I am OK use older version of package but in archives there are no

Re: [R] R 3.0.3, Windows 7: Problem installing XML package

2014-04-12 Thread Alpesh Pandya
Thank you for response Uwe. I tried multiple times by downloading the zip file from many sources but still the same error. This is a major road block for me in using R. Appreciate any help on this. On Fri, Apr 11, 2014 at 6:53 PM, Uwe Ligges wrote: > Works for me. > > Best, > Uwe Ligges > > > >

[R] [R-pkgs] frailtypack package 2.6

2014-04-12 Thread Rondeau Virginie
Dear R users, the frailtypack package, for the analysis of correlated survival data, has been updated on CRAN. The major changes in version 2.6 are: * Fit now a multivariate gaussian frailty model (two types of recurrent events and a terminal event). For instance here is a model that fits a w

[R] How two have two legends on a chart with different groups?

2014-04-12 Thread jcrosbie
I'm trying to have two legends on a chart, with two sets of data with subgroups. Currently ggplot is are merging the to sets of data together. I would like to have the vertical lines in there own legend and not affect the colour shading or show up in the "type" legend. How would I go about doing

[R] Adding Nested Random Effects to MCMCglmm

2014-04-12 Thread Marian L. Firke
Dear R Experts, Does anyone have advice for how to nest random effects in the MCMCglmm package? Right now, I am running my models with Individual as a random effect; however, the 25 individuals in my study are birds taken from 13 different nests, so I feel that a more accurate model would nes

Re: [R] Selecting rows from a DF where the value in a selected column matches any element of a vector.

2014-04-12 Thread Sarah Goslee
See inline. On Apr 12, 2014, at 7:04 PM, Andrew Hoerner wrote: > Oops! Spoke too soon. > > Your fix fixed the problem I was having before, but it turns out the test is > now accepting every line. So there is still some problem with the logic or > with my implimentation of it. > > I thought I

Re: [R] Pie charts using plotGooglemaps

2014-04-12 Thread drunkenphd
Jim thx, Can you please provide me an example how to use my csv data with plotrix float.pie??? -- View this message in context: http://r.789695.n4.nabble.com/Pie-charts-using-plotGooglemaps-tp4688678p4688683.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Pie charts using plotGooglemaps

2014-04-12 Thread Jim Lemon
On 04/13/2014 09:20 AM, drunkenphd wrote: Hi, I am trying to add some pie charts in a list of coordinates. Please find attached data I am using Basically I am using this commands: data<-read.csv(file.choose(),header=T) coordinates(data) = ~ x + y proj4string(data) = CRS("+proj=longlat +datum=WG

Re: [R] R 3.0.3, Windows 7: Problem installing XML package

2014-04-12 Thread Uwe Ligges
On 12.04.2014 22:39, Alpesh Pandya wrote: Thank you for response Uwe. I tried multiple times by downloading the zip file from many sources but still the same error. This is a major road block for me in using R. Appreciate any help on this. Please ask your local IT staff. I get, using the sam

[R] Pie charts using plotGooglemaps

2014-04-12 Thread drunkenphd
Hi, I am trying to add some pie charts in a list of coordinates. Please find attached data I am using Basically I am using this commands: data<-read.csv(file.choose(),header=T) coordinates(data) = ~ x + y proj4string(data) = CRS("+proj=longlat +datum=WGS84") # colPalette defines colors for plot

Re: [R] Selecting rows from a DF where the value in a selected column matches any element of a vector.

2014-04-12 Thread Andrew Hoerner
Oops! Spoke too soon. Your fix fixed the problem I was having before, but it turns out the test is now accepting every line. So there is still some problem with the logic or with my implimentation of it. I thought I should produce a reproducible example without 3 million lines of data. I made a v

Re: [R] Selecting rows from a DF where the value in a selected column matches any element of a vector.

2014-04-12 Thread Sarah Goslee
Hi Andrew, On Apr 12, 2014, at 6:36 PM, Andrew Hoerner wrote: > Thanks Sarah! That worked! > > And you are quite right about the absence of parentheses and "EC07_A1$" 's. > I apologize for sending that code snip -- I am not quite sure how I managed > to do it, since I had already fixed those pr

[R] Fwd: Selecting rows from a DF where the value in a selected column matches any element of a vector.

2014-04-12 Thread Andrew Hoerner
Thanks Sarah! That worked! And you are quite right about the absence of parentheses and "EC07_A1$" 's. I apologize for sending that code snip -- I am not quite sure how I managed to do it, since I had already fixed those problems and changed the code in order to get the error message I posted. Ap

[R] [R-pkgs] Rcpp11 3.1.0 is on CRAN.

2014-04-12 Thread Romain Francois
Hello, R version 3.1.0 was released yesterday, and as always is welcome with great pleasure. One of the features that is of particular interest to me is the support for C++11. I would encourage you to read [Writing R Extensions](http://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Using-

[R] Programing routine comp()

2014-04-12 Thread Endy BlackEndy
Dear R users. I am trying to program the comp() routine in package survMisc. I am reading the data below with d=read.table( "C:\\. . .",fill=TRUE,header=TRUE) Then I load the packages 'survival' and 'survMisc', library(survival), library(survMisc) and I run the commands

Re: [R] R, RStudio, and a server for my iPad.

2014-04-12 Thread Viechtbauer Wolfgang (STAT)
You will have to enter the external IP address and then use port forwarding. Just google for that term (port forwarding) ... For example: http://www.howtogeek.com/66214/how-to-forward-ports-on-your-router/ http://en.wikipedia.org/wiki/Port_forwarding Best, Wolfgang __

Re: [R] R, RStudio, and a server for my iPad.

2014-04-12 Thread Jeff Newmiller
That you cannot reach your home LAN from the Internet without learning something about networking is a good thing, since that offers some hope that the Russian Mafia can't use your computer to launch criminal activities against the rest of us, either. Studying how to set up a VPN on your networ

Re: [R] R, RStudio, and a server for my iPad.

2014-04-12 Thread John Sorkin
Grand, Thank you. I have been able to use my iPad to connect to a server running RStudio server as described in an earlier email and can use the virtual keyboard, which works but is not convenient as one needs to go from keyboard screen to another. My current problem is that while I can get eve

Re: [R] Change position in package rgl

2014-04-12 Thread Duncan Murdoch
On 12/04/2014, 11:19 AM, Roland Rau wrote: Dear all, I am using package rgl and I want to change the position where I "stand". Maybe a small example might clarify what I am looking for: # Begininng of explanatory example library(rgl) data(volcano) # the example ?rgl.surface y <- 2 * volcano x

[R] Change position in package rgl

2014-04-12 Thread Roland Rau
Dear all, I am using package rgl and I want to change the position where I "stand". Maybe a small example might clarify what I am looking for: # Begininng of explanatory example library(rgl) data(volcano) # the example ?rgl.surface y <- 2 * volcano x <- 10 * (1:nrow(y)) z <- 10 * (1:ncol(y)) yl

Re: [R] R, RStudio, and a server for my iPad.

2014-04-12 Thread Frans Marcelissen
Running rstudio (server) on an ipad. I do'nt have an ipad anymore, but some years ago I noticed that rstudio (server) worked fine on an ipad of you have a separate keyboard. It does not work with the virtual keyboard. The same is true with android tablets. Frans 2014-04-12 3:38 GMT+02:00 Roy Mend

Re: [R] Selecting rows from a DF where the value in a selected column matches any element of a vector.

2014-04-12 Thread Sarah Goslee
You need %in% instead. This is untested, but something like this should work: ECwork <- EC07_A1[ EC07_A1$GEO_ID %in% c("01000US", "04000US06", "33000US488", "31000US41860", "31400US4186036084" "05000US06001", "E6000US0600153000") & EC07_A1$SECTOR %in% c("32", "33", "42", 44", 45", 51", 5

[R] Selecting rows from a DF where the value in a selected column matches any element of a vector.

2014-04-12 Thread Andrew Hoerner
Dear Folks-- I have a file with 3 million-odd rows of data from the 2007 U.S. Economic Census. I am trying to pare it down to a subset of rows that both (1) has any one of a vector of NAICS economic sector codes, and (2) also has any one of a vector of geographic ID codes. Here is the code I am tr

Re: [R] calling in inverted commas

2014-04-12 Thread Frede Aakmann Tøgersen
Oh, I see. Actually I forgot to check whether if could be an advantage to use the URLencoding () function on queryUrl. I'll check later. Br. Frede Sendt fra Samsung mobil Oprindelig meddelelse Fra: arun Dato:12/04/2014 12.45 (GMT+01:00) Til: Frede Aakmann Tøgersen Cc: Eliz

Re: [R] calling in inverted commas

2014-04-12 Thread Frede Aakmann Tøgersen
Hi Arun It seems to be an error on the server side and not on the client. The error on the server results in the client receiving a string giving the type of error on the server. And this doesn't work with read.table of course. So if one wants to query for thousands of point one really needs to

Re: [R] calling in inverted commas

2014-04-12 Thread arun
HI, Please ignore the previous message.  I copied your codes directly from the email.  For some reason, the urlPattern <- ... showed some special characters.  I manually fixed it and now it is working. urlPattern1<-("http://disc2.nascom.nasa.gov/daac-bin/Giovanni/tovas/Giovanni_cgi.pl?west=%

Re: [R] calling in inverted commas

2014-04-12 Thread arun
HI, Thanks for the link. I should have used ?sprintf().  BTW, I am not able to reproduce your results. urlPattern <- "http://disc2.nascom.nasa.gov/daac-bin/Giovanni/tovas/Giovanni_cgi.pl?west=%s&north=%s&east=%s&south=%¶ms=0|3B42_V7&plot_type=Time+Plot&byr=1998&bmo=01&bdy=1&eyr=2007&emo=12&edy=31

Re: [R] operating website through R

2014-04-12 Thread Suzen, Mehmet
This looks not so elegant, while normally data provider must have a nice accessing API, anyway, for example you can do this: > myAdd <- > 'http://disc2.nascom.nasa.gov/daac-bin/Giovanni/tovas/Giovanni_cgi.pl?west=60&north=50&east=70&south=-50¶ms=0|3B42_V7&plot_type=Area+Plot&byr=2014&bmo=01&bdy=

Re: [R] invalid multibyte string at 'C'

2014-04-12 Thread Milan Bouchet-Valat
Le vendredi 11 avril 2014 à 16:02 -0700, Fisher Dennis a écrit : > R 3.0.2 > OS X Mavericks > > Colleagues > > I have a file that I converted from SAS (sas7bdat) to CSV (filename: > ORIGINAL.csv). I try to read it with read.csv and I receive the error > message: > Error in type.convert(dat

Re: [R] Save file as Fixed Width using sprintf()

2014-04-12 Thread Frede Aakmann Tøgersen
Hi Have a look at the write.fwf ( fixed width format) in gdata package. > ### load package > library(gdata) > > ### Create a sample data matrix > set.seed(4324) > myMat <- matrix(rnorm(9), 3,3) > > ### cannot get it tp work with matrix so cast to dataframe > write.fwf(as.data.frame(myMat), fil

Re: [R] calling in inverted commas

2014-04-12 Thread Frede Aakmann Tøgersen
Hi Sigh I'm getting a headache seeing ugly formatted R code. Arun, your code is almost unreadable. Have a look at e.g. http://yihui.name/en/2010/04/formatr-farewell-to-ugly-r-code/ Now to the substantial. Why not use the sprintf() function for formatting the url instead of the more involved a