Learn R Programming

unga (version 0.1.0)

table_unga_general: Function to cross tabulate all variables in a data frame

Description

Function to cross tabulate all variables in a data frame

Usage

table_unga_general(expvar, x)

Arguments

expvar

explanatory variable

x

data frame

Value

the output from return

References

Norman M. Bradburn et al. 2004. Asking questions. 2nd revised edition. John Wiley & Sons

Examples

Run this code
# NOT RUN {
#' set.seed(123456)
gender<-round(runif(50,1,2))
variable_1<-round(runif(50,1,5))
variable_2<-round(runif(50,1,5))
variable_3<-round(runif(50,1,5))
df<-data.frame(gender,variable_1,variable_2,variable_3)
table_unga_general(gender,df)
# }

Run the code above in your browser using DataLab