manip_info {manynet} | R Documentation |
Modifying network data
Description
These functions allow users to add and edit information about the network
itself.
This includes the name, year, and mode of collection of the network,
as well as definitions of the nodes and ties in the network.
Where available, this information is printed for tidygraph-class objects,
and can be used for printing a grand table in the {grand}
package.
Usage
add_info(.data, ...)
mutate_net(.data, ...)
Arguments
.data |
An object of a manynet-consistent class:
|
... |
Named attributes. The following are currently recognised: "name", "year", and "doi" of the network, "collection" or "mode" of the network ("survey", "interview","sensor","observation","archival", or "simulation"), "nodes" (a vector of the names of the nodes) or "vertex1"/"vertex2", "ties" or "edge.pos"/"edge.neg" for defining the ties. |
Examples
add_info(ison_algebra, name = "Algebra")