hst.write {scbursts}R Documentation

Write bursts to a log10(ms)-sqrt(Frequency) .hst file from open and closed tables.

Description

Write bursts to a log10(ms)-sqrt(Frequency) .hst file from open and closed tables.

Usage

hst.write(open_hist, closed_hist, file = "", header = NULL,
  fromraw = FALSE)

Arguments

open_hist

The table (bin,freq,fit) for open times

closed_hist

The table (bin,freq,fit) for closed times

file

The filename

header

The header info

fromraw

Unless FALSE, assume we need to write a log10(milliseconds)-sqrt(Frequency) plot

Examples


infile <- system.file("extdata", "example1_hst.hst", package = "scbursts")

open = hst.read(infile, extract="open")
closed = hst.read(infile, extract="closed")
header = hst.extract_header(infile)

### Do stuff
hst.write(open, closed, file=file.path(tempdir(), "new_histogram.hst"), header=header)

[Package scbursts version 1.6 Index]