create.bins: Create bins from a set of binned distances and a set of...

Description Usage Arguments Value Author(s) Examples

View source: R/create.bins.R

Description

This is an internal routine and shouldn't be necessary in normal analyses.

Usage

1
create.bins(data, cutpoints)

Arguments

data

data.frame with at least the column distance.

cutpoints

vector of cutpoints for the bins

Value

data data with two extra columns distbegin and distend.

Author(s)

David L. Miller

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(Distance)
data(minke)

# put the minke data into bins 0-1, 1-2, 2-3 km
minke_cuts <- create.bins(minke[!is.na(minke$distance),], c(0,1,2,3))

## End(Not run)

Example output

Loading required package: mrds
This is mrds 2.2.0
Built: R 3.4.4; ; "Sat, 30 Jun 2018 20:47:35 +0000"; unix

Attaching package: 'Distance'

The following object is masked from 'package:mrds':

    create.bins

Distance documentation built on Jan. 13, 2021, 10:43 p.m.