Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions