knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of hw04pDmando is to fulfill several deliverables asked for in hw04 in Stat-413.
You can install the released version of hw04pDmando by asking me (Dmando) for a copy.
install.packages("hw04pDmando")
library(hw04pDmando)
This package contains two functions. The first is myseq_n which creates a recursive function based on three inputs and then based on the length solves the recursive function. The second is myseqplot which takes four columns in a data set; three which represent inputs into the recursive function and one which is the length and then the function creates a line plot of the inputted data set with each data point being the output of the row's recursive function.
This an example of myseq_n which creates and solves a recursive function.
myseq_n(x = c(2, 8, 11), n = 4)
This is an example of myseqplot which takes a data set predisposed to the prior recursive function and creates a line plot from it.
my_data <- tibble::tribble( ~x, ~y, ~z, ~n, 2,4,3,3, 2,4,3,4, 2,4,3,5, 2,4,3,6, 2,4,3,7, 2,4,3,8, 2,4,3,9, 2,4,3,10, 2,4,3,12) myseqplot(my_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.