Programmatic access

You can access data from palmerpenguins programmatically using the Redivis API for R, Python, or JavaScript.

Install the redivis-r library from R-universe:

install.packages("redivis", repos = c("https://redivis.r-universe.dev", "https://cloud.r-project.org"))

Access the data:

library(redivis)

user <- redivis::user("datapages")
dataset <- user$dataset("palmerpenguins")
table <- dataset$table("penguins")

# load table as tidyverse tibble
penguins <- table$to_tibble()

View documentation >

Install the redivis-python library from PyPI:

pip install --upgrade redivis

Access the data:

import redivis

user = redivis.user("datapages")
dataset = user.dataset("palmerpenguins")
table = dataset.table("penguins")

# load table as a pandas dataframe
penguins = table.to_pandas_dataframe()

View documentation >

Install the redivis-js library from NPM:

npm install --save redivis

Access the data:

import * as redivis from redivis

penguins = await redivis
  .user('datapages')
  .dataset('palmerpenguins')
  .table('penguins')
  .listRows()

View documentation >