title: change all negative values in a column of a data frame to zero
body: <p>In R, how can I change all negative values in a column of a data frame to zero? Is there a simple function that can be used together with <code>apply()</code> to do this job? Alternatively, how to write a loop to do it? Thank you very much!</p>