Learn R Programming

freesurferformats (version 0.1.18)

fixed.vec.format.int: Write fixed width integers to one or several lines.

Description

Write fixed width integers to one or several lines.

Usage

fixed.vec.format.int(
  vdata,
  num_chars_per_entry,
  max_entries_per_line = NULL,
  align_right = TRUE
)

Value

vector of character strings, the formatted data lines.

Arguments

vdata

integer vector, the data

num_chars_per_entry

field length of a single formatted integer in characters

max_entries_per_line

integer, how many entries are allowed per line. Leave at NULL for no limit, which will return all in a single line.

align_right

logical, whether to align the integers to the right. As you may have guessed, set to `FALSE` to align to the left.