Displaying 2 results from an estimated 2 matches for "0degrees".
Did you mean:
degrees
2010 Jul 24
4
Trouble retrieving the second largest value from each row of a data.frame
I have a data frame with a couple million lines and want to retrieve the largest and second largest values in each row, along with the label of the column these values are in. For example
row 1
strongest=-11072
secondstrongest=-11707
strongestantenna=value120
secondstrongantenna=value60
Below is the code I am using and a truncated data.frame. Retrieving the largest value was easy, but I have
2010 Jul 26
1
After writing data in MMF using SEXP structure, can i reference in R?
...to track radio-tagged birds, they are from
automated radio telemetry receivers. I will applying the following formula
diff <- ((strongest- secondstrongest)/100)
bearingdiff <-30-(-0.0624*(diff**2))-(2.8346*diff)
Then the bearing diff is added to strongestantenna (value0 = 0degrees) if
the secondstrongestatenna is greater (eg value0 and value60), or if the
secondstrongestantenna is smaller than the strongestantenna, then the
bearingdiff is substracted from the strongestantenna. The only exception
is that if value0 (0degrees) is strongest and value300(360de...