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

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.