Change the bins of a data frame object from a dat_list, filling in the columns with ones.

change_dat_bin(object, bins)

Arguments

object

A data frame from a list object read in by r4ss::SS_readdat(). The leading columns, typically Yr, Seas, ... can be anything, but there must be columns with names that start with a lower-case letter, followed by integers.

bins

A vector of characters or whatever you want the names of the new bins to be. Typically, this will be output from setup_bins().

Value

A modified data frame where columns holding old composition data are removed in their entirety and new columns of ones are filled for each value in bins.