convert_new_values_to_tibble: Convert New Values to Tibble

View source: R/ExtractNewValues.R

convert_new_values_to_tibbleR Documentation

Convert New Values to Tibble

Description

The output of the "extract_new_core_units" function is a list of lists. With the names of the lists are the variables to be converted and the lists contain all of the new values. This function converts all of these lists into tibbles. With a new column which has to be filled in by the user

Usage

convert_new_values_to_tibble(new_values)

Arguments

new_values

A list of lists containing the values to convert

Details

Rpackage file: ExtractNewValues.R

Examples


new_values <- c("egg1", "egg2", "egg3")
expected_result <- tibble::as_tibble(list(
  "survey_value" = c("egg1", "egg2", "egg3"),
  "conversion" = c(NA, NA, NA)
))

actual_result <- convert_new_values_to_tibble(new_values)

l-gorman/rhomis-R-package documentation built on Nov. 8, 2023, 6:46 a.m.