Converts the information from isoreader::iso_get_file_info() into the appropriate types and appends new columns with masspec name and broadid.

parse_info(
  .did,
  masspec = NA_character_,
  std_names = paste0("ETH-", 1:4),
  oth_name = "other",
  broadid_name = broadid,
  id1 = `Identifier 1`
)

Arguments

.did

An iso file, resulting from isoreader::iso_read_dual_inlet().

masspec

The name of the mass spectrometer to append.

std_names

Character vector of the standard names to find in Identifier 1.

oth_name

Single general name to assign to non-standard "other" measurements.

broadid_name

The name of the new broadid column.

id1

The column with sample and standard names.

See also

Other metadata cleaning functions: add_info(), clean_did_info(), get_inits()