How to reclassify data in table?

Hi all,

I m very new in R user. I am doing a rating factor for soil suitability classification for various crops, like rice, corn, cassava,,etc. I have data as the factor and set it in the table preparing for r. For example,

I like to reclass all factor in column and for each crop. For example, CEC for rice is >15 = S1, 5-15 = S2 and <5 = S3.
Please if anyone knowing about this.

I recommend : A general vectorised if — case_when • dplyr (

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.