Question: need help with r studio Replace NA value in work column in row 4 (Michaels work) with 14. Calculate the mean age ignore the NA

need help with r studio

  1. Replace NA value in work column in row 4 (Michaels work) with 14.
  2. Calculate the mean age ignore the NA values in the calculation.
  3. Replace the NA value in age in row 4 (Michaels age) with the mean age value (calculated in 27)
  4. Omit all other observations with missing values (NA). Note that this will remove all rows containing the missing data. Assign the revised data (without NA data) to a new data frame empComplete
  5. Display empComplete
  • Sorting and ordering data Important: Use the empComplete data frame (created in question 29) to answer questions 31, 32, 33, 34, 35 and 36.
  1. Display empComplete data ordered by name. Do not make a change in the empComplete data frame. The display should not be just the names column. Your R code should display all the columns in the data frame ordered by name.
  2. Calculate the mean work experience for each gender separately using tapply() function on gender column.
  • Dividing data into smaller sizes (subsets of data: include only some columns/rows)
  1. Display all the columns for female employees only (in empComplete data frame)
  • Grouping data
  1. Create a data frame (female) that contains the female employees only
  2. Create another data frame (male) that contains the male employees only
  3. Calculate the mean work experience of female and male employees using female and male objects that you created in questions 34 and 35 above. Display these means. Are the answers to questions 32 and 36 consistent (same)?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!