A pipe-friendly wrapper for dim(x) <- NULL
and dimnames(x) <- NULL
or, if
which_dim
is not NULL
, dimnames(x)[which_dim] <- list(NULL)
drop_dimnames(x, which_dim = NULL, keep_axis_names = FALSE)drop_dim(x)
drop_dim2(x)
an object, potentially with dimnames
If NULL
(the default) then all dimnames are dropped. If
integer vector, then dimnames only at the specified dimensions are dropped.
TRUE or FALSE, whether to preserve the axis names when dropping the dimnames