knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Author: Jen-Yu Huang
The goal of hw04pjenyuh is to create a function which return output of a recursive sequence and plot the output to a line plot
You can install the released version of hw04pjenyuh by asking me for a copy
install.packages("hw04pjenyuh")
To run the package
library(hw04pjenyuh)
Find the fifth element of the recursive sequence generated by (2, 4, 3):
myseq_n(x = c(2, 4, 3), n = 5)
Plot the output of the sequence generated by (2, 4, 3) for n = 3 to 9:
myseq_plot(data.frame(2, 4, 3, 3:9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.