[R] Error when compiling R-2.5.1 / *** [d-p-q-r-tests.Rout] Fehler 1

2015-08-01 Thread Joerg Kirschner
Hi everyone, I am new to Linux and R - but I managed to build R-2.5.1 from source to use it in Genepattern. Genepattern does only support R-2.5.1 which I could not find anywhere for installation via apt-get or in the Ubuntu Software-Centre (I am using Ubuntu 14.04 (Trusty Tahr) 32-bit) But after

Re: [R] Clarification on Simulation and Iteration

2015-08-01 Thread David Winsemius
On Jul 31, 2015, at 8:41 PM, Christopher Kelvin wrote: Thanks Dave. What I actually want is to obtain say 10, different sets of (n=50) data for every 10,000 iterations I run. You will realise that the current code produces one set of data (n=50). I want 10 different sets of 50

Re: [R] vectorized sub, gsub, grep, etc.

2015-08-01 Thread John Thaden
Adam,   You reopened an old thread noting its age, but did you begin at its beginning? Subject: vectorized sub, gsub, grep, etc. Date: Oct 7, 2008 R pattern-matching and replacement functions are vectorized: they can operate on vectors of targets. However, they can only use one pattern and

Re: [R] R and AWS

2015-08-01 Thread Tal Galili
How about this: Setting Rstudio server using Amazon Web Services (AWS) – a step by step (screenshots) tutorial http://www.r-statistics.com/2015/06/setting-rstudio-server-using-amazon-web-services-aws-a-step-by-step-screenshots-tutorial/ Contact

[R] missing data in R

2015-08-01 Thread asena ayça özdemir
Hello Mr. FeldesmanI am a master student in biostatistic my thesis about missing values in microarray data, but � can't create any values. � want to create %10, %20,...%90 missing values for all colums in microarray data set . Can you help me any code? thank you for your attention. Asena Ay�a

Re: [R] Clarification on Simulation and Iteration

2015-08-01 Thread Michael Dewey
I am not sure how you are doing this but there is a package on CRAN which implements the Copas model (metasens). I am not sure whether that would help in your modelling. On 01/08/2015 02:36, Christopher Kelvin via R-help wrote: Dear All, I am performing some simulations for a new model. I run

Re: [R] vectorized sub, gsub, grep, etc.

2015-08-01 Thread Adam Erickson
Hi John, So, you think looping over the sub() function with regular expressions disabled is somehow more nuanced? Perhaps you should have specified that you were only interested in sub() function results. Regardless, the original function failed to match the 'a' in 'ab,' which should have

[R] Using R to fit a curve to a dataset using a specific equation

2015-08-01 Thread Michael Eisenring
Hi there I would like to use a specific equation to fit a curve to one of my data sets (attached) dput(data) structure(list(Gossypol = c(1036.331811, 4171.427741, 6039.995102, 5909.068158, 4140.242559, 4854.985845, 6982.035521, 6132.876396, 948.2418407, 3618.448997, 3130.376482,

Re: [R] Error when compiling R-2.5.1 / *** [d-p-q-r-tests.Rout] Fehler 1

2015-08-01 Thread Martin Morgan
On 07/31/2015 10:48 PM, Joerg Kirschner wrote: Hi everyone, I am new to Linux and R - but I managed to build R-2.5.1 from source to use it in Genepattern. Genepattern does only support R-2.5.1 which I could not find anywhere for installation via apt-get or in the Ubuntu Software-Centre (I am

Re: [R] Using R to fit a curve to a dataset using a specific equation

2015-08-01 Thread David L Carlson
I can get you started, but you should really read up on non-linear least squares. Calling your data frame dta (since data is a function): plot(Gossypol~Damage_cm, dta) # Looking at the plot, 0 is a plausible estimate for y0: # a+y0 is the asymptote, so estimate about 4000; # b is between 0 and

Re: [R] PythonInR. Python script in R with parameters required. Download satellite images from NASA

2015-08-01 Thread Collin Lynch
Magi, is there a reason that you need to run the script via R? If your plan is to download the data via python than then process with R, you might consider using the Rpy2 package to link them. This would allow you to call the downloading code from python and then have python feed the data to R.

Re: [R] missing data in R

2015-08-01 Thread Jim Lemon
Hi Asena, If you already have microarray data, you can simply change some of the existing values to NA (datum Not Available). Say you have a toy 10x10 array containing absolute (initial) values: array_values-matrix(sample(0:400,100,TRUE),nrow=10) # create a 10% missing array

Re: [R] R parallel / foreach - aggregation of results

2015-08-01 Thread jim holtman
You can always just pull the last one off the list. When running things in parallel, what does the last one mean? Do you want the last from each of the parallel threads, or just the last one on the list? You might want to put some flag on the data being returned so you can determine which one

Re: [R] R parallel / foreach - aggregation of results

2015-08-01 Thread Martin Spindler
Dear Jim, Thank you very much for your response. It seems to work now, but the return value is not the required matrix but a list of matrices (one for each repition j). Any idea how it is possible to return only the last matrix and not all? Thanks and best, Martin     Gesendet: Freitag, 31.

Re: [R] R parallel / foreach - aggregation of results

2015-08-01 Thread William Dunlap
If you return just the row that the foreach procedure produces instead of the entire matrix containing that row and use .combine=rbind then you will end up with the matrix of interest. E.g., Simpar3a - function (n1) { L2distance - matrix(NA, ncol = n1, nrow = n1) data - rnorm(n1)