update-method | R Documentation |
Methods to create a data frame from an object of class nodes.goldfish
(see defineNodes()
) or a matrix from an object of class
network.goldfish
(see defineNetwork()
) with the attributes
or the network ties updated according with the events linked to the object
using the linkEvents()
) 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)
x |
an object of class |
... |
Not further arguments are required. |
time |
a numeric value or a calendar date value (see |
startTime |
a numeric |
envir |
an |
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.
defineNetwork()
, defineNodes()
, linkEvents()
data("Fisheries_Treaties_6070")
states <- defineNodes(states)
states <- linkEvents(states, sovchanges, attribute = "present")
states <- linkEvents(states, regchanges, attribute = "regime")
states <- linkEvents(states, gdpchanges, attribute = "gdp")
bilatnet <- defineNetwork(bilatnet, nodes = states, directed = FALSE)
bilatnet <- linkEvents(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")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.