repeat_df {YAPSA} | R Documentation |
Create a data frame with default values
repeat_df(in_value, in_rows, in_cols)
in_value |
Default entry to be repeated in the data frame |
in_rows, in_cols |
Dimensions of the data frame to be created |
The created data frame
## 1. Initialize with numeric value: repeat_df(1,2,3) ## 2. Initialize with NA value: repeat_df(NA,3,2) ## 3. Initialize with character: repeat_df("a",4,3)