Convert units and round climate data when the Var column in data is one of "pr", "tas", "tasmin" or "tasmax". This function is for a specialized context.

clim_convert_round(data, metric)

Arguments

data

a data frame with the appropriate columns and data.

metric

whether the values in the Val column are to be output in metric or US standard. Input data in column Val of data is assumed metric.

Value

a data frame.

Examples

#not run