Learn R Programming

RTest (version 1.2.6)

example_data_frame: Function changing a data frame by adding a column

Description

Function changing a data frame by adding a column

Usage

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