Skip to contents

Extracts the Hermann-Mauguin space group name (e.g., from _space_group_name_H-M_alt).

Usage

extract_space_group_name(cif_content)

Arguments

cif_content

A data.table containing the lines of a CIF file.

Value

A character string of the space group name, or NA if not found.

Examples

cif_path <- system.file("extdata", "1590946.cif", package = "crystract")
if (file.exists(cif_path)) {
  cif_content <- read_cif_files(cif_path)[[1]]
  extract_space_group_name(cif_content)
}
#> [1] "P n m a"