The R language sorts the dataframe based on two fields and two data columns (under the same first field, sorts according to the second field), sorts the dataframe by a single data column, and attach binds the dataframe data, you can use it directly field
R language sorts the dataframe based on two fields and two data columns (under the same first field, sorts according to the second field), sorts the dataframe based on a single field and a single data column, and binds the dataframe data with the attach function , you can access the data directly using the field name