Hello community, I need help on how I can perform PCA on stacked raster
(multiple bands/ layers) in R. Does any body have an idea or script? Thanks
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/m
Frederic,
You can simplify your code somewhat using vectorization and the cumsum()
function instead of a for loop. Since you focus in on a single year,
perhaps you could do the calculations for all the years, and store the
result in an array, instead. Then you could grab any day*month matrix fro
Hi All,
I wrote this script to calculate the water balance using the following
formula:
Water_Balance = Water_Balance yesterday + Rainfall - Evaporation.
The code works well and I want to put into a function.
conditions: Water_Balance<0 is equal to 0.
Water_Balance>100 is equal
3 matches
Mail list logo