I want to put the missing value in the cell using the following column formula:
if(sign(D)!=sign(D[i+1]),--,0)
However it seems to break in the middle of my table:
What could cause this?
Thank you.
--- Andrey
4 L A T E S T R E P L I E S (Newest First)
AKazak
Posted - 07/09/2021 : 08:28:10 AM
quote:Originally posted by cpyang
"--" is not a valid numeric expression, it is what we show in results for a missing value. Sure we can improve that particular function so any invalid text entered should resolve into a missing value so most likely that function didn't do that.
You can also use a function to indicate missing value, like NA().
0/0 is the way we used in most places as an expression that will resolve into a missing value.
CP
Got it! Thank you.
--- Andrey
cpyang
Posted - 07/09/2021 : 02:57:20 AM "--" is not a valid numeric expression, it is what we show in results for a missing value. Sure we can improve that particular function so any invalid text entered should resolve into a missing value so most likely that function didn't do that.
You can also use a function to indicate missing value, like NA().
0/0 is the way we used in most places as an expression that will resolve into a missing value.
CP
AKazak
Posted - 07/08/2021 : 3:08:33 PM
quote:Originally posted by YimingChen
try this:
if(sign(D)!=sign(D[i+1]),0/0,0)
James
It works as expected! Please clarify the difference between 0/0 and --.