comp_ply | R Documentation |
egor
objectcomp_ply()
applies a function, that uses an alter attribute to calculate
a compositional measurement, on all networks in an egor
object and returns a
numeric vector
.
comp_ply(object, alt.attr, .f, ..., ego.attr = NULL, result.name = "result")
object |
An |
alt.attr |
A |
.f |
A |
... |
Optional arguments to |
ego.attr |
Optional |
result.name |
Optional |
When an ego attribute is used the .f
is called like this:
.f(alt.attr, ego.attr, ...)
. .f
must return a single numeric value.
A tibble
with the ego ID and a numeric
result vector.
Michał Bojanowski, michal2992@gmail.com
Till Krenz, egor@tillt.net
df <- make_egor(10, 32)
comp_ply(df, "age.years", sd, na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.