Fix: Correct calculations affected by updated Survey123 question labels.

This commit is contained in:
Nick Heppler 2025-05-02 11:34:57 -04:00
parent 8b75ac97e5
commit 1318a29aa8

View File

@ -318,8 +318,8 @@ The table below summarizes the response rates for optional top-level questions i
The "Total Number of Species Planted" question has special handling—only responses greater than 0 are considered valid, whereas for other questions, any non-NA value counts as a response. The "Total Number of Species Planted" question has special handling—only responses greater than 0 are considered valid, whereas for other questions, any non-NA value counts as a response.
```{r response-rate-table-optional, echo=TRUE, message=FALSE, fig.height=6, fig.width=8} ```{r response-rate-table-optional, echo=TRUE, message=FALSE, fig.height=6, fig.width=8}
fields <- c("Planter Contact Email", "Funding Source", "Land Ownership", fields <- c("Planter Contact Email (Optional)", "Funding Source (Optional)", "Land Ownership (Optional)",
"Tree Size Planted", "Source of Trees", "Total Number of Species Planted") "Tree Size Planted (Optional)", "Source of Trees (Optional)", "Total Number of Species Planted")
calculate_response_rates(survey_data, fields, "Response Rates for Key Survey Questions") calculate_response_rates(survey_data, fields, "Response Rates for Key Survey Questions")
``` ```