Learn R Programming

crunch (version 1.31.3)

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

705

Version

1.31.3

License

LGPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Freedman Ellis

Last Published

July 28th, 2026

Functions in crunch (1.31.3)

Transforms-class

Transformations of variable and cube views
addGeoMetadata

Add geodata metadata to a crunch variable
ShojiObject-class

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

Organize Variables within a Dataset
Subvariables-class

Subvariables in Array Variables
VariableCatalog-class

Collection of Variables within a Dataset
VariableDefinition

Construct a variable definition
SummaryStat-class

Summary insertions
Subtotal-class

Subtotals and headings
ShojiOrder-slots

Manipulate VariableGroup and VariableOrder
addSubvariable

Add subvariable to an array
addSummaryStat

Add summary statistics to a CrunchCube
as-vector

Convert Variables to local R objects
applyAgainst

apply a function against a dimension
appendStream

Manually trigger a pending append to a dataset
addVariables

Add multiple variables to a dataset
filter

Get and set slide analyses
subtotalArray

Calculate the transforms from a CrunchCube
archive-and-publish

Get and set "archived" and "published" status of a dataset
appendDataset

Append one Crunch dataset to another
availableGeodataFeatures

Get the property features for available geographies
catalog-dataframes

as.data.frame method for catalog objects
batches

See the appended batches of this dataset
calcTransforms

Given a vector of values and elements, calculate the insertions
c-categories

S3 method to concatenate Categories and Category objects
automation-undo

Undo behavior of a Crunch Automation Script
as.environment,CrunchDataset-method

as.environment method for CrunchDataset
compareDatasets

Compare two datasets to see how they will append
cleanseBatches

Remove batches from a dataset
buildDelimRegex

Build Regex to find delimited items.
cd

Change to different folder
categoriesFromLevels

Convert a factor's levels into Crunch categories.
catalogToDataFrame

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

Combine Categories in place
check_margins

Check validity of margins
createWithPreparedData

Upload a prepared data.frame with metadata to Crunch
combine

Combine categories or responses
collapse_dims

Collapse an array from a CrunchCube by summing
checkInstalledPackages

Check if a user has packages installed
changeCategoryID

Change the id of a category for a categorical variable
conditionalTransform

Conditional transformation
copyFolders

Copy the folder structure from one dataset to another.
consent

Give consent to do things that require permission
copyVariable

Copy a variable
crunch-api-key

Crunch API Keys
crtabs

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

Create an empty dataset
createSubvarDeriv

Create subvariable derivation expressions
copyOrder

Copy the variable order from one dataset to another.
createWithMetadataAndFile

Make a dataset with metadata and a CSV
crunch_user_agent

Generate or extend the User-Agent string
is.VariableDefinition

Test whether a Crunch object belongs to a class
crunch_sitrep

Crunch situation report
cube-computing

Work with CrunchCubes, MultitableResults, and TabBookResults
crunchBox

Make a CrunchBox
crunch-uni

Univariate statistics on Crunch objects
crunch-summary

Summary methods for Crunch Variables
crunch-package

crunch: Crunch.io Data Tools
crunch-extract

Extract and modify Crunch objects
cube-residuals

Calculate standardized residuals from a CrunchCube
crunchAPI

Main Crunch API handling function
datasets

Get a catalog of datasets
cubeMeasureType

Get measure type of cube result
dataset-to-R

as.data.frame method for CrunchDataset
cut,DatetimeVariable-method

Cut a Datetime Crunch variable
cut,NumericVariable-method

Cut a numeric Crunch variable
dimensions

Methods on Cube objects
showMissing

Modify cube missing behavior
datasetReference

Get a Crunch object's dataset URL
dashboard

View or set a dashboard URL
deleteSubvariables

Delete subvariables from an array
delete

Delete a Crunch object from the server
titles

Manipulate deck titles
deleteVariables

Delete Variables Within a Dataset
aliases

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

Delete a dataset from the dataset list
derivation

Get or set a derived variable's expression
deriveArray

Make a Categorical Array or Multiple Response variable
describe-entity

Name, alias, and description for Crunch objects
decks

Get a dataset's DeckCatalog
ensureValidCase

Validate case statements for case variables
dichotomize

Indicate how categories represent a dichotomized value
duplicated

"duplicated" method for Crunch objects
dropRows

Permanently delete rows from a dataset
dimension-comparison-pairwise

Pairwise column and row comparison
dimension-comparison

Column and row comparison
embedCrunchBox

Get HTML for embedding a CrunchBox
dimSums

Collapse an array from a CrunchCube by summing across dimensions to remove
ncol

Dataset dimensions
envOrOption

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

Construct Crunch Expressions from Crunch Database Functions
expressions-internal

Crunch expressions internal
exclusion

View and set exclusion filters
filters

Get or set a dataset's filters
exportDeck

Export a Crunch Deck
exportDataset

Export a dataset to a file
flipArrays

Rearrange array subvariables
escapeRegex

Escape a regular expression
flattenOrder

Remove nesting of groups within an order/group
fillExpr

Expression to fill a variable from another
folder

Find and move entities to a new folder
forkDataset

Create a fork of a dataset
fortify

Fortify crunch objects for use with ggplot
CrunchGeography-class

Geography properties for crunch variables
getTeams

Retrieve your teams
getAccountUserCatalog

Find all users on your account
getDimTypes

Get dimension type
http-methods

HTTP methods for communicating with the Crunch API
forceVariableCatalog

Force variables catalog to be loaded
index.table

Calculate an index table for a CrunchCube
hasFunction

Check if a package has a function installed
publicFolder

Hide/Unhide or Privatize/Deprivatize Variables
is.editor

Read and set edit privileges
joinDatasets

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

Get grouped or ungrouped OrderGroups
handleAPIresponse

Do the right thing with the HTTP response
is-public

View and modify the "public" attribute of artifacts
lock

Lock and unlock a dataset for editing
is.TRUEorFALSE

Check that a value is TRUE or FALSE
generateWeightEntry

Generate entry for makeWeight
generateNumCutLabels

Generate Labels for the cut function
loadDataset

Load a Crunch Dataset
listDatasets

Get the names of datasets in a project
grabColNames

grab column names for subsetting crdfs
grabRowInd

grab row indicators for subsetting crdfs
length

Length of Crunch objects
makeCaseVariable

Make a case variable
logout

DEPRECATED! Authenticate with the Crunch API
is-na-categories

is.na for Categories
interactVariables

Create a variable by interacting categorical variables
makeInsertion

Convert a child class of Insertion into a proper Insertion
makeDimTransform

Helper for creating slide dimension transformations for dashboards and exports
makeCaseWhenVariable

Create a categorical or numeric variable based on conditions
makeWeight

Generate a weight variable
me

My user entity
matchCatToFeat

Match categories with features from geodata
makeMarginMap

Make a map of margins
margin-translation

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

Create Multiple Response Variable from Delimited lists
members

Manage access to datasets and other objects
multitables

Multitable entities for a dataset
na.omit

Omit missing categories
newDataset

Upload data to Crunch to make a new dataset
weightVariables<-

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

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

Upload a file to Crunch to make a new dataset
newDatasetByColumn

Upload a data.frame column-by-column to make a new dataset
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
mergeFork

Merge changes to a dataset from a fork
merge

Merge a CrunchDataFrame
newExampleDataset

Import a fixture dataset for testing
noTransforms

Remove transformations from a CrunchCube
newProject

Create a new folder
newMultitable

Create a new Multitable
notifyIfNewVersion

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

Add a new markdown slide to a deck
newFilter

Create a new filter
newDeck

Create an empty Crunch Deck
newSlide

Append a new slide to a Crunch Deck
projects

List project folders
refresh

Get a fresh copy from the server
preCrunchBoxCheck

Check if a dataset will make a good CrunchBox
ordering

Get and set VariableOrder
palettes

Get the palettes from a crunch object
reassignUser

Reassign all Crunch objects from a user
popSize

Get and set the market size for Crunch datasets
prepareDataForCrunch

Translate a data.frame to Crunch format
pendingStream

Get the pending streams for a dataset
pollProgress

Check a Crunch progress URL until it finishes
pk

Get and set the primary key for a Crunch dataset
resolution

Methods for Datetime variable resolutions
rowCount

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

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

Retry
restoreVersion

Restore a dataset to a previously saved version
replaceCharWithNumeric

Transform character vectors into indices
rmdir

Delete a folder
reorderSlides

Reorder slides in a CrunchDeck
removeEmptyGroups

Remove OrderGroups with no entities
replaceMissingWithTRUE

Replace missing elements with TRUE
searchDatasets

Search Crunch for datasets.
self

Get the URL of this object
session

Get various catalogs for your Crunch session
saveVersion

Create a new saved version
runCrunchAutomation

Run a crunch automation script
scoreCatToFeat

Score similarity between a feature dataframe and categories
scripts

Crunch Automation scripts entities for a dataset
setCrunchAPI

Change which server to point to
setupCrunchAuth

Helper for switching between API keys and urls
setNames

Change the name of the entities in a catalog
setOrder

Change the order of entities in folder
setName

Change the name of the current folder
serialPaste

Make a prose list
session-extract

Extract catalogs from a Session object
setMultiEntitySlots

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

View and modify dataset-level settings
setEntitySlotWrapBody

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

Base setter for Crunch objects
set_crunch_config

Set or modify general Crunch API request configuration
share

Share a dataset
index

Get the body of a Catalog
showTransforms

Show transformations on a Crunch object
shojifyDatasetMetadata

Wrap variable metadata inside a dataset entity
streaming

Set the streaming property of a dataset
show

Show methods for Crunch objects
slides

Access the slides of a CrunchDeck
slideCategories

Create sliding subvariable definitions
shojiURL

Get a resource URL from a Shoji Object
skipMissingCategories

Handle missing categories in CrunchCube
streamRows

Stream data to a Crunch dataset
tojson-crunch

toJSON methods for Crunch objects
temp.options

Set some global options temporarily
tabbook-dim

TabBookResult and MultitableResult dimension
tokenAuth

Add an auth token manually
table

Table function for Crunch objects
tabBook

Compute a Tab Book
team

Share Crunch assets with a team
subtypeInsertion

Convert from Insertion to Insertion subtypes
toVariable

Generic method for converting objects to Crunch representations
type

Change Crunch variable types
unbind

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

Extract the email from a User Entity
translateCubeIndex

Translate user facing cube subset to programmatic cube subset
var-categories

Get and set Categories on Variables
translateHidden

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

Revoke a user's access to a dataset
users

Get information about users who have access to a dataset
urls,ShojiCatalog-method

Get the URLs contained in a Catalog or Order object
entity

Methods for ShojiTuples
validateNamesInDims

error iff the names are not a dimension in the cube provided
write.csv.gz

Write CSV to a compressed file
which

"which" method for CrunchLogicalExpr
versions

Access the saved versions of a dataset
with-context-manager

Context manager's "with" method
variables

Access a catalog of variables
is.weight<-

Dataset weights
weightVariables

Get a dataset's weightVariables
as.Text

as.* methods for variables
variableMetadata

Get all variable metadata for a dataset
webApp

View a Crunch Object in the Web Application
writePreparedData

Persist to disk a prepared data.frame and metadata
SO_schema

Schema for the 2017 Stack Overflow developer survey
ContextManager

Context managers
CrunchVariable-class

Variables in Crunch
CrunchDataset-class

Crunch Datasets
Insertions-class

Insert categories in transformations
CrunchDataFrame

CrunchDataFrame
Categories-class

Categories in CategoricalVariables
AbstractCategories-class

Abstract categories
SO_survey

R users who responded to the 2017 Stack Overflow developer survey
DatasetOrder-class

Organize Datasets