Description Usage Arguments Value Examples
Calculate percent positive response for a question in the New York City School Survey data
1 | score_calc(df, stub)
|
df |
data.frame; s16 or s17 |
stub |
character; The question stub of interest, e.g. "s_q5c", which is the stub for "5c. My teachers will always listen to students' ideas." |
A numeric vector of proportions with console output indicating the selected variables
1 2 3 4 5 | ## Not run:
df <- s17
df$test <- score_calc(df, stub="s_q5c")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.