kbenoit / sophistication

R package associated with Benoit, Munger and Spirling (2017) paper(s)
42 stars 7 forks source link

Warning message in bootstrap_readability #5

Closed kmunger closed 6 years ago

kmunger commented 6 years ago

I just reinstalled the latest version, ran this code, and got the following warning messages; it looks like things are working, other than the warning message.

library(sophistication)
library(quanteda)

## compute readability and bootstrap the sentences
set.seed(20170308)
results <- bootstrap_readability(data_corpus_SOTU, n = 2, measure = "Flesch", verbose = TRUE)

Bootstrapping readability statistics for 230 documents: ...computing values from original texts Argument drop not used. ...segmenting the texts into sentences for resampling ...computing values from bootstrapped replicates 1 2 ...computing summary statistics argument is not numeric or logical: returning NA