cn: Percentage of cold nights
Description
Percentages of days with TN lower than the 10th percentile.
Usage
cn(data, data_names = NULL, time.scale = YEAR, na.rm = FALSE)
Arguments
data_names
names of each period of time
na.rm
logical. Should missing values (including NaN) be removed?
Value
percentage of cold nights
Formula
$$cn = \frac{No. days TN < 10p} {No. days} * 100$$
Examples
Run this code# NOT RUN {
data(data_all)
cn(data=data_all$tn)
# }
Run the code above in your browser using DataLab