Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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). 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started