networkLitemethods {tergmLite}R Documentation

networkLite Methods

Description

S3 methods for networkLite class, for generics defined in network package.

Usage

## S3 method for class 'networkLite'
get.vertex.attribute(x, attrname, ...)

## S3 method for class 'networkLite'
set.vertex.attribute(x, attrname, value, v = seq_len(network.size(x)), ...)

## S3 method for class 'networkLite'
list.vertex.attributes(x, ...)

## S3 method for class 'networkLite'
get.network.attribute(x, attrname, ...)

## 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'
network.edgecount(x, ...)

## S3 method for class 'networkLite'
as.edgelist(x, output = c("matrix", "tibble"), ...)

## S3 method for class 'networkLite'
mixingmatrix(object, attr, ...)

## S3 replacement method for class 'networkLite'
x[i, j] <- value

## S3 method for class 'networkLite'
print(x, ...)

## S3 method for class 'networkLite'
network.naedgecount(x, ...)

## S3 method for class 'networkLite'
add.edges(
  x,
  tail,
  head,
  names.eval = NULL,
  vals.eval = NULL,
  ...,
  check.unique = FALSE
)

as.networkLite(x, ...)

## S3 method for class 'network'
as.networkLite(x, ...)

## S3 method for class 'networkLite'
as.networkLite(x, ...)

Arguments

x

a networkLite object.

attrname

the name of an attribute in x.

...

any additional arguments.

value

Value to set edges to (must be FALSE for networkLite method)

v

indices at which to set vertex attribute values.

output

Type of edgelist to output.

object

a networkLite object

attr

specification of a vertex attribute in object as described in nodal_attributes

i, j

Nodal indices (must be missing for networkLite method)

tail

vector of tails of edges to add to the networkLite

head

vector of heads of edges to add to the networkLite

names.eval

currently unsupported by add.edges.networkLite

vals.eval

currently unsupported by add.edges.networkLite

check.unique

should a check to ensure uniqueness of edges in the final edgelist be performed?

Details

Allows use of networkLite objects in ergm_model.


[Package tergmLite version 2.6.1 Index]