Learn R Programming

socialh (version 0.1.1)

freqActor: Frequency of an animal was actor

Description

Function to identify frequency that one animal was actor regarding the herd at bins.

Usage

freqActor(x)

Value

Frequency of an animal was an actor

Arguments

x

dataset with replacements information.

Author

Julia P. S. Valente, Matheus Deniz, Karolini T. de Sousa.

Details

freqActor is only applied for dataset with columns ordained and named as follows: actor and reactor.

Examples

Run this code
x <- data.frame(actor = c(6,3,5,4,2,1,3,5,8,6,9,3,2,1,1),
               reactor = c(2,6,3,5,4,2,1,3,5,1,6,4,3,2,5))                
                                   
freqA <- freqActor(x)                                                
                                                           
print(freqA)

Run the code above in your browser using DataLab