Learn R Programming

Rdistance (version 4.0.5)

transectType: transectType - Type of transects

Description

Return the type of transects represented in either a fitted distance function or Rdistance data frame.

Usage

transectType(x)

Value

A scalar. Either 'line' if x contains continuous line-transect detections, or 'point' if x contains point-transects detections. If transect type has not been assigned, return is NULL.

Arguments

x

Either an estimated distance function, output by dfuncEstim, or an Rdistance nested data frame, output by RdistDf.

Details

This function is a simple helper function. If x is an estimated distance object, it polls the transType attribute of x's Rdistance nested data frame. If x is an Rdistance nested data frame, it polls the transType attribute.