
This argument is passed on as repair to vctrs::vec_as_names(). name_repair = make.namesĪ purrr-style anonymous function, see rlang::as_function() "universal": Make the names unique and syntacticĪ function: apply custom name repair (e.g. "check_unique": (default value), no name repair, but check they are "unique": Make sure names are unique and not empty, "minimal": No name repair or checks, beyond basic existence, That do not appear in the data: to do so use expressions like When used with continuous variables, you may need to fill in values If you want to use only the values seen in
COMBINATION PROGRAM R STUDIO FULL
When used with factors, expand() uses the full set of levels, not just For example,Įxpand(df, nesting(school_id, student_id), date) would produceĪ row for each present school-student combination for all possible To find only the combinations that occur in theĭata, use nesting: expand(df, nesting(x, y, z)). Present in the data, supply each variable as a separate argument: To find all unique combinations of x, y and z, including those not
