knitr from within an Rmarkdown document is a
> bad idea unless you are building using child documents. Try manipulating your
> markdown from an R file.
>
> On December 16, 2018 11:48:44 AM PST, Nathan Parsons
> wrote:
> >Goal: post from R to Wordpress installation on se
Goal: post from R to Wordpress installation on server.
Problem: R keeps returning the error “Error in parse_block(g[-1],
g[1], params.src) : duplicate label 'setup’” if error = FALSE in the
knitr options or in an r chunk. It works fine if error = TRUE. I could
just go through each post each time
in <- function(x,y)
> ## x is a vector of regex patterns
> ## y is a character vector
> ## value = vector,vec, with length(vec) == length(y) and vec[i] == TRUE
> iff any of x matches y[i]
> { apply(sapply(x,function(z)grepl(z,y)), 1,any)
> }
>
> ## add a match
uot;Large Fringe Metro", "Large Central Metro", "Large Central Metro",
"NonCore (Nonmetro)", "Large Central Metro"), urban_code = c(3L,
2L, 1L, 1L, 6L, 1L), population = c(277308L, 184029L, 830781L,
1160433L, 4160L, 9509611L)), class = "dat
Thanks all for your patience. Here’s a second go that is perhaps more
explicative of what it is I am trying to accomplish (and hopefully in plain
text form)...
I’m using the following packages: tidyverse, purrr, tidytext
I have a number of tweets in the following form:
th <-
swer your question. Please see
> https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
> and follow some of the suggestions you find there to make it easier on
> those who want to help you.
>
> Best,
> Ista
> On Mon, Oct 15, 2018 at 10
I’m attempting to do some content analysis on a few million tweets, but I can’t
seem to get them cleaned correctly.
I’m trying to replicate the process outlined here:
https://stackoverflow.com/questions/46734501/opposite-of-unnest-tokens
My code:
tweets %>%
unnest_tokens(word, text, token =
Please post both the code you are using and the error, Abigail.
Nate
On Oct 9, 2018, 11:59 AM -0700, Friedman, Abigail ,
wrote:
> I keep getting error messages when running my data frame code and I cannot
> figure out what I am doing wrong.
>
>
> [[alternative HTML version deleted]]
>
>
8 matches
Mail list logo