Starting from:

$25

STATS230- Homework 1 Solved

If you don’t have one already, create a https://github.com Create a new repository and connect it to RStudio following instructions here: https://happygitwithr. com/new-github-first.html. If you make this repository private, add me as a collaborator. My github username is vnminin.
Use create_package("~/path/to/yourpackage") to generate a package skeleton. Make sure to commit your changes and push them to github.
Add to your package a function that multiplies two square matrices and a vector anddocument it using roxygen: https://r-pkgs.org/man.html. Your function should have an argument to switch between two ways to compute the product: 1) (A×B)×x and 2) A× (B×x).
Use microbenchmarking, explained here https://adv-r.hadley.nz/perf-measure.
html, to measure the performance of the two ways to compute the product above.

More products