R/vec_to_tibble.R

Defines functions vec_to_tibble

#' @importFrom tibble tibble
# convert named vector to tibble
vec_to_tibble <- function(v){
  tibble(names = names(v), n = as.vector(v))
}
alastairrushworth/reporter documentation built on Aug. 10, 2022, 7:56 a.m.