Learn R Programming

What is twc?

An open-access tool/framework that constitutes the core functions to analyze terrestrial water cycle data across various spatio-temporal scales.

Features

  • Homogenized database currently encompassing 27 different precipitation data products.
  • Exploratory data analysis.
  • Spatiotemporal analysis.
  • Time series analysis.
  • Simple and aesthetic data visualization.

Installation

# Get the latest version of pRecipe

if (!require('devtools')) {install.packages('devtools'); library(devtools)}

install_github('imarkonis/twc')

# Alternatively, the latest CRAN release

install.packages("twc")

#

library(twc)
?`twc-package`

References

Vargas Godoy, M.R. and Markonis, Y., 2023. pRecipe: A global precipitation climatology toolbox and database. Environmental Modelling & Software, 165, p.105711.

Copy Link

Version

Install

install.packages('twc')

Monthly Downloads

672

Version

0.0.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Mijael R. Vargas G.

Last Published

April 2nd, 2025

Functions in twc (0.0.2)

infoNC

Show data content
pRecipe_masks

Masks data
selyear

Select Years
muldpm

Multiply by days per month
subset_data

Subset data in space and time
nse

Nash–Sutcliffe Efficiency
saveNC

Save .nc file
rank_repres

Ensemble representativeness ranking
%>%

Pipe operator
crop_data

Crop precipitation data sets
remap

Spatial aggregation
tabular

Transform raster into data.table
trend

Trends
sellonlatbox

Select Longitude Latitude Box
twc-package

twc: Terrestrial Water Cycle
yearstat

Yearly <stat>
fldmean

Field mean
aux_date

Ensure getZ output are dates