R/relocate_metadata_cols.R

Defines functions relocate_metadata_cols

relocate_metadata_cols <- function(df) {

  if(tibble::is_tibble(df)) {
    dplyr::relocate(df, dplyr::starts_with('..'), .after = dplyr::last_col())
  } else { # Assuming it's a list of tibbles
    purrr::map(df, relocate_metadata_cols)
  }

}

Try the quincunx package in your browser

Any scripts or data that you put into this service are public.

quincunx documentation built on July 9, 2023, 7:32 p.m.