Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ASSIGNMENT 2 Write a code that contains the answers of the questions given below and save your file by using your name Name.R .
ASSIGNMENT
Write a code that contains the answers of the questions given below and save your file by using your
name "Name.R Send me the R file.
Add a comment line that contains your name, surname, student ID and department.
Create a vector named family.yourname ie family.seza that contains the names of your family
members ie parents, siblings you, etc.
Convert the vector to a factor named factor.family.yourname ie factor.family.seza
Use summary command for the vector and the factor.
Use levels command.
Specify the order of levels for the factor according to their ages ie sister $ brother father
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