Learn R Programming

socialh (version 0.1.1)

freqReactor: Frequency of an animal was reactor

Description

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

Usage

freqReactor(x)

Value

Frequency of an animal was an reactor

Arguments

x

dataset with replacements information.

Author

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

Details

freqReactor 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))                
                                   
freqR <- freqReactor(x)                                                
                                                           
print(freqR)

Run the code above in your browser using DataLab