read_matrix_csv: Read in a numeric matrix

read_matrix_csvR Documentation

Read in a numeric matrix

Description

Since R does not supply a matrix-reading function, here's one.

Usage

read_matrix_csv(f, what = integer())

read_Matrix_csv(f, what = integer())

Arguments

f

CSV filename, for example topic_words.csv.

what

datatype to read in (passed on to scan). integer() by default; use numeric() if the datafile has proportions.

Value

For read_matrix_csv, an ordinary matrix; for read_Matrix_csv, a sparseMatrix


agoldst/dfrtopics documentation built on July 15, 2022, 4:13 p.m.