Function to assign multiple slots to a S4 object

create(x, what, attrs = NULL, overwrite_attributes = FALSE, ...)

Arguments

x

an underlying R object of a new object

attrs

attributes of a new object

overwrite_attributes

overwrite attributes of the input object, if TRUE

exceptions

slots to ignore

value

a list of attributes extracted by attributes()