hst.read {scbursts}R Documentation

Read a MIL ".hst" file to a table.

Description

Read a MIL ".hst" file to a table. By default these files are in log10(Milliseconds)-sqrt(Freq), but unless "raw" is set to TRUE, this function returns a table containing Seconds-Freq

Usage

hst.read(filename, extract = "open", raw = FALSE)

Arguments

filename

The filename

extract

Extract either "open" or "closed" histogram

raw

Data is given as log10(milliseconds)-Sqrt(Freq). Setting raw=FALSE yields output as Seconds-Frequency

Value

A tables with columns "bin", "freq" and "fit".

Examples


# import some of the data included with the package
infile <- system.file("extdata", "example1_hst.hst", package = "scbursts")
open_hst   <- hst.read(infile, extract="open")
closed_hst <- hst.read(infile, extract="closed")

head(open_hst)
head(closed_hst)


[Package scbursts version 1.6 Index]