5518/finding-the-nth-highest-value-in-vector-or-data-frame-column

sort(x,T)[n]

Here, 'x' is the data-frame/vector and 'n' is the nth highest value

Try this: df$symbol <- as.character(df$symbol) df$symbol[df$sym ...READ MORE

The function match works on vectors : x <- sample(1:10) x # ...READ MORE

You can give this a try. subset(dataframe, is.na(dataframe$col2)) ...READ MORE

It's easier to convert alpha to characters ...READ MORE

We can easily use this command as.data.frame(lapply(d1, "length< ...READ MORE

You can do this using dplyr and ...READ MORE

You need not spread twice, if you ...READ MORE

By assuming that all the values are ...READ MORE

Try this. lapply(a,function(x){ifelse(is.na(x),mean(a,na.rm = TRUE ...READ MORE

To find number of missing values for ...READ MORE

OR

Already have an account? Sign in.