R - Sorting and Sub-setting Maximum Values within Columns -
i trying iteratively sort data within columns extract n maximum values. my data set first , second columns containing occupation titles , codes, , of rest of columns containing comparative values (in case location quotients had calculated each city) occupations various cities: *occ_code city1 ... city300* occ1 5 ... 7 occ2 20 ... 22 . . . . . . . . occ800 20 ... 25 for each city want sort maximum values, select subset of maximum values matched respective occupations titles , titles. thought relatively trivial but... edit clarification: want end sorted subset of data analysis. occ_code city1 occ200 10 occ90 8 occ20 2 occ95 1.5 at same time want able repeat sort column-wise (so i've tried lots of order commands through calling columns directly: data[,2]; able run same analysis functions on entire dataset. i've been...