vars2df: Make data.frame from a list of vars

View source: R/drawConcept.R

vars2dfR Documentation

Make data.frame from a list of vars

Description

Make data.frame from a list of vars

Usage

vars2df(vars, mpos = c(0.5, 0.9), df = NULL)

Arguments

vars

A list

mpos

A numeric vector of length 2

df

A data.frame

Examples

vars=list(name=list(c("tenure","age")),site=list(c("a","b")))
vars2df(vars)
vars=list(name=list(c("milk","hair")),matrix=list(c(1,0,0,0,0,0,1,0,0,0)),pos=5)
vars2df(vars)

processR documentation built on Jan. 23, 2023, 5:44 p.m.