resample_rsf: Resample a RSF table to keep constant ratio of used/random...

View source: R/fcts RSF.R

resample_rsfR Documentation

Resample a RSF table to keep constant ratio of used/random locations across individuals

Description

Resample a RSF table to keep constant ratio of used/random locations across individuals. Resampling is done with replacement.

Usage

resample_rsf(data, id = "Id_Year", value = "Value", ratio = 3)

Arguments

data

The RSF dataset to resample

id

A vector of individual for each observation

value

A vector indicating if each observation is used (=1) or random(=0)

ratio

The ratio of random:used location (default =3, meaning 3 random locations for each used location)

Value

A RSF dataset


BastilleRousseau/IndRSA documentation built on Jan. 28, 2024, 2:14 a.m.