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

}
ramiromagno/quincunx documentation built on June 2, 2025, 1:23 a.m.