vec_to_fmm: Convert a Numeric Vector to Matrix Market Format

View source: R/cpp11.R

vec_to_fmmR Documentation

Convert a Numeric Vector to Matrix Market Format

Description

This function takes a numeric vector and converts it into a Matrix Market output file.

Arguments

input

A numeric vector to be converted.

filename

The name of the output file where the Matrix Market formatted data will be saved.

Value

A boolean indicating success or failure. Writes a MTX file to disk.

Examples

vec <- c(1, 2, 3)
vec_to_fmm(vec, tempfile(fileext = ".mtx"))

fastMatMR documentation built on Nov. 4, 2023, 1:08 a.m.