birp_data_from_file: Create a birp_data Object from File(s)

View source: R/birp_data.R

birp_data_from_fileR Documentation

Create a birp_data Object from File(s)

Description

Constructs a 'birp_data' object from one or more input files, each representing data for a different method.

Usage

birp_data_from_file(filenames, method_names = NA, sep = ",")

Arguments

filenames

A character vector of file paths. Each file must contain a data frame with the columns 'timepoint', 'location', 'counts', 'effort' and 'CI_group'.

method_names

Optional vector of method names corresponding to the input files. If not provided, names are inferred from the file names.

sep

The field separator used in the files (default is comma).

Value

An object of type birp_data

Examples

dir <- system.file("extdata", package = "birp")
filenames <- file.path(dir, "birp_Method_1_simulated_counts.txt")
data <- birp_data_from_file(filenames = filenames, sep = "\t")

birp documentation built on Nov. 3, 2026, 1:09 a.m.