comp.cat.counts: Count category frequencies of an alter attribute for...

Description Usage Arguments Value

Description

This function counts the category frequencies (absolute or proportional) of a variable representing alter attributes in ego-centered-network data.

Usage

1
comp.cat.counts(alteri, var, egoID = "egoID", fun = fun.count)

Arguments

alteri

A 'long' dataframe with alteri in rows.

var

Alter attribute which categories are to be counted.

egoID

Character giving the name of the variable identifying egos (default = "egoID") in alteri.

fun

Function to be used for counting. fun.count for absolute counts fun.prop propotional counts.

Value

Returns a dataframe with counts of all categories as variables.


tilltnet/egonetR documentation built on May 31, 2019, 1:46 p.m.