read.egsnrc.plot: Read plot file produced by the EGSnrc usercode dosrznrc or...

Description Usage Arguments Value Author(s)

View source: R/read-egsnrc-plot-function.R

Description

Read plot file produced by the EGSnrc usercode dosrznrc or flurznrc. These plots are in a format designed for Grace. With this script we can get the data into an R dataframe.

Usage

1
2
3
4
5
df1  <- read.egsnrc( file.path="C:/data/projects/Theoretical-Dosimetry",
file.name="mcclan-10410-thin-slab.spectra",
file.name.save="mcclan-10410-thin-slab",
read.vec=c(1,3),
trace=!TRUE)

Arguments

file.path:

Path to folder where file to be read is located.

file.name:

Name of file to be read

file.name.save:

If "" then nothing is saved. Otherwise files are saved for each individual plot. Not implemented.

read.vec:

Vector of element that should be processes. c(1,5) means that only plot 1 and 5 should be processed. 1:99 means that all plots up to 99 should be processed.

plot.wanted:

Not implemented.

trace:

TRUE means that the function becomes verbose. FALSE means silience.

Value

A single dataframe (which can be stacked, if more data files of the same type are read).

Author(s)

Claus E. Andersen


claus-e-andersen/clanEGSnrc documentation built on Jan. 30, 2022, 9:22 p.m.