Re: [R] Checking for monotonic sequence

2011-11-16 Thread R. Michael Weylandt
Happy to help, but could you provide a dput() example of your data div1 -- I'm not sure if your table elements are coded as factors or doubles and that can make quite a difference. Anyways, once you confirm they are doubles, something like this will do it: apply(D, 1, function(x) all(diff(x)>0))

[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