ConvertMultiColumnDataFrameToSparseMatrix: Convert multi-column data frame into a sparse matrix.

Description Usage Arguments Details See Also

View source: R/DataConversionFunctions.R

Description

Convert multi-column data frame into a sparse matrix.

Usage

1
2
3
4
5
ConvertMultiColumnDataFrameToSparseMatrix(
  multiColDF,
  itemColName,
  tagTypeColNames
)

Arguments

tagTypeColNames

names of the tag type column names

Multi-column

data frame id-tag relationship

idColName

the column name of the item ID

Details

This does not work if the tagTypeColNames have dash in them. I assume because of the string-to-formula conversion in SMRCreateItemTagMatrix. Obviously, the dependence of the SMRCreateItemTagMatrix can be removed.

See Also

Other Sparse matrix transformation functions: SparseMatrixToTriplets(), ToColumnValueIncidenceMatrix(), TripletsToSparseMatrix()


antononcube/ERTMon-R documentation built on Oct. 14, 2021, 2:27 p.m.