limit_df: Limit a Data Frame

Description Usage Arguments Value Examples

View source: R/limit_df.R

Description

Function to limit the values of a column or columns of a data frame

Usage

1
limit_df(df, limits, columns)

Arguments

df

The data frame whose values are to be limited

limits

The limits to be imposed on the column/columns of the data frame

Value

The data frame after being limited

Examples

1
2
a <- data.frame(Year = 1900:1980, Potatos = round(runif(81)*100))
limit_df(a, c(0, 50), 2)

mathesong/granviller documentation built on April 20, 2020, 7:28 p.m.