OEIS.R
Data from The On-Line Encyclopedia of Integer Sequences in R
Install / Use
/learn @EnriquePH/OEIS.RREADME
OEIS.R
<img src="https://raw.githubusercontent.com/EnriquePH/OEIS.R/master/sticker/OEIS.R-sticker.png" align="right" height="200"/>Access sequences from the On-Line Encyclopedia of Integer Sequences (OEIS) directly from R
OEIS is one of the world's most valuable mathematical resources: thousands of integer sequences with formulas, comments, references, and code. It has contributed to mathematical discoveries and is cited in over 6000 articles. OEIS.R brings this data to R in a structured way, making it easy to visualize, analyze, and use in mathematical hypotheses or contributions to OEIS.
Installation
# install.packages("devtools") # if you don't have it
devtools::install_github("EnriquePH/OEIS.R")
Quick Start
Rlibrary(OEIS.R)
library(ggplot2)
# Download the Fibonacci sequence (A000045)
fib <- OEIS_sequence("A000045")
# Basic info
OEIS_description(fib)
OEIS_formula(fib)
# Quick plot (add your own image here after generating it!)
OEIS_plot(fib)
Another example: Sequence A001615
id <- "A001615"
x <- OEIS_sequence(id)
OEIS_ggplot(x) +
geom_line() +
geom_point(size = 0.5, color = "green") +
labs(title = paste("OEIS", id, "-", OEIS_name(x)))

Main Features
Download and parsing of OEIS sequences (terms, description, formula, offset, etc.). Seamless integration with ggplot2 for visualization. Helper functions:
- OEIS_description()
- OEIS_formula()
- OEIS_keywords()
Respects OEIS terms of use (rate limiting recommended). Example Shiny app for interactive exploration.
Shiny App
Try the interactive demo: OEIS.R Shiny App
Useful Links
Contributing
Contributions are welcome! Feel free to open issues or pull requests for features like term-based search, caching, extended parsing, or vignettes.
Author
Enrique Pérez Herrero
- GitHub: @EnriquePH
- LinkedIn: eph3000
Built with RStudio • Licensed under the MIT License
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
