I have a tab-delimited file and want to add a new column based on the values in an existing column. My file looks like this:
CHR SNP A1 A2 MAF NCHROBS
1 rs G A 0.001 1432
1 rs A C 0.2 1432
I want to categorize the MAF column into two groups in the new column: values that are less than 0.01 are assigned "1" in the new column and those that are greater than 0.01 are assigned "2".
Thank you.