You can use apply
to go through each row
apply(df, 1, FUN = min)
Where 1
means to apply FUN
to each row of df, 2
would mean to apply FUN
to columns.
To remove missing values, use:
apply(df, 1, FUN = min, na.rm = TRUE)
More Related Contents:
- How to extract the row with min or max values?
- How can I take pairwise parallel maximum or minimum between two vectors?
- Finding running maximum by group
- How to find the highest value of a column in a data frame in R?
- How to get the maximum value by group
- Is there a vectorized parallel max() and min()?
- Find value corresponding to maximum in other column [duplicate]
- Finding the maximum value for each row among 3 columns in R
- r: convert a string to date [duplicate]
- standard evaluation in dplyr: summarise a variable given as a character string
- R Apply() function on specific dataframe columns
- Using spread with duplicate identifiers for rows
- asymmetric color distribution in scale_gradient2?
- Max Length for a Vector in R
- ggplot separate legend and plot
- Create dynamic number of input elements with R/Shiny
- Create a Data Frame of Unequal Lengths
- Generate random numbers with fixed mean and sd
- ggplot centered names on a map
- What does this mean: unable to find an inherited method for function ‘A’ for signature ‘”B”’
- adding regression line per group with ggplot2
- integer data frame to date in R [duplicate]
- How to match by nearest date from two data frames?
- What’s the difference between identical(x, y) and isTRUE(all.equal(x, y))?
- lm function in R does not give coefficients for all factor levels in categorical data
- Sending email in R via outlook [closed]
- How to pass command-line arguments when calling source() on an R file within another R file
- Remove space between bars ggplot2
- Specify height and width of ggplot graph in Rmarkdown knitr output
- How to get all possible subsets of a character vector in R?