read_parquet_one_quantile: Read an OPP/VCT parquet file, only grabbing columns needed to...

View source: R/files.R

read_parquet_one_quantileR Documentation

Read an OPP/VCT parquet file, only grabbing columns needed to analyze one quantile.

Description

Read an OPP/VCT parquet file, only grabbing columns needed to analyze one quantile.

Usage

read_parquet_one_quantile(filepath, quantile, cols = NULL, refracs = NULL)

Arguments

filepath

Path of parquet file

quantile

Quantile to select, e.g. 2.5

cols

Columns to select. If a column has a refractive index suffix and/or a quantile suffix in the parquet file column name, don't include it here. For example, use "pop", not "pop_q2.5". Use "diam", not "diam_lwr_q2.5". The appropriate quantile boolean column will be added automatically if not present. If not a character vector, all columns will be returned.

refracs

Dataframe of refractive indices to use for each population. Column names should be population names used in classification, values should be mid, lwr, upr. If refracs is supplied but "pop" is not in the cols parameter, it will be added automatically.


armbrustlab/popcycle documentation built on April 1, 2024, 2:41 p.m.