0
の論理関数を適用Iは、単層のラスタの論理関数を適用:Rラスター
Warning messages:
1: In if (x < 0.4) {:the condition has length > 1 and only the first element will be used
2: In if (x < 0.4) {:the condition has length > 1 and only the first element will be used
にのみ前者の式を実行する:
f=function(x){if(x<0.4){return(1.88+209.5*x)} else {return(-239.6+810*x)}}
r=calc(x,f)
#where "x" is a single raster
実行した後、それを返します。ここで何が問題だろうか?
助けてくれてありがとう!それはまた私が以前に持っていた多くの奇妙な状況を解決します。 –