diff_months: 16

Tabulate Data Effectively Assessment

Download Solution Now
Added on: 2023-03-07 09:15:25
Order Code: 487118
Question Task Id: 0
  • Country :


Here is the set of questions focuses on writing functions. You can also download a copy of the questions A1-4-WritingFunctions.Rmd


1. Using the diamond dataset, write a function that states the number of rows and number of columns in a data frame in a sentence.

2. Write a function that takes a mean of every column of a dataframe made of numeric values. You may have to subset the data to the numeric columns.

3. Write a function that returns an n-way frequency table for each factor in the table (say with a limit of 4 factors).Make it ignore any numeric data - you may have to subset the data.

4. Write a function to do the same job that ‘summary function’ does for a dataframe - give descriptive statistics such as min, quantile for 25%, median, mean, quantile for 25%, max and length and do frequency tables for each column of the dataset. The formatting should to be neat but doesn't have to be exactly the same as the summary function.

5. Write a function that is more useful than summary function such as min, quantile for 25%, median, mean, quantile for 25%, max , standard deviation, skew, and kurtosis —1) do some simple ASCII plotting such as histogram, lines and boxplot of each numeric column? 2) compare each of the columns in some way.


  • Uploaded By : Katthy Wills
  • Posted on : March 07th, 2023
  • Downloads : 0
  • Views : 222

Download Solution Now

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan


80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing


30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%


20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more