CaptiveIndex: CaptiveIndex Function

Description Usage Arguments Examples

View source: R/CaptiveIndex.function.R

Description

This function calculates the sociality measure using the data created from the DataCreate Function.

Usage

1
CaptiveIndex(x, Weight.1, Weight.2)

Arguments

x

is the output dataframe from the /codeDataCreate function

Weight.1

Input Nearest Neighbour Weight from /codeWeights function

Weight.2

Input Interaction Distance Weight from /codeWeights function

Examples

1
2
3
4
5
6
data(giraffe)
W<-Weights (giraffe)
NN.ID <- DataCreate (giraffe)
head (NN.ID)
Results<-CaptiveIndex (NN.ID, W$NN, W$IDist)
head (Results)

JDNorrey/CaptiveIndex documentation built on Oct. 30, 2019, 7:29 p.m.