Re: [R] [External] Re: Help please

2021-03-11 Thread Rasmus Liland
Dear Areti, this dcast data.frame presents the same info as Jim's barplot reshape2::dcast(data=scrounging, formula=behav~substr, fun.aggregate=length) yielding behav air ground tree vine 1 active 5 433 2 foraging 2 134

Re: [R] [External] Re: Help please

2021-03-10 Thread Richard M. Heiberger
> table(scrounging) substr behav air ground tree vine active 1 536 foraging 2 630 inactive 6 113 snoozing 2 137 > likert(t(table(scrounging))) From: R-help on behalf of

Re: [R] [External] Re: help with web scraping

2020-07-26 Thread Rasmus Liland
Dear William Michels, On 2020-07-25 10:58 -0700, William Michels wrote: > > Dear Spencer Graves (and Rasmus Liland), > > I've had some luck just using gsub() > to alter the offending "" > characters, appending a "___" tag at > each instance of "" (first I > checked the text to make sure it

Re: [R] [External] Re: help with web scraping

2020-07-26 Thread Rasmus Liland
Dear GRAVES et al., On 2020-07-25 12:43 -0500, Spencer Graves wrote: > Dear Rasmus Liland et al.: > > On 2020-07-25 11:30, Rasmus Liland wrote: > > On 2020-07-25 09:56 -0500, Spencer Graves wrote: > > > Dear Rasmus et al.: > > > > It is LILAND et al., is it not? ... else it's customary to > >

Re: [R] [External] Re: help with web scraping

2020-07-25 Thread William Michels via R-help
Dear Spencer Graves (and Rasmus Liland), I've had some luck just using gsub() to alter the offending "" characters, appending a "___" tag at each instance of "" (first I checked the text to make sure it didn't contain any pre-existing instances of "___"). See the output snippet below: >

Re: [R] [External] Re: help with web scraping

2020-07-25 Thread Spencer Graves
Dear Rasmus Liland et al.: On 2020-07-25 11:30, Rasmus Liland wrote: On 2020-07-25 09:56 -0500, Spencer Graves wrote: Dear Rasmus et al.: It is LILAND et al., is it not? ... else it's customary to put a comma in there, isn't it? ... The APA Style recommends "Sharp et al., 2007":

Re: [R] [External] Re: help with web scraping

2020-07-25 Thread Rasmus Liland
On 2020-07-25 09:56 -0500, Spencer Graves wrote: > Dear Rasmus et al.: It is LILAND et al., is it not? I do not belong to a large Confucian family structure (putting the hunter-gatherer horse-rider tribe name first in all-caps in the email), else it's customary to put a comma in there,

Re: [R] [External] Re: help with web scraping

2020-07-25 Thread Spencer Graves
Dear Rasmus et al.: On 2020-07-25 04:10, Rasmus Liland wrote: > On 2020-07-24 10:28 -0500, Spencer Graves wrote: >> Dear Rasmus: >> >>> Dear Spencer, >>> >>> I unified the party tables after the >>> first summary table like this: >>> >>> url <- >>>

Re: [R] [External] Re: help with web scraping

2020-07-25 Thread Rasmus Liland
On 2020-07-24 10:28 -0500, Spencer Graves wrote: > Dear Rasmus: > > > Dear Spencer, > > > > I unified the party tables after the > > first summary table like this: > > > > url <- > > "https://s1.sos.mo.gov/CandidatesOnWeb/DisplayCandidatesPlacement.aspx?ElectionCode=750004975; > > M_sos

Re: [R] [External] Re: help with web scraping

2020-07-24 Thread Spencer Graves
Dear Rasmus: On 2020-07-24 09:16, Rasmus Liland wrote: > On 2020-07-24 08:20 -0500, luke-tier...@uiowa.edu wrote: >> On Fri, 24 Jul 2020, Spencer Graves wrote: >>> On 2020-07-23 17:46, William Michels wrote: On Thu, Jul 23, 2020 at 2:55 PM Spencer Graves wrote: > Hello, All: >

Re: [R] [External] Re: help with web scraping

2020-07-24 Thread Rasmus Liland
On 2020-07-24 08:20 -0500, luke-tier...@uiowa.edu wrote: > On Fri, 24 Jul 2020, Spencer Graves wrote: > > On 2020-07-23 17:46, William Michels wrote: > > > On Thu, Jul 23, 2020 at 2:55 PM Spencer Graves > > > wrote: > > > > Hello, All: > > > > > > > > I've failed with multiple > > > > attempts

Re: [R] [External] Re: help with web scraping

2020-07-24 Thread Spencer Graves
On 2020-07-24 08:20, luke-tier...@uiowa.edu wrote: Maybe try something like this: url <- "https://s1.sos.mo.gov/CandidatesOnWeb/DisplayCandidatesPlacement.aspx?ElectionCode=750004975; h <- xml2::read_html(url) Error in open.connection(x, "rb") : HTTP error 404.   Thanks for the

Re: [R] [External] Re: help with web scraping

2020-07-24 Thread luke-tierney
Maybe try something like this: url <- "https://s1.sos.mo.gov/CandidatesOnWeb/DisplayCandidatesPlacement.aspx?ElectionCode=750004975; h <- xml2::read_html(url) tbl <- rvest::html_table(h) Best, luke On Fri, 24 Jul 2020, Spencer Graves wrote: Hi Bill et al.:   That broke the dam:  It

Re: [R] [External] RE: help

2018-12-13 Thread Miller, Shawn
Yes I confirmed all the dates I need are in the test.xlsx table. The final.2.xlsx table does not have the dates for July, August, September. -Original Message- From: David L Carlson [mailto:dcarl...@tamu.edu] Sent: Thursday, December 13, 2018 2:33 PM To: Miller, Shawn Cc:

Re: [R] [External] RE: help

2018-12-13 Thread David L Carlson
OK. Follow the chain of subsets to figure out where the dates go missing. Scanning the code I see the following subsets: wqn.last5yrs, wqn.removeblanks, wqn.removenull, wqn.removeparm, n.det, wqn.ph, wqn.noph. Use the range function to find out where the observations get dropped out.

Re: [R] [External] RE: help

2018-12-13 Thread David L Carlson
Use Reply-All to keep the thread on the list. If the most recent WQN SIS Data Download table is 14June2018_WQN_Data_Download, does it contain any data for the months July, August, September, October, November, December? After extracting the data you create the file