get_locations {ggpointless}R 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


[Package ggpointless version 0.1.0 Index]