df_xtab_matrix: Cross-tabulates columns of a dataframe into a matrix with NAs...

View source: R/library_data_structures.R

df_xtab_matrixR Documentation

Cross-tabulates columns of a dataframe into a matrix with NAs for unspecified pairs

Description

Cross-tabulates columns of a dataframe into a matrix with NAs for unspecified pairs

Usage

df_xtab_matrix(model, df, rows, columns)

Arguments

model

A formula indicating relevant columns from data frame

df

A data.frame of columns to cross-tabulate

rows

A vector of row names for the matrix to sort by

columns

A vector of column names for the matrix to sort by

Value

A cross-tabulated matrix matrix with NAs for unspecified pairs.


sem-in-r/seminr documentation built on Aug. 26, 2022, 8:47 p.m.