Skip to content

ravingmantis/pspg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postgres Pager for R

This package wraps the Postgres Pager to provide a console-based data structure display tool.

Installation

You first need to install pspg. See the docs for more detail, but essentially:

# Debian (Ubuntu)
sudo apt-get install pspg

# RedHat (Fedora)
sudo dnf install pspg

Then you can install the package using remotes

> remotes::install_github("ravingmantis/pspg")

Usage

Use the pspg generic to view a data structure:

# View a data.frame
pspg(expand.grid(a=1:10 * 10, b = 2:20 * 100))

# View a list
pspg(list(a=1:10,b=2))

# View an array
pspg(array(1, dim = c(10, 10), dimnames = list(paste0("y", 1:10), paste0("x", 1:10))))

It returns the input, so a pspg step can be included in a pipeline:

do_a_thing() |> pspg() |> do_something_else()

About

Postgres Pager for R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published