Please avoid thinking of this function as a way to mutate dots
. It sort of
is but not in the way you think. It really is for supplementing the spec
so that downstream functions are guaranteed to find these names with
sensible values for every column in the spec. mutate will be a different
function.
ys_fill_dots(x, ..., .overwrite = FALSE)
A yspec
object with modified .dots
By default, this function will not overwrite data in dots
when it already
exists. This behavior can be changed with the .overwrite
argument. Note
that when .overwrite
is TRUE
, all columns in the spec will have the
same value in dots
for the name
getting set.
spec <- ys_help$spec()
spec2 <- ys_fill_dots(spec, new_var = FALSE)