Use which
and take the first element of the result:
which(b > 0.65)[1]
#[1] 3
More Related Contents:
- Is there a dplyr equivalent to data.table::rleid?
- Replace NA with previous or next value, by group, using dplyr
- ggplot2 – bar plot with both stack and dodge
- Assign multiple columns using := in data.table, by group
- Using the rJava package on Win7 64 bit with R
- `levels
- Getting path of an R script
- Rotating x axis labels in R for barplot
- Subset with unique cases, based on multiple columns
- What are the R sorting rules of character vectors?
- Avoid ggplot sorting the x-axis while plotting geom_bar()
- How do you draw a line across a multiple-figure environment in R?
- Set margin size when converting from Markdown to PDF with pandoc
- Change row order in a matrix/dataframe
- How subset a data frame by a factor and repeat a plot for each subset?
- change background and text of strips associated to multiple panels in R / lattice
- Convert summary to data.frame
- How to produce different geom_vline in different facets in R?
- Milliseconds in POSIXct Class
- How to access and edit Rprofile? [closed]
- heatmap with values (ggplot2)
- Using different scales as fill based on factor
- How to read csv file in R where some values contain the percent symbol (%)
- When should I use setDT() instead of data.table() to create a data.table?
- Remove duplicates based on 2nd column condition
- Non-numeric Argument to Binary Operator Error in R
- print to pdf file using grid.table in r – too many rows to fit on one page
- Obtaining connected components of neighboring values
- error in strsplit when trying to separate by a comma
- Administrative regions map of a country with ggmap and ggplot2