search for: fabiana

Displaying 6 results from an estimated 6 matches for "fabiana".

Did you mean: fabian
2016 Apr 27
3
Create a new variable and concatenation inside a "for" loop
..., or pre-allocate vectors or matrix-like objects with unuseful values like NA and then overwrite each element in the vector or matrix-type object in a loop like your first one. > -- > Sent from my phone. Please excuse my brevity. > > On April 27, 2016 3:25:14 PM GMT+01:00, "Gordon, Fabiana" <fabiana.gordon at imperial.ac.uk> wrote: >>Hello, >> >>Suppose the you need a loop to create a new variable , i.e., you are >>not reading data from outside the loop. This is a simple example in >>Matlab code, >> >>for i=1:5 >>r1=randn &gt...
2016 Apr 28
0
Create a new variable and concatenation inside a "for" loop
...hether in R it was possible to use the same index used in the loop to create a new variable and store the results in as in the example showed below. The use of ?c? was because I was using Matlab, otherwise I know that a new variable shouldn?t have the same name as the name of a function. Regards, Fabiana -----Original Message----- From: Bert Gunter [mailto:bgunter.4567 at gmail.com] Sent: 27 April 2016 21:18 To: Jeff Newmiller Cc: Gordon, Fabiana; r-help at R-project.org Subject: Re: [R] Create a new variable and concatenation inside a "for" loop ... "(R is case sensitive, so &q...
2016 Apr 27
3
Create a new variable and concatenation inside a "for" loop
...a, e.g. suppose I have a 2 X 10 matrix X and suppose I want to calculate the sin () for each 2 x 2 sub-matrix of and stored in a matrix A. Then the code would be something like this, for i=1:5 A(:, 2*i-1:2*i)= sin(X(:, 2*i-1:2*i)) % the ":" symbol indicates all rows end Many Thanks, Fabiana Dr Fabiana Gordon Senior Statistical Consultant Statistical Advisory Service, School Of Public Health, Imperial College London 1st Floor, Stadium House, 68 Wood Lane, London W12 7RH. Tel: 020 7594 1749 Email: fabiana.gordon at imperial.ac.uk<mailto:fabiana.gordon at imperial.ac.uk> Web:...
2016 Apr 27
0
Create a new variable and concatenation inside a "for" loop
...e unlist, do.call, or pre-allocate vectors or matrix-like objects with unuseful values like NA and then overwrite each element in the vector or matrix-type object in a loop like your first one. -- Sent from my phone. Please excuse my brevity. On April 27, 2016 3:25:14 PM GMT+01:00, "Gordon, Fabiana" <fabiana.gordon at imperial.ac.uk> wrote: >Hello, > >Suppose the you need a loop to create a new variable , i.e., you are >not reading data from outside the loop. This is a simple example in >Matlab code, > >for i=1:5 >r1=randn >r2=randn >r=[r1 r2] >c(i,...
2007 Nov 13
0
Difficult to set a quiet formula in maanova
...Spots: 2 for each probe I used the following code: > library(vsn) > todos <- read.matrix("todos_v1_e_v2_back_c.txt",sep="\t") > todos.norm <- vsn2(todos) > write.table(exprs(todos.norm),"todos.norm.txt",sep="\t") > library(maanova) > fabiana.raw <- read.madata("todos.norm.vsn2.maanova.txt", designfile="design.txt", header=TRUE, spotflag=FALSE,CloneID=1,metarow=2, metacol=3, pmt=4) > fabiana <- createData(fabiana.raw, n.rep=2, avgreps=1, log.trans=FALSE) > model.full.mix <- makeModel(data=fabiana, form...
2010 Oct 17
1
Wrong box.
Oct 16 22:52:42 mta0 dovecot: lda(luciano.moreira at metal.eeimvr.uff.br): sieve: msgid=<a04f508ac9d299a0733a09ce714ae56f at localhost.localdomain>: stored mail into mailbox 'luciano/moreira at metal/eeimvr/uff/br' Oct 16 22:52:48 mta0 dovecot: lda(fabiana at vm.uff.br): sieve: msgid=< 4CB3CFE3.4060206 at wspc.com.sg>: stored mail into mailbox 'fabiana at vm/uff/br' Oct 16 22:52:49 mta0 dovecot: master: Warning: Killed with signal 15 (by pid=12190 uid=0 code=kill) Oct 16 22:52:57 mta0 dovecot: imap(testador at uff.br): Server shutting d...