Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tasks Add the README.md file with relevant information for your own R-package, including package goals, installation instructions and examples. Construct an R package that include:

Tasks Add the README.md file with relevant information for your own R-package, including package goals, installation instructions and examples. Construct an R package that include: the data (or its subsample if too big) from past assessment, your Shiny app (from Assessment 1 or otherwise), a function to launch the Shiny app, and other functions with at least one that return numerical values with unit tests. Add a vignette explaining or informing some aspect of your package. Build a package website that contains the package documentation. Tips Get started early and seek help early by going to consultation hours. Commit regularly to your GitHub repo. Check the marking criteria below to get an idea of what is expected. When assessment marks are released, you should consider making your repo public and add the link to it in your CV. Ideas for functions: A function with a single argument that returns a data frame. If the input is a numerical vector of at least 5 values then it returns a data frame with two columns where the second column corresponds to the five number summary values and the first column is the names of the values (i.e. minimum, Q1, median, Q3, maximum). If the input is a character or factor vector then it returns a data frame with the first column as values and the second column as frequencies. What should it return if it is a numerical vector of less than 5 values? A function with two arguments where if the two inputs are numerical vectors of the same size, it return the correlation coefficient, if one is numerical and the other is character or factor vector, it returns the mean for each level, if both inputs are character/factor vectors, then it returns are cross tabulation as a data frame, What should it return if the vectors are not the same size?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions