Working with carData package,dataset - salaries. Question requires to check the yrs.since.phd variable. What is the difference in salary of the professor with the highest (yrs.since.phd) and lowest (yrs.since.phd)? x<-salary_data[c("yrs.since.phd","salary")]x<-salary_data[c("yrs.since.phd","salary")] gives me the 2 variables but how do I sportsort them from lowest to highest in order to be able to compare, or shall uI use different function?
Rstudio carData -Salaries Sorting a dataframe
Rstudio carData -Salaries
Working with carData package,dataset - salaries. Question requires to check the yrs.since.phd variable. What is the difference in salary of the professor with the highest (yrs.since.phd) and lowest (yrs.since.phd)? x<-salary_data[c("yrs.since.phd","salary")] gives me the 2 variables but how do I sport them from lowest to highest in order to be able to compare, or shall u use different function?
Sorting a dataframe
Working with carData package,dataset - salaries. Question requires to check the yrs.since.phd variable. What is the difference in salary of the professor with the highest (yrs.since.phd) and lowest (yrs.since.phd)? x<-salary_data[c("yrs.since.phd","salary")] gives me the 2 variables but how do I sort them from lowest to highest in order to be able to compare, or shall I use different function?
Rstudio carData -Salaries
Working with carData package,dataset - salaries. Question requires to check the yrs.since.phd variable. What is the difference in salary of the professor with the highest (yrs.since.phd) and lowest (yrs.since.phd)? x<-salary_data[c("yrs.since.phd","salary")] gives me the 2 variables but how do I sport them from lowest to highest in order to be able to compare, or shall u use different function?