make.theory.dataframe: Create a CosmoSIS 'theory' dataframe from all the named...

View source: R/data_input.R

make.theory.dataframeR Documentation

Create a CosmoSIS 'theory' dataframe from all the named files.

Description

Create a CosmoSIS 'theory' dataframe from the 'theory' files generated by a run of CosmoSIS. It is assumed that each file contains a single column of data, and that all the columns are of the same length. This is the standard CosmoSIS output format for a variety of theory calculations. Lines beginning with CosmoSIS comment character "#" are ignored. The names of the columns are determined from the names of the files, by dropping the file extension.

Usage

make.theory.dataframe(fnames)

Arguments

fnames

A character vector containing the names of the files to be read.

Value

A CosmoSIS 'theory' dataframe.


marcpaterno/rcosmosis documentation built on June 5, 2023, 6:43 p.m.