Learn R Programming

phuse (version 0.2.2)

cvt_list2df: Convert list to data frame

Description

convert list to a data frame with the following structure: variable, level, type, value

Usage

cvt_list2df(a)

Arguments

a

a list returned by read_yml or any list

Value

data frame

Examples

Run this code
# NOT RUN {
  a <- "https://github.com/phuse-org/phuse-scripts/raw/master"
  b <- "development/R/scripts"
  c <- "Draw_Dist2_R.yml"
  f1 <- paste(a,b,c, sep = '/')
  r1 <- read_yml(f1)
  r2 <- cvt_list2df(r1)
# }

Run the code above in your browser using DataLab