linesplit.fixed: Split a string into fixed-length parts.

View source: R/read_fs_surface.R

linesplit.fixedR Documentation

Split a string into fixed-length parts.

Description

Split a string into fixed-length parts.

Usage

linesplit.fixed(
  cline,
  length_per_part,
  num_parts_expected = NULL,
  error_tag = NULL
)

Arguments

cline

character string, the input line

length_per_part

integer, number of characters per part

num_parts_expected

integer, the number of parts. Leave at NULL if this is not known.

error_tag

optional character string, how to identify the line in a parsing error message. Could be the line number, or whatever. Only relevant if 'num_parts_expected' is not matched.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.