get_protocol_type: Get protocol type from protocol code

View source: R/get_protocol_type.R

get_protocol_typeR Documentation

Get protocol type from protocol code

Description

The protocol type corresponds to the first 3 letters of the protocol code

Usage

get_protocol_type(protocol_code, labels = TRUE, auto_identifier = FALSE)

Arguments

protocol_code

Character vector giving the protocol code(s)

labels

Logical. If TRUE return full labels, else return just the three letter abbreviation.

auto_identifier

Logical. If TRUE returns labels following ⁠Pandoc's⁠ auto-identifier rules.

Value

A factor with 5 levels corresponding to sfp, sip, sap, sop and spp. The labels depend on auto_identifier setting.

See Also

Other utility: add_label(), get_path_to_protocol(), get_protocolnumbers(), get_short_titles(), get_version_number(), increment_version_number()


inbo/protocolshelper documentation built on Sept. 6, 2024, 9:15 p.m.