I\'m new to R and want to understand why "ifelse" fails in my case.
I have a vector of longitudes and radii. If the lons are < 0 then the code should do lons