Displaying 1 result from an estimated 1 matches for "d2r".
Did you mean:
d2
2009 Oct 24
2
ifelse
When I run this code from an R-script:
ddd = 360 + round ( atan2(-u,-v) / d2r )
print(class(ddd))
print(ddd)
ifelse ( ddd>360, ddd-360, ddd )
print(ddd)
I get this output:
[1] "numeric"
[1] 461 213 238 249 251
[1] 461 213 238 249 251
Why does ifelse not change the 461 to 101?
I recreated the vector ddd and ran the sam...