Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is no inherent difficulty in determining the highest value in a row of values using R. It can be easily accomplished using built-in functions such as max() or by sorting the row and selecting the last element. However, if the row contains missing values (NA), it can lead to complications as the functions may return NA as the highest value. In such cases, it is necessary to use additional parameters such as na.rm = TRUE to remove the missing values before determining the highest value.