View source: R/SDS100_generate_simulated_samples.R
get_approval_sample | R Documentation |
This function generates a sample of fictional data of people approve of the president.
get_approval_sample(n, degree_of_approval = FALSE)
n |
The sample size. |
degree_of_approval |
A Boolean that if set to TRUE will return a vector with the levels "strongly disapprove", "disapprove", "approve", "strongly approve". If this is set to false, then a vector that only has the levels "disapprove", "approve" will be returned. |
# Generate a sample from 10 individuals
get_approval_sample(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.