Flatten a data.frame or matrix by column or row with its name. The name will be transformed into the number of row/column plus the name of column/row separated by `.`.
flatten(x, by = c("col", "row"))a flattened vector with names
a data.frame or matrix.
either by column or by row.