Methods to create a data frame from an object of class nodes.goldfish
(see make_nodes()) or a matrix from an object of class
network.goldfish (see make_network()) with the attributes
or the network ties updated according with the events linked to the object
using the link_events()) function.
# S3 method for class 'nodes.goldfish'
as.data.frame(x, ..., time = -Inf, startTime = -Inf, envir = new.env())
# S3 method for class 'network.goldfish'
as.matrix(x, ..., time = -Inf, startTime = -Inf)an object of class nodes.goldfish for as.data.frame()
method or network.goldfish for as.matrix() method.
Not further arguments are required.
a numeric value or a calendar date value (see as.Date())
to update the state of the object x until this time value
(event time < time).
a numeric as.Date format value; prior events are
disregarded.
an environment where the nodes and linked events
objects are available.
The respective object updated accordingly to the events link to it.
For nodes.goldfish object the attributes are updated according to the
events linked to them.
For network.goldfish object the network ties are updated according to the
events linked to it.
# \donttest{
data("Fisheries_Treaties_6070")
states <- make_nodes(states)
states <- link_events(states, sovchanges, attribute = "present")
states <- link_events(states, regchanges, attribute = "regime")
states <- link_events(states, gdpchanges, attribute = "gdp")
bilatnet <- make_network(bilatnet, nodes = states, directed = FALSE)
bilatnet <- link_events(bilatnet, bilatchanges, nodes = states)
updateStates <- as.data.frame(
states,
time = as.numeric(as.POSIXct("1965-12-31"))
)
updateNet <- as.matrix(bilatnet, time = as.numeric(as.POSIXct("1965-12-31")))
# }