R语言学习记录:if语句
在去除含有NA的时间序列像元的时候出现了这么几种情况:
case1:徐小洋法
case2:https://stackoverflow.com/questions/53054316/remove-linear-trend-from-raster-stack-r?rq=1
case3:https://stackoverflow.com/questions/63831287/extracting-p-values-from-lineair-regression-on-raster-image-through-calc-functio?rq=1
if语句
1一个分支
若条件为T,则执行expression;若F,则nothing will happen
2两个分支if-else
3多个分支