define_temperature_ranges {CBASSED50}R Documentation

Define Temperature Ranges

Description

This function takes a vector of temperatures and generates a sequence of temperature values that span the range of input temperatures.

Usage

define_temperature_ranges(temperatures, n = 100)

Arguments

temperatures

A numeric vector containing temperature values.

n

An integer specifying the length of the output sequence. Default is 100.

Value

A numeric vector containing a sequence of temperature values ranging from the minimum temperature to the maximum temperature plus 1, evenly spaced based on the specified length.

Examples

temperatures <- c(10, 15, 20, 25, 30)
define_temperature_ranges(temperatures)

[Package CBASSED50 version 0.2.0 Index]