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

Try the inspectdf package in your browser

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

inspectdf documentation built on Aug. 9, 2022, 9:05 a.m.