Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

C++ based chill portion calculator for R

NotificationsYou must be signed in to change notification settings

trilnick/miniChill

Repository files navigation

C++ based chill portion calculator

Itai Trilnick, July 25th 2018

This package has a C++ implementation for calculating chill portions, an important metric in agronomy. It is specially used for bloom prediction in fruit trees. The chill portion calculation is sequential, based on a vector of temperatures. Temperatures need to stay within a certain range for a certain time for a chill portion to "bank". Therefore, this function cannot be vectorized. Alas, loops are incredibly slow inR, and I needed to do this many times, so I transformed my existingR code to C++ and added this functionality with Rcpp (thanks,Hadley!).

The function is based on a spreadsheet, distributed by Fishmanet al based on their 1987 paper. There is a comprehensiveR package for dealing with chill,chillR, which also has a function for chill portion calculations (functionchilling). The package seems to be well written, and I have been using some of its functions. However, thechilling function requires a data-frame input which I found less convenient for my work, and is coded as an R loop.

At this point, I do not intend to publish this mini package on CRAN. You can download it withdevtools::install.github('trilnick/miniChill'). I noticed that, even though the compiled files are already in the repository,R will try to compile it on its own, and for this you will need Rtools installed. Therefore, I also uploadedminiChill_1.0.zip, a binary package compiled on a Windows machine, which you can download and install without Rtools.

I'm happy to get feedback on this function. Send me an email or post an issue here on Github!

About

C++ based chill portion calculator for R

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp