Re: [R] Extract Data form Website Tables

2014-03-22 Thread Jennifer Young
Hi Doran I'm also trying to scrape the leaderboard data. Did you happen to figure out how to extract the athlete's team/affiliate? Trying to do a bit of code to figure out which teams will qualify when individuals are removed. On Sunday, March 2, 2014 2:34:21 PM UTC-5, Doran, Harold wrote: > >

[R] French accents on characters

2010-08-04 Thread Jennifer Young
Hello Could someone please direct me to the correct commands for adding accents (grave and aigu) to a letter in a plot title, label, or in added text? I'm sure there's a handy list somewhere, but I've failed in coming up with the correct search words to find it. Thank you muchly! Jen ___

Re: [R] evaluating expressions with sub expressions

2010-01-30 Thread Jennifer Young
ot what we want! >> ## And sure enough ... >>> eval(f) >> Error in a * expression(1/t) : non-numeric argument to binary operator >> >> I think I understand why the z <- expression() approach does not work; >> but I >> do not understand why the z <- quote(

Re: [R] evaluating expressions with sub expressions

2010-01-29 Thread Jennifer Young
gt; mat <- list(0, bquote(f1*s1*.(g1))) > vals <- data.frame(f1=1, s1=.5, Tm=2) > > sapply(mat, eval, vals) > > HTH, > > baptiste > > > On 29 January 2010 17:51, Jennifer Young > wrote: >> Hallo >> >> I'm having trouble figuring o

[R] evaluating expressions with sub expressions

2010-01-29 Thread Jennifer Young
Hallo I'm having trouble figuring out how to evaluate an expression when one of the variables in the expression is defined separately as a sub expression. Here's a simplified example mat <- expression(0, f1*s1*g1) # vector of formulae g1 <- expression(1/Tm) # expansion of the definition

Re: [R] shared axes in multipanel plot

2009-12-14 Thread Jennifer Young
el.lines(tt, baseline, lwd = 2, col = grey(0.5)) >>   panel.lines(tt, b2) >> } >> >> On Mon, Dec 14, 2009 at 3:19 PM, Jennifer Young >> wrote: >>>> On Mon, Dec 14, 2009 at 11:30 AM, Jennifer Young >>>> wrote: >>>>> sple

Re: [R] shared axes in multipanel plot

2009-12-14 Thread Jennifer Young
> On Mon, Dec 14, 2009 at 11:30 AM, Jennifer Young > wrote: >> splendid! >> >> This worked well, but there are two oddities that I can't resolve. >> >> 1. In the real data, the "baseline" is a cumulative probability plot >> (from >&g

Re: [R] extracting vectors from lists of lists

2009-12-14 Thread Jennifer Young
ill return its result in a list. > > > - Phil Spector >Statistical Computing Facility >Department of Statistics >UC Berkel

Re: [R] shared axes in multipanel plot

2009-12-14 Thread Jennifer Young
<- ncol(dat) > screens <- rep(1:(nc/2), each = 2) > z <- zoo(dat) > colnames(z) <- paste("Group", screens) > xyplot(z, screens = screens , layout = c(2, 2), col = "black", lty = > 2, scales = list(y = list(relation = "same")), panel = pnl) >

[R] extracting vectors from lists of lists

2009-12-11 Thread Jennifer Young
m of lapply() that will allow me to extract v1 and v2 (ie, the $vec elements) from both sets? Bonus if I can then put it into a matrix tidily. many thanks Jennifer Young __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

[R] shared axes in multipanel plot

2009-12-11 Thread Jennifer Young
, yaxt='n') axis(1, labels=F); axis(2, labels=F) points(dat[,i], type="l", lty=2) points(dat[,i+1], type="l", lty=2) } Thank you muchly Jennifer Young PS: I am a subscriber, but can't for the life of me figure out how to send an email while logged in s

[R] R version of MATLAB symbolic toolbox (variable substitution)

2009-10-14 Thread Jennifer Young
I'm translating some MATLAB code into R and have not found a simple equivalent of the function R = subs(S,old,new). I have, for example, a matrix such as this mx<- function(){ matrix( c(0, f1, f2, s1, 0, 0, 0, s2, 0), 3,3, byrow=T) } and a matrix of data dat<-matrix(c(1

[R] default borders in boxplot and barplot

2009-10-14 Thread Jennifer Young
This is my first post so hopefully I haven't mucked up the rules. I'm trying to change the default borders in either boxplot or barplot so that, at the request of a journal, all of my figures have the same type of border. I've successfully used par(bty="o") using plot(1:10, bty="o"), but it seem