interval_mid: Extract the midpoint of an interval assigned to a data frame.

Description Usage Arguments Value Author(s)

Description

The mid-point is used as an attractive label for plot axes.

Usage

1
interval_mid(x, dp = 1)

Arguments

x

is a data-frame column with intervals typically applied using the base-r 'cut' function.

dp

is the number of decimal places for the base-r 'round' function.

Value

an atomic vector of type double.

Author(s)

Alex M Trueman


truemoid/swathr documentation built on May 3, 2019, 4:05 p.m.