mutate_as_tbl | R Documentation |
This implementation of mutate is slightly faster than mutate
at the expense
of the graph only being updated in the end. This means that graph algorithms
will not take changes happening during the mutate call into account.
mutate_as_tbl(.data, ...)
.data |
A |
... |
columns to mutate |
The order of speed increase are rather small and in the ~1 millisecond per
mutateed column order, so for regular use this should not be a choice. The
operations not supported by mutate_as_tbl
are e.g.
gr %>% activate(nodes) %>% mutate(weights = runif(10), degree = centrality_degree(weights))
as weights
will only be made available in the graph at the end of the
mutate call.
A tbl_graph
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.