R_WEEK6: Solution
Exercise:
1. Create ‘income_data’ (vector) for 5 employees with the values 4400, 7700, 88000, 5500, 6600.
2. Create a new variable ‘tax’ and ‘year’ and 0.3 and 2021 as values respectively.
3. Create another new variable ‘company’ and “PinnacleVex KA Analytics” as value in it.
4. Derive ‘net_income’ by deducting ‘tax’ from the ‘income’.
5. Create ‘employee_name’ (vector) for 5 employees with the values “Ape”, “Bat”, “Camel”, “Dog”, “Elephant”.
6. Create a data frame with Employee name and Net income
7. Create a new list with all the above information on company, year, tax, employee_name, and income.
Solution
income<- c(4400, 7700, 88000, 5500, 6600)
tax<-0.3
year<-2021
Company<-”PinnacleVex KA Analytics”
net_income<- Income*(1-tax)
employee_name<-c(“Ape”, “Bat”, “Camel”, “Dog”, “Elephant”)
employee_df<-data.frame(net_income, employee_name)
employee_lisit<-list(income,tax,year,company,employee_df)
R in Clinical World: WEEK6 Task
PinnacleVex KA Analytics: BASICS OF MICROSOFT EXCEL
PinnacleVex KA Analytics: Basic Excel Formulas For Your Daily Workflow
PinnacleVex KA Analytics: Simple introduction to SQL
PinnacleVex KA Analytics: Clinical Trials
PinnacleVex KA Analytics Clinical Data Management