You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Missing data in the data objects produces errors when linking to a nodes data frame or a network matrix. A better message would help identify the problem.
data("Fisheries_Treaties_6070")
states<- defineNodes(states)
# introduce missing data on time-stampssovchanges$time[5] <-NAstates<- linkEvents(states, sovchanges, attribute="present")
>Errorin linkEvents(states, sovchanges, attribute="present") :>Theeventscouldn't be added: missing value where TRUE/FALSE needed# introduce missing data on noderegchanges$node[5] <- NA_character_states <- linkEvents(states, regchanges, attribute = "regime")> Error in linkEvents(states, regchanges, attribute = "regime") : > The events couldn'tbeadded:Nodeslabelsfortheattribute ‘regime’ areincorrect.# introduce missing data on time-stampsbilatchanges$time[5] <-NAbilatnet<- defineNetwork(bilatnet, nodes=states, directed=FALSE)
bilatnet<- linkEvents(bilatnet, bilatchanges, nodes=states)
>Errorin linkEvents(bilatnet, bilatchanges, nodes=states) :>Theeventscouldn't be added: missing value where TRUE/FALSE needed# introduce missing data on sender or receivercontigchanges$sender[5] <- NA_character_contignet <- defineNetwork(contignet, nodes = states, directed = FALSE)contignet <- linkEvents(contignet, contigchanges, nodes = states)> Error in linkEvents(contignet, contigchanges, nodes = states) : > The events couldn'tbeadded:missingvaluewhereTRUE/FALSEneeded
The text was updated successfully, but these errors were encountered:
Thanks to Fanny Mignon for reporting this issue.
Is your feature request related to a problem? Please describe.
Missing data in the data objects produces errors when linking to a nodes data frame or a network matrix. A better message would help identify the problem.
The text was updated successfully, but these errors were encountered: