Learn R Programming

cry (version 0.5.2)

readXDS_ASCIIHeader: 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)

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.

Arguments

filename

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

Examples

Run this code

# 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))

Run the code above in your browser using DataLab