Question
Program R function that inputs a data frame and outputs a list with the following components: The number of observations in the data frame. The
Program R function that inputs a data frame and outputs a list with the following components: The number of observations in the data frame. The number of variables in the data frame. A vector of the variable names in the data frame. A list object named "column_data," where each list item appears in alphabetical order and is a list object with the name of a column which: 1. contains either the: - class of the column, - minimum, - mean, and - maximum, of that variable as well as, - the number of NA values present in the data for that column 2. OR which contains the: - class of the column, - vector of the statistical modes of that variable, as well as - the number of times the modal values are each represented in the data frame.
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