Learn R Programming

crunch (version 1.31.2)

Crunch.io Data Tools

Description

The Crunch.io service provides a cloud-based data store and analytic engine, as well as an intuitive web interface. Using this package, analysts can interact with and manipulate Crunch datasets from within R. Importantly, this allows technical researchers to collaborate naturally with team members, managers, and clients who prefer a point-and-click interface.

Copy Link

Version

Install

install.packages('crunch')

Monthly Downloads

509

Version

1.31.2

License

LGPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Freedman Ellis

Last Published

June 16th, 2026

Functions in crunch (1.31.2)

VariableDefinition

Construct a variable definition
VariableOrder-class

Organize Variables within a Dataset
addGeoMetadata

Add geodata metadata to a crunch variable
SummaryStat-class

Summary insertions
ShojiObject-class

Mix-in class for multiple inheritance of variables and datasets.
Subtotal-class

Subtotals and headings
Transforms-class

Transformations of variable and cube views
ShojiOrder-slots

Manipulate VariableGroup and VariableOrder
VariableCatalog-class

Collection of Variables within a Dataset
Subvariables-class

Subvariables in Array Variables
applyAgainst

apply a function against a dimension
appendDataset

Append one Crunch dataset to another
subtotalArray

Calculate the transforms from a CrunchCube
archive-and-publish

Get and set "archived" and "published" status of a dataset
as-vector

Convert Variables to local R objects
automation-undo

Undo behavior of a Crunch Automation Script
calcTransforms

Given a vector of values and elements, calculate the insertions
catalog-dataframes

as.data.frame method for catalog objects
appendStream

Manually trigger a pending append to a dataset
as.environment,CrunchDataset-method

as.environment method for CrunchDataset
c-categories

S3 method to concatenate Categories and Category objects
addVariables

Add multiple variables to a dataset
filter

Get and set slide analyses
collapseCategories

Combine Categories in place
combine

Combine categories or responses
categoriesFromLevels

Convert a factor's levels into Crunch categories.
catalogToDataFrame

A utility to return a data.frame from a ShojiCatalog.
cleanseBatches

Remove batches from a dataset
addSummaryStat

Add summary statistics to a CrunchCube
buildDelimRegex

Build Regex to find delimited items.
collapse_dims

Collapse an array from a CrunchCube by summing
addSubvariable

Add subvariable to an array
check_margins

Check validity of margins
checkInstalledPackages

Check if a user has packages installed
copyVariable

Copy a variable
compareDatasets

Compare two datasets to see how they will append
crtabs

Crunch xtabs: Crosstab and otherwise aggregate variables in a Crunch Dataset
copyOrder

Copy the variable order from one dataset to another.
crunch-summary

Summary methods for Crunch Variables
crunch-api-key

Crunch API Keys
crunch-package

crunch: Crunch.io Data Tools
conditionalTransform

Conditional transformation
dataset-to-R

as.data.frame method for CrunchDataset
createDataset

Create an empty dataset
createWithPreparedData

Upload a prepared data.frame with metadata to Crunch
createSubvarDeriv

Create subvariable derivation expressions
cube-computing

Work with CrunchCubes, MultitableResults, and TabBookResults
crunch-extract

Extract and modify Crunch objects
crunch_user_agent

Generate or extend the User-Agent string
dashboard

View or set a dashboard URL
datasets

Get a catalog of datasets
is.VariableDefinition

Test whether a Crunch object belongs to a class
crunchBox

Make a CrunchBox
cut,DatetimeVariable-method

Cut a Datetime Crunch variable
crunch_sitrep

Crunch situation report
datasetReference

Get a Crunch object's dataset URL
deleteSubvariables

Delete subvariables from an array
createWithMetadataAndFile

Make a dataset with metadata and a CSV
availableGeodataFeatures

Get the property features for available geographies
cd

Change to different folder
batches

See the appended batches of this dataset
consent

Give consent to do things that require permission
titles

Manipulate deck titles
decks

Get a dataset's DeckCatalog
dropRows

Permanently delete rows from a dataset
dimension-comparison

Column and row comparison
delete

Delete a Crunch object from the server
deleteDataset

Delete a dataset from the dataset list
cube-residuals

Calculate standardized residuals from a CrunchCube
cubeMeasureType

Get measure type of cube result
cut,NumericVariable-method

Cut a numeric Crunch variable
crunch-uni

Univariate statistics on Crunch objects
duplicated

"duplicated" method for Crunch objects
forkDataset

Create a fork of a dataset
dichotomize

Indicate how categories represent a dichotomized value
derivation

Get or set a derived variable's expression
exportDataset

Export a dataset to a file
ncol

Dataset dimensions
deriveArray

Make a Categorical Array or Multiple Response variable
exportDeck

Export a Crunch Deck
changeCategoryID

Change the id of a category for a categorical variable
deleteVariables

Delete Variables Within a Dataset
dimension-comparison-pairwise

Pairwise column and row comparison
crunchAPI

Main Crunch API handling function
dimSums

Collapse an array from a CrunchCube by summing across dimensions to remove
expressions-internal

Crunch expressions internal
copyFolders

Copy the folder structure from one dataset to another.
dimensions

Methods on Cube objects
fortify

Fortify crunch objects for use with ggplot
embedCrunchBox

Get HTML for embedding a CrunchBox
getDimTypes

Get dimension type
getTeams

Retrieve your teams
escapeRegex

Escape a regular expression
CrunchGeography-class

Geography properties for crunch variables
interactVariables

Create a variable by interacting categorical variables
exclusion

View and set exclusion filters
getAccountUserCatalog

Find all users on your account
is-na-categories

is.na for Categories
flipArrays

Rearrange array subvariables
hasFunction

Check if a package has a function installed
publicFolder

Hide/Unhide or Privatize/Deprivatize Variables
flattenOrder

Remove nesting of groups within an order/group
logout

DEPRECATED! Authenticate with the Crunch API
expressions

Construct Crunch Expressions from Crunch Database Functions
makeCaseVariable

Make a case variable
generateNumCutLabels

Generate Labels for the cut function
matchCatToFeat

Match categories with features from geodata
http-methods

HTTP methods for communicating with the Crunch API
margin-translation

Convert from user margins to real cube margins or vice versa
generateWeightEntry

Generate entry for makeWeight
showMissing

Modify cube missing behavior
makeMRFromText

Create Multiple Response Variable from Delimited lists
makeInsertion

Convert a child class of Insertion into a proper Insertion
length

Length of Crunch objects
aliases

Get and set names, aliases on Catalog-type objects
loadDataset

Load a Crunch Dataset
listDatasets

Get the names of datasets in a project
index.table

Calculate an index table for a CrunchCube
grabRowInd

grab row indicators for subsetting crdfs
is.TRUEorFALSE

Check that a value is TRUE or FALSE
is-public

View and modify the "public" attribute of artifacts
members

Manage access to datasets and other objects
me

My user entity
makeMarginMap

Make a map of margins
newDeck

Create an empty Crunch Deck
newExampleDataset

Import a fixture dataset for testing
weightVariables<-

Change which variables can be set as a dataset's weight.
mergeFork

Merge changes to a dataset from a fork
merge

Merge a CrunchDataFrame
lock

Lock and unlock a dataset for editing
moveLastElement

Move and delete last element of a vector This moves the last element of a vector to an index, then deletes the last element, it is broken out for testing purposes
prepareDataForCrunch

Translate a data.frame to Crunch format
projects

List project folders
grabColNames

grab column names for subsetting crdfs
newDatasetByColumn

Upload a data.frame column-by-column to make a new dataset
describe-entity

Name, alias, and description for Crunch objects
makeWeight

Generate a weight variable
newMultitable

Create a new Multitable
palettes

Get the palettes from a crunch object
newProject

Create a new folder
newDatasetFromFile

Upload a file to Crunch to make a new dataset
pendingStream

Get the pending streams for a dataset
na.omit

Omit missing categories
pk

Get and set the primary key for a Crunch dataset
notifyIfNewVersion

See if there's a new version of the package on GitHub
rowDistinct

Create variables useful for determining whether a row's values are suspicious
rowCount

Create variables based on row-wise functions for crunch Multiple Response Variables
scripts

Crunch Automation scripts entities for a dataset
scoreCatToFeat

Score similarity between a feature dataframe and categories
popSize

Get and set the market size for Crunch datasets
preCrunchBoxCheck

Check if a dataset will make a good CrunchBox
ensureValidCase

Validate case statements for case variables
envOrOption

Get/set options (user-specified, in environment, or in R options)
reorderSlides

Reorder slides in a CrunchDeck
runCrunchAutomation

Run a crunch automation script
resolution

Methods for Datetime variable resolutions
saveVersion

Create a new saved version
filters

Get or set a dataset's filters
showTransforms

Show transformations on a Crunch object
restoreVersion

Restore a dataset to a previously saved version
pollProgress

Check a Crunch progress URL until it finishes
removeEmptyGroups

Remove OrderGroups with no entities
newDataset

Upload data to Crunch to make a new dataset
ordering

Get and set VariableOrder
fillExpr

Expression to fill a variable from another
streaming

Set the streaming property of a dataset
toVariable

Generic method for converting objects to Crunch representations
setName

Change the name of the current folder
setMultiEntitySlots

setter for Crunch objects that allows a single request to update multiple parts of an entity
skipMissingCategories

Handle missing categories in CrunchCube
session

Get various catalogs for your Crunch session
streamRows

Stream data to a Crunch dataset
searchDatasets

Search Crunch for datasets.
setCrunchAPI

Change which server to point to
subtypeInsertion

Convert from Insertion to Insertion subtypes
folder

Find and move entities to a new folder
forceVariableCatalog

Force variables catalog to be loaded
translateHidden

Translate provided index to an index which accounts for hidden categories.
tabBook

Compute a Tab Book
entity

Methods for ShojiTuples
setEntitySlot

Base setter for Crunch objects
setEntitySlotWrapBody

Setter for Crunch objects that wraps in a "body"
grouped

Get grouped or ungrouped OrderGroups
self

Get the URL of this object
makeDimTransform

Helper for creating slide dimension transformations for dashboards and exports
joinDatasets

Add columns from one dataset to another, joining on a key
makeCaseWhenVariable

Create a categorical or numeric variable based on conditions
is.editor

Read and set edit privileges
temp.options

Set some global options temporarily
settings

View and modify dataset-level settings
set_crunch_config

Set or modify general Crunch API request configuration
slideCategories

Create sliding subvariable definitions
slides

Access the slides of a CrunchDeck
newSlide

Append a new slide to a Crunch Deck
handleAPIresponse

Do the right thing with the HTTP response
table

Table function for Crunch objects
tabbook-dim

TabBookResult and MultitableResult dimension
team

Share Crunch assets with a team
email

Extract the email from a User Entity
users

Get information about users who have access to a dataset
unbind

Split an array or multiple-response variable into its CategoricalVariables
type

Change Crunch variable types
with-context-manager

Context manager's "with" method
write.csv.gz

Write CSV to a compressed file
variableMetadata

Get all variable metadata for a dataset
as.Text

as.* methods for variables
tojson-crunch

toJSON methods for Crunch objects
versions

Access the saved versions of a dataset
variables

Access a catalog of variables
slideMarkdown

Add a new markdown slide to a deck
noTransforms

Remove transformations from a CrunchCube
reassignUser

Reassign all Crunch objects from a user
multitables

Multitable entities for a dataset
mv

Functions to manipulate variables' or project's folder structure
setNames

Change the name of the entities in a catalog
replaceCharWithNumeric

Transform character vectors into indices
shojiURL

Get a resource URL from a Shoji Object
index

Get the body of a Catalog
setOrder

Change the order of entities in folder
newFilter

Create a new filter
weightVariables

Get a dataset's weightVariables
unshare

Revoke a user's access to a dataset
replaceMissingWithTRUE

Replace missing elements with TRUE
urls,ShojiCatalog-method

Get the URLs contained in a Catalog or Order object
which

"which" method for CrunchLogicalExpr
refresh

Get a fresh copy from the server
writePreparedData

Persist to disk a prepared data.frame and metadata
retry

Retry
rmdir

Delete a folder
tokenAuth

Add an auth token manually
session-extract

Extract catalogs from a Session object
show

Show methods for Crunch objects
setupCrunchAuth

Helper for switching between API keys and urls
var-categories

Get and set Categories on Variables
validateNamesInDims

error iff the names are not a dimension in the cube provided
translateCubeIndex

Translate user facing cube subset to programmatic cube subset
shojifyDatasetMetadata

Wrap variable metadata inside a dataset entity
share

Share a dataset
is.weight<-

Dataset weights
serialPaste

Make a prose list
webApp

View a Crunch Object in the Web Application
AbstractCategories-class

Abstract categories
Insertions-class

Insert categories in transformations
ContextManager

Context managers
Categories-class

Categories in CategoricalVariables
CrunchDataset-class

Crunch Datasets
CrunchDataFrame

CrunchDataFrame
CrunchVariable-class

Variables in Crunch
DatasetOrder-class

Organize Datasets
SO_survey

R users who responded to the 2017 Stack Overflow developer survey
SO_schema

Schema for the 2017 Stack Overflow developer survey