example_data_frame: Function changing a data frame by adding a column

Description Usage Arguments Value Author(s)

View source: R/utils.examples.R

Description

Function changing a data frame by adding a column

Usage

1
2
example_data_frame(data = data.frame(x = c(1, 2), y = c(1, 2)),
  mult = 1)

Arguments

data

(data.frame) Any data frame with numeric values

mult

(numeric) Any numeric value (length == 1)

Value

A data.frame with an additional column sum that is the rowwise sum multiplied by mult

Author(s)

Sebastian Wolf sebastian@mail-wolf.de


RTest documentation built on Dec. 4, 2019, 5:07 p.m.