A generic function for "expanding" an object. Only used for hesim_data objects with expand.hesim_data().

expand(object, by, times)