num_answers: Calculates the number of people that answered a particular...

Description Usage Arguments

View source: R/response_rate.R

Description

Calculates the number of people that answered a particular question. Assumes each column corresponds to a unique respondent.

Usage

1
num_answers(df, variable, na = NA)

Arguments

df

data frame. The dataframe to count.

variable

character. The variable to count.

na.

NA responses in the dataframe are coded as this.


peterhurford/surveytools2 documentation built on Feb. 18, 2021, 9:13 p.m.