powered by
This function takes a numeric vector and converts it into a Matrix Market output file.
A boolean indicating success or failure. Writes a MTX file to disk.
A numeric vector to be converted.
The name of the output file where the Matrix Market formatted data will be saved.
vec <- c(1, 2, 3) vec_to_fmm(vec, tempfile(fileext = ".mtx"))
Run the code above in your browser using DataLab