Learn R Programming

freesurferformats (version 1.1.0)

text.line.is.numeric: Check whether a text line holds a fixed number of numerical values.

Description

Check whether a text line holds a fixed number of numerical values.

Usage

# S3 method for line.is.numeric
text(line, num)

Value

logical, whether the line contains exactly num numerical values and nothing else.

Arguments

line

character string, the line to check.

num

integer, the number of numerical values expected in the line.