get_locations: Subset input data based on locations

View source: R/stat-pointless.R

get_locationsR Documentation

Subset input data based on locations

Description

Given a data frame, this functions returns a subset. Returns a data frame with either "first" row, "last" row and/or the row(s) that contain minima or maxima

Usage

get_locations(
  data = NULL,
  location = c("first", "last", "minimum", "maximum", "all")
)

Arguments

data

A data.frame

location

A character string specifying which rows to return: "first", "last" (default), "minimum", "maximum" or "all"

Value

A data.frame


ggpointless documentation built on May 29, 2024, 7:16 a.m.