blob v1.1.0

0

Monthly downloads

0th

Percentile

A Simple S3 Class for Representing Vectors of Binary Data ('BLOBS')

R's raw vector is useful for storing a single binary object. What if you want to put a vector of them in a data frame? The blob package provides the blob object, a list of raw vectors, suitable for use as a column in data frame.

Readme

Travis-CI Build Status CRAN\_Status\_Badge Coverage Status

blob

The goal of blob is to provide a simple S3 class to represent a vector of binary objects, aka blobs. The blob class is a lightweight wrapper around a list of raw vectors, suitable for inclusion in a data frame.

In most cases you will not need to use this package explicitly: it will be used transparently by packages that need to load BLOB columns from databases or binary file formats.

Installation

You can install blob from github with:

# install.packages("devtools")
devtools::install_github("tidyverse/blob")

Example

To create a blob, use blob(), new_blob() or as.blob():

x1 <- charToRaw("Good morning")
x2 <- as.raw(c(0x48, 0x65, 0x6c, 0x6c, 0x6f))

new_blob(list(x1, x2))
#> [1] blob[12 B] blob[5 B]
blob(x1, x2)
#> [1] blob[12 B] blob[5 B]

as.blob(c("Good morning", "Good evening"))
#> [1] blob[12 B] blob[12 B]

Functions in blob

Name Description
blob Construct a blob object
No Results!

Last month downloads

Details

License GPL-3
Encoding UTF-8
LazyData true
URL https://github.com/hadley/blob
BugReports https://github.com/hadley/blob/issues
RoxygenNote 6.0.1
NeedsCompilation no
Packaged 2017-06-17 04:01:59 UTC; muelleki
Repository CRAN
Date/Publication 2017-06-17 14:57:46 UTC
suggests covr , testthat
imports tibble
Contributors RStudio, Hadley Wickham

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/blob)](http://www.rdocumentation.org/packages/blob)