class_modify {sfdep} | R Documentation |
Appends classes to exist object classes. This is utilized to aid in adding a list class to objects created by spdep. This enables to use of the returned objects within data frames and tibbles.
class_modify(x, class = "list")
x |
an object to modify |
class |
a character vector of classes to append to an object |