Documentation

13A.3 Input formats, column types, and missing values

custom reads delimited text rather than spreadsheet workbooks. CSV, semicolon-separated, tab-separated, and whitespace-separated files are supported. Automatic delimiter detection examines the first line that is actually read; use --delimiter when detection is ambiguous or when a validation workflow requires an explicit contract.

Column names and types

With the default --header true, the first retained line supplies names. Matching is case-insensitive, but outputs preserve resolved names. A column is numeric only when every nonmissing value can be parsed as a number. Fortran exponents such as 1.5D+01 are accepted. One accidental text token can therefore turn an intended numeric column into text and make a numeric geom fail.

Missing tokens include an empty field, ., NA, NaN, N/A, and NULL. They are not automatically zero. Plot layers omit rows missing variables they require; facet rows with missing facet values are not drawn. Tables can report nmiss, and demographics tables create a categorical “Missing” row.

How ordinary, titled, headerless, and NONMEM files are read

Validation before analysis

Inspect the log for row and column counts. Create a listing table with --head 10 when a file is unfamiliar. Check whether ID was inferred numeric or text, whether dose codes retained leading zeros, and whether special values became missing. If an identifier must remain text, prepare it accordingly upstream; type inference is file-wide.

Blank and comment lines beginning with # are ignored. A data line with a different number of fields causes an error naming the line, often indicating an unaccounted title or units row.

Common mistakes

  • Treating . or blank as numeric zero.
  • Assuming a .xlsx workbook is a delimited file.
  • Ignoring one text token that changes an entire column's type.
  • Trusting automatic delimiter detection without reviewing columns.

Checklist

  • Confirm delimiter, header line, row count, and column count.
  • Review inferred numeric and text roles.
  • Count missing values in variables used for analysis.
  • Use a listing table before complex plots.
  • Preserve leading-zero identifiers outside numeric inference.

Further reading

See titled and headerless files, missingness and denominators, and troubleshooting.