check_missing_start_end: Check for missing start/end codes

View source: R/check_missing_start_end.R

check_missing_start_endR Documentation

Check for missing start/end codes

Description

Check for missing start/end codes

Usage

check_missing_start_end(x, start_codes = "sg", end_codes = "eg")

Arguments

x

A data frame of focal observations

start_codes

A character vector of start codes that indicate a behaviour has started (e.g. c("ap", "at")).

end_codes

A character vector of end codes that indicate a behaviour has finished (e.g. c("de", do)).

Value

Returns the focal data with an added "check" column. Look for "check next" which indicates where there two consecutive start or end codes.


avrincon/phdfuns documentation built on Nov. 13, 2022, 10:34 a.m.