Question: Basic R, Exploratory Data analysis Purpose: This lab is designed for you to demonstrate functions, vectors, lists, factors and exploratory data analysis. Perform the following
Basic R, Exploratory Data analysis
Purpose:
This lab is designed for you to demonstrate functions, vectors, lists, factors and exploratory data analysis.
Perform the following tasks:
Note: You have to create a new R script called Lab03. All your code has to be written in this script with appropriate comment for each step.
1a) Create functions that take a vector as input and returns:
The second value form the last. Should you use [ or [[?
The elements at odd numbered positions.
Only odd numbers and missing values.
1b) Answer the following questions about the tibble?
What happens if you try to create a tibble that has columns with different lengths?
Can you create a tibble with a list as a column?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
