Skip to contents

Fetch a sequence

Validate an ID and download a complete sequence entry.

OEIS_check()
OEIS ID Validation
OEIS_ID()
OEIS sequence authors from internal format, or from the sequence ID.
OEIS_sequence()
S3 class constructor for OEIS_sequence

Sequence fields

Read individual fields from a sequence ID, its parsed internal format, or an already-built OEIS_sequence object.

OEIS_description()
Get OEIS sequence description
OEIS_terms()
Get OEIS sequence terms from XML document.
OEIS_offset()
OEIS sequence offset from xml2 data.
OEIS_comments()
OEIS sequence comments lines from sequence internal_format
OEIS_links()
Links from sequence data
OEIS_example()
OEIS sequence example lines from sequence internal_format
OEIS_formula()
OEIS sequence formula lines from sequence internal_format
OEIS_mathematica()
OEIS Wolfram Mathematica code from sequence internal_format
OEIS_keywords()
OEIS sequence keywords from sequence internal_format
OEIS_author()
OEIS sequence authors from internal format, or from the sequence ID.
OEIS_date()
OEIS sequence creation date from data.frame
OEIS_extensions()
OEIS sequence extensions from sequence internal_format
OEIS_formerly()
Get OEIS sequence former ID
OEIS_status()
Get OEIS sequence status

Cross references

Sequences referenced by, in context with, or adjacent to a sequence.

OEIS_crossrefs()
OEIS Cross references
OEIS_cf()
OEIS sequence linked cross references from sequence information data.frame
OEIS_seqs_in_context()
OEIS Sequences in context from from XML document
OEIS_seqs_adjacent()
OEIS Adjacent sequences from XML document

B-files (extended term lists)

OEIS sequences show a limited number of terms; b-files provide many more.

OEIS_bfile()
S3 class constructor for bfile data.
OEIS_bfile_url()
Get sequence data url in bfile format.
OEIS_download_bfile()
Download bfile from the OEIS

Low-level access

URLs and raw document/format accessors used internally by the higher-level functions above.

OEIS_url()
Get sequence url in the OEIS server
OEIS_web_url()
OEIS server main web page url
OEIS_search_url()
Find url to search in OEIS a given text
OEIS_xml()
Retrieves content from OEIS web as an XML document
OEIS_df()
Get OEIS sequence information lines from XML document data
OEIS_internal_format()
Get sequence internal format
OEIS_total_sequences()
Retrieve the total number of sequences in the OEIS database

Plotting

OEIS_ggplot()
OEIS_ggplot Plot OEIS sequence with ggplot
plot(<OEIS_sequence>)
Plot class OEIS_Sequence

Citing

OEIS_bibtex()
Getting BibTeX citation from OEIS sequence
author_list()
Getting authors list from author vectors

Utilities

`%>%`
Pipe operator
char0toNULL()
Convert character(0) or list() into NULL