solarr is an R package designed for implementing stochastic models and option pricing using solar radiation data. This package provides a range of tools and functions to analyze solar radiation, forecast its behavior, and evaluate options based on solar data.
You can install the solarr package from GitHub using the following command:
# Install devtools if you haven't already
install.packages("devtools")
# Install solarr from GitHub
devtools::install_github("beniamino98/solarr")The solarr package depends on the following R packages: - R (>= 3.5.0) - ggplot2 - np - dplyr (>= 1.1.3) - mclust
Additionally, it imports the following packages: - assertive (>= 0.3-6) - stringr (>= 1.5.0) - rugarch (>= 1.4.1) - purrr (>= 1.0.2) - tidyr (>= 1.2.0) - lubridate (>= 1.8.0) - nortest - broom - formula.tools
Here’s a simple example of how to use the solarr package:
# Example of control for seasonal clear sky model
# Fit the model
model <- seasonalClearsky$new()
model$fit(x, date, lat, clearsky)
# Predict
predictions <- model$predict(n)