search for: mariann

Displaying 20 results from an estimated 51 matches for "mariann".

Did you mean: marian
2010 Feb 22
3
gsub patterns from vector elements w/out loop?
...gsub(x[i],"something else",y) } Surely, there must be a less kludgy way? I tried looking at the different apply()s but am not getting anywhere, partly because I lack the mental flexibility to combine the fact that I am applying gsub() to y but now want to apply that to x ... erm. :/ Marianne -- Marianne Promberger PhD, King's College London http://promberger.info R version 2.10.1 (2009-12-14) Ubuntu 9.10
2010 Nov 29
1
cross tabulate variables by subject id
...s who answered 0 or 1 to AC and/or AD respectively. I can get the first step by making an extra variable: dat1$condnew <- paste(dat1$cond1,dat1$cond2,sep="") although I am sure there are more elegant ways, and especially, I am stumped how to fill in the cells of the table. Thanks, Marianne -- Marianne Promberger PhD, King's College London http://promberger.info R version 2.12.0 (2010-10-15) Ubuntu 9.04
2010 Dec 06
5
How can I refer to actual (n) and previous (n-1) elements in a vector?
...ike to calculate the sum of (n-1) + n for each element of a vector and get a vector as a result. Besides others I tried this: v<-c(3,6,8,1,1,3,9,5,6,3) for (i in 1:NROW(v)){a[i]<-a[i-1]+a[i]} I would like to get this result: 9,14,9,2,4,12,14,11,9 I would greatly appreciate your help! Marianne [[alternative HTML version deleted]]
2011 Feb 02
1
pass nrow(x) to dots in function(x){plot(x,...)}
...doesn't work: myfun <- function(x, ...) { ns <- nrow(x) barplot(x , ... ) } myfun(m1, main=paste("n = ",ns) ) ns is not found So, basically, how do I assign an object inside a function that I can then access in the dots when executing the function? Many thanks Marianne -- Marianne Promberger PhD, King's College London http://promberger.info R version 2.12.0 (2010-10-15) Ubuntu 9.04
2016 Jan 12
2
Welcoming a new SIG member :)
Virt SIG folks, please join me in welcoming our latest SIG member, Marianne Lombard (username: jehane). She's been a Fedora contributor for quite sometime already, and will now be helping to ensure I'm not being a bottleneck RE: docker on CentOS virt :) Welcome aboard, Marianne. -- Lokesh Freenode: lsm5 GPG: 0xC7C3A0DD -------------- next part -------------- A n...
2010 Aug 24
1
Index list by other list (w/ logical elements)?
...should be: z [[1]] [1] "one" [[2]] [1] "four" "five" I was hoping sapply(x,"[",y) would work, but it doesn't. I guess I need to sapply twice, like sapply(x, function() { sapply(y ... but I can't figure it out. Many thanks for any pointers Marianne -- Marianne Promberger PhD, King's College London http://promberger.info R version 2.11.1 (2010-05-31) Ubuntu 9.04
2008 Oct 05
1
barchart for aggregated (sum) data in lattice?
...d I can do this with traditional graphics using: barplot(xtabs(amount~what+month, data=t1),beside=T) But I'd like to be able to do this in lattice. I tried: barchart(amount~what|month,t1) But that doesn't sum the data for t1$amount for each month first. How could I do that? Thanks, Marianne -- Marianne Promberger Graduate student in Psychology http://www.psych.upenn.edu/~mpromber
2009 Oct 09
3
"Use R" -- term and logo copyright?
...R user conference. I enquired with the agrocampus-ouest.fr website about the logo but was pointed to r-project.org and the R development core team. I thought in that case it might be best to ask here to have the answer publicly available -- sorry if I overlooked the information online somewhere. Marianne -- Marianne Promberger PhD, King's College London http://promberger.info R version 2.9.2 (2009-08-24) Ubuntu 9.04
2009 Oct 03
2
add lines() to 1st plot in layout() after calling 2nd plot()?
...er: layout(matrix(c(1,2),1)) plot(1:10,main="left plot") plot(10:1,main="right plot") lines(c(3:7,7:3),col="red") but of course now lines() gets added to the "right plot". I Is there any way to make the lines() go to the fist plot ("left plot")? Marianne -- Marianne Promberger PhD, King's College London http://promberger.info R version 2.9.2 (2009-08-24) Ubuntu 9.04
2009 Sep 02
1
get function to return object "name"?
...on(subject) { plot(subject,main=X) } where X is the expression I'm looking for, and the plot should have the title "s1" if I've called myplot(s1), "s2" if myplot(s2), etc. I'm sure I'll be really embarrassed that this is so trivial but I cannot figure it out. Marianne -- Marianne Promberger PhD King's College London
2009 Dec 12
1
read.csv to read output of system()?
...mple: system("echo \"one,two,three\" > file.csv") # create mockup file read.csv(file=system("sed -e 's/,/;/' file.csv")) # this does not work I think the answer must be in ?connections, maybe pipe() but I have fiddled with these and cannot figure it out. Marianne -- Marianne Promberger PhD, King's College London http://promberger.info R version 2.10.0 (2009-10-26) Ubuntu 9.04
2016 May 13
3
[RFC] Disabling DAG combines in /O0
...AfterLegalizeVectorOps; It would most likely break some CodeGen tests since it would have an impact on the code produced at /O0. In fact, I tried to run the CodeGen lit tests with this patch and got 25 new test failures on different targets. These tests would probably need to be updated. Thanks, Marianne -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160513/5a5ad2fc/attachment.html>
2009 Jun 10
1
ggplot, qplot: alpha channel for colors corresponding to factor
...Goodall),Better.adapt=c(Better.adapt),Second.adapt=c(Second.adapt)) library(ggplot2) qplot(jitter(Goodall),jitter(Better.adapt),colour=Second.adapt,data=d1) # follwoing doesn't work: qplot(jitter(Goodall),jitter(Better.adapt),colour=I(alpha(Second.adapt,1/5)),data=d1) Thanks for any pointers, Marianne -- Marianne Promberger PhD http://www.psych.upenn.edu/~mpromber PGP/GnuPG public key ID 80AD9916
2011 Nov 30
1
SAS to R: I would like to replicate a statistical analysis performed in SAS in R.
...motor test: baseline; learning sessions immediately, 6h, 24h, and 30d after memory task - dependent variable: response time (RT) Research question: Do the two groups learn differently across time? I would appreciate a lot any help on the R commands or the choice of statistical approach. Thanks! Marianne, Columbia, SC [[alternative HTML version deleted]]
2007 Jan 26
1
Form of the equation produced by a GLM with Poisson family and log link function
...) slope sst chl dist ice -6.884e-01 -6.740e-01 5.644e-01 -2.694e+00 -7.278e-05 1.044e-01 Degrees of Freedom: 412 Total (i.e. Null); 407 Residual Null Deviance: 544.7 Residual Deviance: 413.2 AIC: 512.2 Thanks in advance! Marianne Gilbert, M.Sc., R.P.Bio. Environmental Scientist - Marine Biology Jacques Whitford 4370 Dominion St., 5th Floor Burnaby, B.C. V5G 4L7, Canada Tel. (604) 436-3014, ext. 253 Fax. (604) 436-3752 ***************************************************** This e-mail message, including attachments, is con...
2016 May 17
5
[RFC] Disabling DAG combines in /O0
Hi, DAG combiner does indeed optimizations but also canonicalization. The latter, we probably need to keep, the former, we should be able to disable. When I asked Marianne to do a RFC about this, I was hoping we could get new ideas on how to tackle this problem. I am fine with the approach of disabling the optimizations one by one when we know it is indeed an optimization. However, I am not a fan of having "if (OptLevel == <...>)" scattered all arou...
2008 Mar 04
1
simplifying a GLM-removing categorical variables
...els are significant and one is not. How should I simplify my model? Do I need to take out the whole category (i.e. all of vegetation type), or just the level that is not significant (but how would I explain this biologically?) Please spell out any anwers simply, I am new to R, Thanks very much Marianne -- View this message in context: http://www.nabble.com/simplifying-a-GLM-removing-categorical-variables-tp15825670p15825670.html Sent from the R help mailing list archive at Nabble.com.
2009 Mar 31
1
ggplot: order of numeric factor levels?
...s I understand factors!) Here is a minimal example: library(ggplot2) y <- c(-1,2,0,0,-2,-1) z <- factor(y,levels=c(-2,-1,0,1,2)) qplot(z) For me, the resulting plot is ordered: -1,2,0,-2 By contrast, plot(z) is neatly ordered -2,-1,0,1,2 What am I not getting? Thanks for any pointers, Marianne
2009 Oct 01
1
.Rprofile file
Hi, I want to use the .RProfile to set defaults such as text editor. Is this a file I need to create? Also, where should I put it? I tend to create .RData files for different projects, putting each in a different Windows (Vista) folder. Is one .Rprofile file created that any instance of R can access (I would imagine so)? Thanks, Walt -- ________________________ Walter R.
2009 Oct 03
1
if else statement error
Hello, I am doing a if else statement in R. But it always comes out error such as 'unexpected symbol' There are two variables. ini and b. when ini=1, a=3; when ini>1 and b>2, a=3; all other situations, a=6. I don't know where it is wrong. Here is my code ini=3 b=4 if (ini==1) { a=3 } else if (ini>1 and b>2 ) { a=3 } else {a=6} Thanks a