knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of oeis is to provide access to integer sequences from http://oeis.org and some to include some helper functions to ease analysis on the sequences.
You can install the development version with:
install.packages("remotes") remotes::install_github("jpmarindiaz/oeis")
List all available sequences with sequences
library(oeis) head(sequences)
Search for a sequence by some term in the sequence description.
search_sequence("prime numbers") # Returns 973 sequences with "prime numbers" in the description
Download a sequence
a1 <- get_sequence("A306302") a2 <- get_sequence("A331766") #a3 <- get_sequence("A999999") # Error. Sequence not in catalog.
TODO Work in progress!
# Fit polynomials # Find best polynomial order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.