Skip to content

Commit

Permalink
Avoid rendering all code chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiyaghessan committed May 14, 2024
1 parent 5fc8e40 commit 6c32c05
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions data_preparation_guide/02-data-cleaning.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(bool_qns)
tidyselect::all_of(bool_qns[1])
)
)
```
Expand Down Expand Up @@ -271,7 +271,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(fundraise_skrcv_qns_bool)
tidyselect::all_of(fundraise_skrcv_qns_bool[1])
)
)
```
Expand Down Expand Up @@ -329,7 +329,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(race_gender_qns_bool)
tidyselect::all_of(race_gender_qns_bool[1])
)
)
```
Expand Down Expand Up @@ -369,7 +369,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(na_bool_qns)
tidyselect::all_of(na_bool_qns[1])
)
)
```
Expand Down Expand Up @@ -415,7 +415,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(demand_fct_qns)
tidyselect::all_of(demand_fct_qns[1])
)
)
```
Expand Down Expand Up @@ -464,7 +464,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(fundraise_change_qns_fct)
tidyselect::all_of(fundraise_change_qns_fct[1])
)
)
```
Expand Down Expand Up @@ -529,7 +529,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(volimportance_qns_fct)
tidyselect::all_of(volimportance_qns_fct[1])
)
)
```
Expand Down Expand Up @@ -575,7 +575,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(donimportance_qns_fct)
tidyselect::all_of(donimportance_qns_fct[1])
)
)
```
Expand Down Expand Up @@ -621,7 +621,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(extaffairs_qns_fct)
tidyselect::all_of(extaffairs_qns_fct[1])
)
)
```
Expand Down Expand Up @@ -661,7 +661,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(int_qns)
tidyselect::all_of(int_qns[1])
)
)
```
Expand Down Expand Up @@ -708,7 +708,7 @@ survey_recode_df <- create_survey_item(
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(numeric_qns)
tidyselect::all_of(numeric_qns[1])
)
)
```
Expand All @@ -733,7 +733,7 @@ survey_recode_df <- survey_recode_df %>%
codebook(
survey_recode_df %>%
dplyr::select(
tidyselect::all_of(text_qns)
tidyselect::all_of(text_qns[1])
)
)
```
Expand Down Expand Up @@ -1054,7 +1054,7 @@ race_gender_qns <- c(race_gender_qns_bool, "CEOrace", "CEOgender", "BChairrace",
codebook(
survey_recode_df %>%
dplyr::select(tidyselect::all_of(race_gender_qns))
dplyr::select(tidyselect::all_of(race_gender_qns[1]))
)
```

Expand All @@ -1063,7 +1063,7 @@ codebook(

We next evaluate survey completion rates for each category of questions. We separate our variables into question categories and compute the proportion of valid responses.

```{r, warning=FALSE}
```{r, warning=FALSE, eval=FALSE}
# Create named list of variables
survey_completion_qns_ls <- list(
Expand Down Expand Up @@ -1152,7 +1152,7 @@ response_rate_df

## Save outputs

```{r}
```{r, eval=FALSE}
setwd("Y:/CNP/Generosity Commission/")
readr::write_csv(survey_recode_df,
"DATA-PREP/02-data-intermediate/02-wave-two/wave-02-data-intermediate-recoded.csv")
Expand Down

0 comments on commit 6c32c05

Please sign in to comment.