vec_char_as_factor: As factor

View source: R/RcppExports.R

vec_char_as_factorR Documentation

As factor

Description

Transform a vector into a factor vetor.

Usage

vec_char_as_factor(vec)

Arguments

vec

a vector.

Details

Permuting a vector can serve to realize node label permutation.

Value

A vector of same length and order of the input vector.

Author(s)

Sebastian Sosa,Ivan Puga-Gonzales.

References

Farine, D. R. (2017). A guide to null models for animal social network analysis. Methods in Ecology and Evolution.

Sosa, S. (in press). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.


SebastianSosa/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.