knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

hw04pjenyuh

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

Installation

You can install the released version of hw04pjenyuh by asking me for a copy

install.packages("hw04pjenyuh")

Example

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))


STAT-413-613-21S/hw04pjenyuh documentation built on March 2, 2021, 12:04 a.m.