Return the type of transects represented in either a fitted distance function or Rdistance data frame.
transectType(x)
Arguments
x: Either an estimated distance function, output by dfuncEstim, or an Rdistance nested data frame, output by RdistDf.
Returns
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.
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.