Learn R Programming

ReDaMoR (version 0.8.2)

is_MM: Identify if a file is in MatrixMarket text format

Description

Identify if a file is in MatrixMarket text format

Usage

is_MM(file)

Value

A logical. If FALSE, the first line of the file is returned as an attribute named "r1": attr(is_MM, "r1")

Arguments

file

the file to read