Raise error if not is repgrid object
stop_if_not_is_repgrid(x, name = "x")
x
Object to test. Raises an error if no repgrid object.
repgrid
name
Name of tested variable in error message.