I am new to R language and I am trying to understand what the !!
operator is doing here
df %>% if (stringr::str_length("column")>0) dplyr::filter(., !!rlang::parse_expr(expr)) else .}
I am new to R language and I am trying to understand what the !!
operator is doing here
df %>% if (stringr::str_length("column")>0) dplyr::filter(., !!rlang::parse_expr(expr)) else .}
Its a bang-bang operator used to force early evaluation of part of an expression before it gets fully evaluated. So, its forcing to evaluate that part of the expression before the rest.
With more input, I could provide a more detailed answer.