ps_get_group: Get Group

View source: R/group.R

ps_get_groupR Documentation

Get Group

Description

Get Group

Usage

ps_get_group(
  x,
  breaks = c(Recruit = 0, Juvenile = 20, Subadult = 50, Adult = 70)
)

Arguments

x

A numeric or integer vector

breaks

A uniquely named numeric vector of the first value of each group.

Value

An ordered factor of the group.

Examples

ps_get_group(c(-Inf, -1, 0, 19, 20, 69, 70, Inf))

poissonconsulting/poisdata documentation built on Jan. 11, 2024, 3:58 a.m.