File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -646,7 +646,9 @@ code_vaccines <- function(input_data, wave) {
646
646
# If the entire column is NA, ifelse() results in a logical vector, not a
647
647
# character vector, which confuses split_options; since the result should be
648
648
# NA anyway
649
- vaccine_barriers <- ifelse(vaccine_barriers == " 13" , NA_character_ , vaccine_barriers )
649
+ vaccine_barriers <- as.character(
650
+ ifelse(vaccine_barriers == " 13" , NA_character_ , vaccine_barriers )
651
+ )
650
652
if (any(! is.na(vaccine_barriers ))) {
651
653
vaccine_barriers <- split_options(vaccine_barriers )
652
654
}
@@ -786,7 +788,9 @@ code_vaccines <- function(input_data, wave) {
786
788
# If the entire column is NA, ifelse() results in a logical vector, not a
787
789
# character vector, which confuses split_options; since the result should be
788
790
# NA anyway
789
- vaccine_barriers <- ifelse(input_data $ V15b == " 13" , NA , input_data $ V15b )
791
+ vaccine_barriers <- as.character(
792
+ ifelse(input_data $ V15b == " 13" , NA , input_data $ V15b )
793
+ )
790
794
if (any(! is.na(vaccine_barriers ))) {
791
795
vaccine_barriers <- split_options(vaccine_barriers )
792
796
} else {
Original file line number Diff line number Diff line change 5
5
6
6
using namespace Rcpp ;
7
7
8
- #ifdef RCPP_USE_GLOBAL_ROSTREAM
9
- Rcpp::Rostream<true >& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
10
- Rcpp::Rostream<false >& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
11
- #endif
12
-
13
8
// is_selected_cpp
14
9
LogicalVector is_selected_cpp (List responses, String target);
15
10
RcppExport SEXP _delphiFacebook_is_selected_cpp (SEXP responsesSEXP, SEXP targetSEXP) {
You can’t perform that action at this time.
0 commit comments