user1919 user1919 - 1 year ago 85
R Question

How to find the minimum value of a column in R?

I am new in R and I am trying to do something really simple. I had load a txt file with four columns and now I want to get the minimum value of the second column.
This is the code that I have:

## Choose the directory of the file


## Read the txt file



## this command gives me the minimum for all 4 columns!!

Actually, if I want to do something like this: min (data(:,2)). But I don't know how to do it in R. Any help?

Answer Source

If you need minimal value for particular column

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download