repeat_df: Create a data frame with default values

Description Usage Arguments Value Examples

View source: R/basic_functions.R

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)

huebschm/YAPSA documentation built on May 17, 2019, 9:11 p.m.