repeat_df: Create a data frame with default values

Description Usage Arguments Value Examples

Description

Create a data frame with default values

Usage

1
repeat_df(in_value, in_rows, in_cols)

Arguments

in_value

Default entry to be repeated in the data frame

in_rows, in_cols

Dimensions of the data frame to be created

Value

The created data frame

Examples

1
2
3
4
5
6
## 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)

eilslabs/YAPSA documentation built on May 16, 2019, 1:23 a.m.