santandermetgroup / climate4r.indices Goto Github PK
View Code? Open in Web Editor NEWClimate Indices in Climate4R
Climate Indices in Climate4R
The RDA files in data and inst are binary files that could be considered to move as external package or merge into climate4R.datasets
Dear Authors,
the description of the parameters of the function percentile are not coherent with the implementation. In particular, the percent argument is not expressed in terms of probability but percentile (0 to 100). See the example below. In the case of the value argument, it only works if also the percent argument is included.
In my opinion, based on the current implementation if you define both as percentiles, in the range 0-100, and modify the description accordingly, the problem would be solved.
Best regards
#' @title Percentile
#' @description Calculate the value of a given probability value or the other way around.
#' @param var Vector
#' @param percent Number between 0 and 1 to calculate the value of a given probability.
#' @param value Number of the value for which the probability is going to be calculated.
percentile(c(1:10), percent = c(1/3,2/3))
0.3333333% 0.6666667%
1.03 1.06
percentile(c(1:10), percent = 100c(1/3,2/3))
33.33333% 66.66667%
4 7
percentile(c(1:10), percent = 100c(1/3,2/3), value = c(33,66))
33.33333% 66.66667%
4 7
Warning message:
In percentile(c(1:10), percent = 100 * c(1/3, 2/3), value = c(33, :
Values were given to both percentile and value... value will be ignored (set to NULL)
percentile(c(1:10), percent = c(1/3,2/3), value = c(33,66))
0.3333333% 0.6666667%
1.03 1.06
Warning message:
In percentile(c(1:10), percent = c(1/3, 2/3), value = c(33, 66)) :
Values were given to both percentile and value... value will be ignored (set to NULL)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.