make.matterpower.dataframe: Create a CosmoSIS matter power dataframe from all the named...

View source: R/data_input.R

make.matterpower.dataframeR Documentation

Create a CosmoSIS matter power dataframe from all the named files.

Description

It is assumed the file format is the CosmoSIS format for storing power spectra. Note this format is different from the format used for the storage of scalar parameters.

Usage

make.matterpower.dataframe(dirname, type)

Arguments

dirname

The name of the directory containing the CosmoSIS power spectrum output.

type

Any value; this value is replicated to fill the type column of the dataframe.

Value

A CosmoSIS matter power dataframe. If the directory does not exist, the returned dataframe will be empty.

Examples

d <- make.matterpower.dataframe(here::here("inst/extdata/demo_output_1/matter_power_nl"), "nl")
d

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