[R] Checking for monotonic sequence

2011-11-16 Thread Mark Carter
I am scraping data from a web page using XML (excellent package BTW - that's scraping data the easy way!). So far, I've got the code: tables <- readHTMLTable(theurl) rhf <- tables$tabResHistFull div1 <- rhf[which(rhf$V1=="Div ps"),] div1 which is giving me the result:    V1 V2    V3    V4  

Re: [R] Running totals

2011-11-14 Thread Mark Carter
>From: Joshua Wiley >dat$RTotal <- cumsum(dat$BAL) Wow, that's really great. I'm starting to really enjoy using R. My statistical needs are not that great, but I love the way that R handles tabular data. __ R-help@r-project.org mailing list https

[R] Running totals

2011-11-13 Thread Mark Carter
I have a table which looks like this:   ACC    BAL 1 hal -171245.33 2 opn  -50487.63 3 pga  213440.38 4 prt   0.18 5 rbs    8292.54 How do I create a column which shows the running totals of the BAL columns? [[alternative HTML version deleted]] __

[R] Separating out data values

2010-07-04 Thread Mark Carter
I'm not very good at statistics, but I know enough to be dangerous. I'm completely new to R, having just discovered it yesterday. Now that the introductions are out of the way ... I have a table with three columns, only two of which are relevant to the discussion: roe0 and roe1. Plotting roe0 a