Closed ggrothendieck closed 2 weeks ago
Fair point. We can recycle constant columns, If all columns are constant we can recycle only from the 2nd column however, even if row names are provided.
Since compression is an attribute of atomic vector construction and we're with data frames I would make it permanent, not dependent on compress = TRUE
.
We could also be clever by recycling vectors of length > 1 but in that case I think rep()
is better.
In this example we did not need
rep
. It could have been writtendemand = 1
.