Description Usage Arguments Value Examples
View source: R/response_sampler.R
This
1 | response_sampler(df, text_col, n)
|
df |
A dataframe object with |
text_col |
The column with each response per row |
n |
The number of responses to sample |
A vector of sampled comments from the supplied dataframe.
1 2 3 4 5 6 7 | ## Not run:
data(austensurvey)
austen_2016 <- subset(austensurvey, subset = Year == 2016)
set.seed(100)
rand_2016 <- response_sampler(austen_2016, "Comment", 10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.