readXDS_ASCIIHeader: Load an XDS_ASCII file's header.

View source: R/readXDS_ASCII.R

readXDS_ASCIIHeaderR Documentation

Load an XDS_ASCII file's header.

Description

This function reads information from the header of an XDS_ASCII.HKL data file and organises it into a named list with a variable number of components, according to the type of XDS_ASCII.HKL file (see details in readXDS_ASCII).

Usage

readXDS_ASCIIHeader(filename)

Arguments

filename

A character string. The path to a valid XDS ASCII file.

Value

A named list. Each name correspond to a valid field in the xds header. If filename is not a valid XDS ascii file, the function returns 'NULL' and prints out a warning message.

Examples


# Load one of the XDS ASCII files included with
# this distribution of cry
datadir <- system.file("extdata",package="cry")
filename <- file.path(datadir,"xds00_ascii.hkl")
ltmp <- readXDS_ASCIIHeader(filename)
print(names(ltmp))


cry documentation built on Oct. 10, 2022, 9:06 a.m.