Introduction

Installing and loading OEIS.R package

Installing package from Github

Github repository: https://github.com/EnriquePH/OEIS.R

library(devtools)
devtools::install_github("EnriquePH/OEIS.R")

Loading OEIS.R Package

library(OEIS.R)

Getting OEIS url

OEIS_web_url()
OEIS_web_url(license = TRUE)

Number of sequences in the encyclopedia

OEIS_total_sequences()

Loading a sequence

S3 Class OEIS_sequence

id <- "A001615"
A001615 <- OEIS_sequence(id)
class(A001615)

Basic sequence information

A001615$ID
A001615$description
A001615$formerly
A001615$url

Plotting the sequence

plot(A001615)
A001615$author

Sequence's $Bib\TeX$ reference

bref <- OEIS_bibtex(A001615)
print(bref, style = "Bibtex")

Access $Bib\TeX$ fields

bref$note

Plotting with ggplot2

library(ggplot2)
OEIS_ggplot(A001615) + 
  geom_line()

Links

library(knitr)

kable(data.frame(A001615$links))


EnriquePH/OEIS.R documentation built on March 15, 2023, 8:01 a.m.