| get.vertex.attribute.networkLite | R Documentation |
networkLite Attribute MethodsS3 attribute methods for the networkLite class, for
generics defined in the network package.
## S3 method for class 'networkLite'
get.vertex.attribute(x, attrname, ..., null.na = TRUE, unlist = TRUE)
## S3 method for class 'networkLite'
set.vertex.attribute(
x,
attrname,
value,
v = seq_len(network.size(x)),
...,
upcast = FALSE
)
## S3 method for class 'networkLite'
list.vertex.attributes(x, ...)
## S3 method for class 'networkLite'
get.network.attribute(x, attrname, ..., unlist = FALSE)
## S3 method for class 'networkLite'
set.network.attribute(x, attrname, value, ...)
## S3 method for class 'networkLite'
list.network.attributes(x, ...)
## S3 method for class 'networkLite'
get.edge.attribute(x, attrname, ..., null.na = FALSE, unlist = TRUE)
## S3 method for class 'networkLite'
get.edge.value(x, attrname, ..., null.na = FALSE, unlist = TRUE)
## S3 method for class 'networkLite'
set.edge.attribute(
x,
attrname,
value,
e = seq_len(network.edgecount(x, na.omit = FALSE)),
...,
upcast = FALSE
)
## S3 method for class 'networkLite'
set.edge.value(
x,
attrname,
value,
e = seq_len(network.edgecount(x, na.omit = FALSE)),
...,
upcast = FALSE
)
## S3 method for class 'networkLite'
list.edge.attributes(x, ...)
## S3 method for class 'networkLite'
delete.vertex.attribute(x, attrname, ...)
## S3 method for class 'networkLite'
delete.edge.attribute(x, attrname, ...)
## S3 method for class 'networkLite'
delete.network.attribute(x, attrname, ...)
x |
A |
attrname |
The name of an attribute in |
... |
additional arguments |
null.na |
Logical. If |
unlist |
Logical. In |
value |
The attribute value to set in vertex, edge, and network
attribute setters. For |
v |
Indices at which to set vertex attribute values. |
upcast |
Logical. Are we allowed to upcast atomic types when setting
vertex or edge attribute values on the |
e |
Indices at which to set edge attribute values. |
Allows basic attribute manipulation for networkLites. Note
that an edge or vertex attribute not present in the
networkLite is treated as a list of NULLs of length
equal to the number of edges or vertices (respectively) before
applying the null.na and unlist arguments.
Behavior and return values are analogous to those of the
corresponding network methods, with network data structured
in the networkLite format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.