Question: R studio 7. 7a. Write a command to create a data frame (name the data frame as employee) with contain 3 variables and 6 observations:

R studio

R studio 7. 7a. Write a command to create a data frame

7. 7a. Write a command to create a data frame (name the data frame as employee) with contain 3 variables and 6 observations: employees name, gender and age and the details of each variable, then print the data frame (please make up the data). Employees = data. framel Name=c("Anastasia S" "Dima R" "Katherine S", "JAMES A", "LAURA ARTIN "), Gender =c(cm,"M,"F,"F,"M "), Age =c(23,22,25,26,32), Print (Employees) 7b. Can you calculate the mean of all the employees' age? 7c. Select First N rows with head function. 7d. Display just the 1st column of this framework in the console. 7e. Adding a new column to the employee frame called salary (please make up the numbers), then print this data frame. 7f. Can you calculate the median of the salary variable? 7g. Display the item of data in row 3 , column 3 of the new framework

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