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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!