Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an R script which does the following: 1. Create a data frame from the following data. Use the column headings provided as column names.
Write an R script which does the following: 1. Create a data frame from the following data. Use the column headings provided as column names. Be sure to use the appropriate option to prevent the LastName data from being interpreted as factors. 2. Run a summary command to summarize the data frame. 3. Use cbind to add a new column to your data frame named "Exempt" (excluded from overtime). Any employee making over 50QQ in salary is exempt, otherwise they are non-exempt (A simple " Y " or " N " will suffice to indicate their exempt status). 4. Extract the first two rows of your data frame. 5. Use the str function to display the underlying numeric values of the Exempt column
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