r - Matching a vector element with another vector values -


Does anyone correct me in trying to read the index of values ​​from a vector that matches my current value . Thanks in advance ...

  lat_array & lt; -c (seq (90, -89.95, = -0.05)) a & lt; -c (3.7, 90) match (a [1], late_re) # Returns NA, price 177. 3.7 matches (a [2], wave_are) # Surprising and return 1  

One way to find the closest match is to:

  JoeMan (Ab (Lot_Are - A [1])) ## [1] 1727 Lot_Ere [1727] ## [1] 3.7  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -