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)
  }

}
maialab/quincunx documentation built on Aug. 18, 2022, 5:31 a.m.