The goal of hw04adim7calcnpltr is to …
Take as input a vector x containing the first three numeric elements of a sequence and a positive (>0) integer n denoting the final nth element of the sequence and calculate. The function should return element n.
Accepts four column data frames with the first three columns as
numeric values to be input in calcn()
and the fourth column as a
positive integer for a sequence to be generated and then return a
line plot of the output value for the different values of n
This package is only available by permission of the author at:
install.packages("hw04adim7calcnpltr")
This is a basic example which shows you how to solve a common problem:
library(hw04adim7calcnpltr)
## basic example code
# x = c(2, 4, 3), n = 12)
# Calculate sequence
calcn(c(2, 4, 3), 12L) # Run
#> [1] 2.748186
What is special about using README.Rmd
instead of just README.md
?
You can include R chunks like so:
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)
You’ll still need to render README.Rmd
regularly, to keep README.md
up-to-date. devtools::build_readme()
is handy for this. You could also
use GitHub Actions to re-render README.Rmd
every time you push. An
example workflow can be found here:
https://github.com/r-lib/actions/tree/master/examples.
You can also embed plots, for example:
In that case, don’t forget to commit and push the resulting figure files, so they display on GitHub and CRAN.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.