vpr_category: Get category ids from string

View source: R/EC_functions.R

vpr_categoryR Documentation

Get category ids from string

Description

Get category ids from string

Usage

vpr_category(x, categories)

Arguments

x

A chr string which represents file paths from which category should be extracted

categories

A list object with all the potential classification categories

Value

A chr string of only the category id

Note

This function searches for exact matches to categories within '/' file separators. You may encounter errors if

Author(s)

K Sorochan

See Also

vpr_hour, vpr_day, vpr_roi

Examples

category_string <- 'C:/data/cruise/autoid/Calanus/d000/h00'
categories <- list("Calanus", "marine_snow", "blurry", "other_copepod")
vpr_category(category_string, categories)


Echisholm21/vprr documentation built on Feb. 9, 2025, 4:21 p.m.