Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nbenn/printbl

Pretty printing of 2D data structures in R
https://github.com/nbenn/printbl

Last synced: about 2 months ago
JSON representation

Pretty printing of 2D data structures in R

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
library(printbl)
```
# printbl

Pretty printing for any 2D datastructure in R that provides an implementation of the following generic methods

* `base::head()`/`base::tail()`
* `base::nrow()`

and optionally

* `base::rownames()`
* `printbl::obj_desc()`

## Installation

You can install the released version of printbl from [github](https://github.com/nbenn/printbl) with:

``` r
devoolt::install_github("nbenn/printbl")
```

## Example

For example a `data.frame` which has row names:

```{r example}
print_table(mtcars)
```