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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -