goldfish icon indicating copy to clipboard operation
goldfish copied to clipboard

Unknown or uninitialised column: `replace`

Open jhollway opened this issue 2 years ago • 3 comments

When calling linkEvents.network.goldfish() with incremented change events, the following warning message appears:

Warning message:
Unknown or uninitialised column: `replace`. 

Could be that this emerges from checkEvents.network.goldfish() when it searches for one or the other.

Since the function otherwise works, this warning should be avoided or suppressed.

jhollway avatar Sep 01 '22 13:09 jhollway

Could you post a repex?

Social_Evolution example had incremented change events and the warning doesn't appear.

data("Social_Evolution")
callNetwork <- defineNetwork(nodes = actors, directed = TRUE)
callNetwork <- linkEvents(x = callNetwork, changeEvent = calls,
                          nodes = actors)

head(calls)
>         time   sender receiver increment
> 1 1220733470 Actor 72 Actor 50         1
> 2 1221102974 Actor 43 Actor 51         1
> 3 1221784293 Actor 43 Actor 51         1
> 4 1221785882 Actor 43 Actor 22         1
> 5 1221787264 Actor 43 Actor 55         1
> 6 1221848443 Actor 43 Actor 51         1

Might it be a tibble or data.table issue?

auzaheta avatar Sep 01 '22 16:09 auzaheta

Yes this seems to be a tibble problem:

data("Social_Evolution")
calls2 <- as_tibble(calls)
callNetwork <- defineNetwork(nodes = actors, directed = TRUE)
callNetwork <- linkEvents(x = callNetwork, changeEvent = calls2,
                          nodes = actors)

> Warning:
> Unknown or uninitialised column: `replace`. 

shaunss avatar Sep 02 '22 08:09 shaunss

Thanks, @shaunss; then I think it'd make sense to change the issue to a feature request asking to support objects of class tibble. It'd imply more than just changes in the linkEvents().

auzaheta avatar Sep 02 '22 12:09 auzaheta