I am unable to replicate the script to generate car park locations. I've tracked the bug down to line 141. The issue comes in trying to turn an object of class sgbp into a tibble. In this instance the sgbp object is a spare matrix represented as a list. as_tibble fails because it is trying to generate columns off lists of unequal lengths.
One solution may be to first transform the object to a data.frame, and then to a tibble(as as.data.frame recycles lists of unequal lengths):
I am unable to replicate the script to generate car park locations. I've tracked the bug down to line 141. The issue comes in trying to turn an object of class
sgbp
into a tibble. In this instance thesgbp
object is a spare matrix represented as a list.as_tibble
fails because it is trying to generate columns off lists of unequal lengths.One solution may be to first transform the object to a
data.frame
, and then to atibble
(asas.data.frame
recycles lists of unequal lengths):See here for more info on
sgbp
objects.