Author: Anna Evans, GitHub ID: aevans872
The goal of hw04paevans872 is to create a function which return output of a recursive sequence and another function which plots the output of the recursive sequence to a line plot.
You can install the released version of hw04paevans872 by permission of the author at install.packages(“hw04paevans872”)
install.packages("hw04paevans872")
This is a basic example which shows you how to solve a common problem:
library(hw04paevans872)
## basic example code
recurseq1(x = c(2,4,3), n = 3)
#> [1] 3
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)
recurseq2(my_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.