Question: Imagine we have the data frame below and we have named it df in R. worker wage state 1 11 2 9 3 20

Imagine we have the data frame below and we have named it

Imagine we have the data frame below and we have named it "df" in R. worker wage state 1 11 2 9 3 20 4 40 5 5 CA CA AZ AZ OR In the R console I type: mean(wage) But receive the error "object 'wage' not found". What is the issue? O The correct function to use here is the sum() function, not mean() O I need to convert the wage variable to numeric O Need to specify mean(wage,df) O Need to specify df$wage

Step by Step Solution

3.26 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The issue you are encountering when trying to calculate the ... View full answer

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 Economics Questions!