see test-vec-cast and test-concatenation for examples.
vec_ptype2 now implements a sensible (to me) class hierarchy, and vec_cast makes the conversions manageable.
basically: the common type for everything is (irregular) tfd, and if you try to concatenate objects with compatible (i.e. completely overlapping) domains this will always work -- to concatenate them:
tfb with different basis get casted to tfd on their arg-grid
tfd with different arg get casted to tfd_irreg
@jeff-goldsmith would be great if you could take a look if you have time and let me know what you think.
my hope is to get tf ready for CRAN by the end of next week.
see test-vec-cast and test-concatenation for examples. vec_ptype2 now implements a sensible (to me) class hierarchy, and vec_cast makes the conversions manageable.
basically: the common type for everything is (irregular) tfd, and if you try to concatenate objects with compatible (i.e. completely overlapping) domains this will always work -- to concatenate them:
basis
get casted to tfd on theirarg
-gridarg
get casted to tfd_irreg@jeff-goldsmith would be great if you could take a look if you have time and let me know what you think. my hope is to get
tf
ready for CRAN by the end of next week.