Add a frame matrix to trailDF.
addFrameMatrix.RdAdd a frame matrix to trailDF.
Note
Make sure that the names of the trails are not duplicate with undupeLayers() first. Otherwise you will have trouble when annotating the frameMatrix.
Examples
sbc007 = undupeLayers(sbc007, "trail", "name")
sbc007 = addFrameMatrix(sbc007)
#> Warning: The `x` argument of `as_tibble.matrix()` must have unique column names if `.name_repair` is omitted as of tibble 2.0.0.
#> Using compatibility `.name_repair`.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.