Learn R Programming

crunch (version 1.31.0)

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

1,050

Version

1.31.0

License

LGPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Freedman Ellis

Last Published

March 18th, 2025

Functions in crunch (1.31.0)

SO_survey

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

Categories in CategoricalVariables
SummaryStat-class

Summary insertions
ShojiObject-class

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

Manipulate VariableGroup and VariableOrder
VariableDefinition

Construct a variable definition
VariableCatalog-class

Collection of Variables within a Dataset
CrunchVariable-class

Variables in Crunch
CrunchDataset-class

Crunch Datasets
VariableOrder-class

Organize Variables within a Dataset
Transforms-class

Transformations of variable and cube views
appendDataset

Append one Crunch dataset to another
addVariables

Add multiple variables to a dataset
archive-and-publish

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

apply a function against a dimension
subtotalArray

Calculate the transforms from a CrunchCube
as-vector

Convert Variables to local R objects
appendStream

Manually trigger a pending append to a dataset
Subtotal-class

Subtotals and headings
buildDelimRegex

Build Regex to find delimited items.
addSubvariable

Add subvariable to an array
Subvariables-class

Subvariables in Array Variables
addGeoMetadata

Add geodata metadata to a crunch variable
c-categories

S3 method to concatenate Categories and Category objects
batches

See the appended batches of this dataset
filter

Get and set slide analyses
addSummaryStat

Add summary statistics to a CrunchCube
as.environment,CrunchDataset-method

as.environment method for CrunchDataset
cleanseBatches

Remove batches from a dataset
automation-undo

Undo behavior of a Crunch Automation Script
availableGeodataFeatures

Get the property features for available geographies
collapseCategories

Combine Categories in place
collapse_dims

Collapse an array from a CrunchCube by summing
catalog-dataframes

as.data.frame method for catalog objects
cd

Change to different folder
categoriesFromLevels

Convert a factor's levels into Crunch categories.
compareDatasets

Compare two datasets to see how they will append
calcTransforms

Given a vector of values and elements, calculate the insertions
catalogToDataFrame

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

Change the id of a category for a categorical variable
crunch-api-key

Crunch API Keys
crtabs

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

Copy the variable order from one dataset to another.
checkInstalledPackages

Check if a user has packages installed
createWithMetadataAndFile

Make a dataset with metadata and a CSV
combine

Combine categories or responses
copyVariable

Copy a variable
createWithPreparedData

Upload a prepared data.frame with metadata to Crunch
createDataset

Create an empty dataset
conditionalTransform

Conditional transformation
crunchBox

Make a CrunchBox
consent

Give consent to do things that require permission
crunch_sitrep

Crunch situation report
check_margins

Check validity of margins
showMissing

Modify cube missing behavior
createSubvarDeriv

Create subvariable derivation expressions
dimensions

Methods on Cube objects
crunch-package

crunch: Crunch.io Data Tools
crunch-summary

Summary methods for Crunch Variables
dataset-to-R

as.data.frame method for CrunchDataset
cube-computing

Work with CrunchCubes, MultitableResults, and TabBookResults
cut,DatetimeVariable-method

Cut a Datetime Crunch variable
datasetReference

Get a Crunch object's dataset URL
crunch_user_agent

Generate or extend the User-Agent string
crunch-extract

Extract and modify Crunch objects
deleteVariables

Delete Variables Within a Dataset
crunch-uni

Univariate statistics on Crunch objects
dashboard

View or set a dashboard URL
owner

Get and set the owner of a dataset
is.VariableDefinition

Test whether a Crunch object belongs to a class
copyFolders

Copy the folder structure from one dataset to another.
crunchAPI

Main Crunch API handling function
dimension-comparison

Column and row comparison
datasets

Get a catalog of datasets
dimension-comparison-pairwise

Pairwise column and row comparison
cube-residuals

Calculate standardized residuals from a CrunchCube
decks

Get a dataset's DeckCatalog
delete

Delete a Crunch object from the server
ensureValidCase

Validate case statements for case variables
cubeMeasureType

Get measure type of cube result
derivation

Get or set a derived variable's expression
embedCrunchBox

Get HTML for embedding a CrunchBox
titles

Manipulate deck titles
ncol

Dataset dimensions
aliases

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

Make a Categorical Array or Multiple Response variable
describe-entity

Name, alias, and description for Crunch objects
dimSums

Collapse an array from a CrunchCube by summing across dimensions to remove
cut,NumericVariable-method

Cut a numeric Crunch variable
deleteDataset

Delete a dataset from the dataset list
dichotomize

Indicate how categories represent a dichotomized value
deleteSubvariables

Delete subvariables from an array
dropRows

Permanently delete rows from a dataset
duplicated

"duplicated" method for Crunch objects
envOrOption

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

Construct Crunch Expressions from Crunch Database Functions
exportDeck

Export a Crunch Deck
fillExpr

Expression to fill a variable from another
escapeRegex

Escape a regular expression
exclusion

View and set exclusion filters
expressions-internal

Crunch expressions internal
fortify

Fortify crunch objects for use with ggplot
exportDataset

Export a dataset to a file
getAccountUserCatalog

Find all users on your account
filters

Get or set a dataset's filters
forceVariableCatalog

Force variables catalog to be loaded
generateNumCutLabels

Generate Labels for the cut function
flattenOrder

Remove nesting of groups within an order/group
getDimTypes

Get dimension type
CrunchGeography-class

Geography properties for crunch variables
interactVariables

Create a variable by interacting categorical variables
getTeams

Retrieve your teams
index.table

Calculate an index table for a CrunchCube
publicFolder

Hide/Unhide or Privatize/Deprivatize Variables
http-methods

HTTP methods for communicating with the Crunch API
forkDataset

Create a fork of a dataset
grabRowInd

grab row indicators for subsetting crdfs
grouped

Get grouped or ungrouped OrderGroups
generateWeightEntry

Generate entry for makeWeight
is-na-categories

is.na for Categories
lock

Lock and unlock a dataset for editing
flipArrays

Rearrange array subvariables
grabColNames

grab column names for subsetting crdfs
listDatasets

Get the names of datasets in a project
folder

Find and move entities to a new folder
loadDataset

Load a Crunch Dataset
handleAPIresponse

Do the right thing with the HTTP response
is-public

View and modify the "public" attribute of artifacts
joinDatasets

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

Check if a package has a function installed
matchCatToFeat

Match categories with features from geodata
makeCaseWhenVariable

Create a categorical or numeric variable based on conditions
makeCaseVariable

Make a case variable
is.TRUEorFALSE

Check that a value is TRUE or FALSE
is.editor

Read and set edit privileges
newDataset

Upload data to Crunch to make a new dataset
me

My user entity
mergeFork

Merge changes to a dataset from a fork
weightVariables<-

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

Helper for creating slide dimension transformations for dashboards and exports
makeInsertion

Convert a child class of Insertion into a proper Insertion
makeMRFromText

Create Multiple Response Variable from Delimited lists
mv

Functions to manipulate variables' or project's folder structure
na.omit

Omit missing categories
noTransforms

Remove transformations from a CrunchCube
length

Length of Crunch objects
members

Manage access to datasets and other objects
slideMarkdown

Add a new markdown slide to a deck
newExampleDataset

Import a fixture dataset for testing
multitables

Multitable entities for a 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
notifyIfNewVersion

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

Make a map of margins
newDatasetByColumn

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

See who owns these datasets
merge

Merge a CrunchDataFrame
newProject

Create a new folder
makeWeight

Generate a weight variable
logout

DEPRECATED! Authenticate with the Crunch API
replaceCharWithNumeric

Transform character vectors into indices
margin-translation

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

Get and set VariableOrder
newSlide

Append a new slide to a Crunch Deck
palettes

Get the palettes from a crunch object
newDatasetFromFile

Upload a file to Crunch to make a new dataset
resolution

Methods for Datetime variable resolutions
restoreVersion

Restore a dataset to a previously saved version
prepareDataForCrunch

Translate a data.frame to Crunch format
newMultitable

Create a new Multitable
projects

List project folders
runCrunchAutomation

Run a crunch automation script
newFilter

Create a new filter
refresh

Get a fresh copy from the server
reassignUser

Reassign all Crunch objects from a user
pollProgress

Check a Crunch progress URL until it finishes
replaceMissingWithTRUE

Replace missing elements with TRUE
pk

Get and set the primary key for a Crunch dataset
session-extract

Extract catalogs from a Session object
serialPaste

Make a prose list
newDeck

Create an empty Crunch Deck
rowDistinct

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

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

Base setter for Crunch objects
setMultiEntitySlots

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

Get the pending streams for a dataset
saveVersion

Create a new saved version
settings

View and modify dataset-level settings
set_crunch_config

Set or modify general Crunch API request configuration
skipMissingCategories

Handle missing categories in CrunchCube
popSize

Get and set the market size for Crunch datasets
showTransforms

Show transformations on a Crunch object
preCrunchBoxCheck

Check if a dataset will make a good CrunchBox
streamRows

Stream data to a Crunch dataset
toVariable

Generic method for converting objects to Crunch representations
rmdir

Delete a folder
scoreCatToFeat

Score similarity between a feature dataframe and categories
retry

Retry
setName

Change the name of the current folder
tojson-crunch

toJSON methods for Crunch objects
slides

Access the slides of a CrunchDeck
session

Get various catalogs for your Crunch session
rowCount

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

Crunch Automation scripts entities for a dataset
removeEmptyGroups

Remove OrderGroups with no entities
validateNamesInDims

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

Add an auth token manually
var-categories

Get and set Categories on Variables
slideCategories

Create sliding subvariable definitions
reorderSlides

Reorder slides in a CrunchDeck
translateCubeIndex

Translate user facing cube subset to programmatic cube subset
tabBook

Compute a Tab Book
streaming

Set the streaming property of a dataset
weightVariables

Get a dataset's weightVariables
setNames

Change the name of the entities in a catalog
subtypeInsertion

Convert from Insertion to Insertion subtypes
type

Change Crunch variable types
setOrder

Change the order of entities in folder
unbind

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

Methods for ShojiTuples
translateHidden

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

"which" method for CrunchLogicalExpr
tabbook-dim

TabBookResult and MultitableResult dimension
share

Share a dataset
setupCrunchAuth

Helper for switching between API keys and urls
as.Text

as.* methods for variables
variableMetadata

Get all variable metadata for a dataset
versions

Access the saved versions of a dataset
table

Table function for Crunch objects
searchDatasets

Search Crunch for datasets.
self

Get the URL of this object
writePreparedData

Persist to disk a prepared data.frame and metadata
is.weight<-

Dataset weights
with-context-manager

Context manager's "with" method
unshare

Revoke a user's access to a dataset
shojiURL

Get a resource URL from a Shoji Object
index

Get the body of a Catalog
webApp

View a Crunch Object in the Web Application
urls,ShojiCatalog-method

Get the URLs contained in a Catalog or Order object
shojifyDatasetMetadata

Wrap variable metadata inside a dataset entity
setCrunchAPI

Change which server to point to
show

Show methods for Crunch objects
team

Share Crunch assets with a team
temp.options

Set some global options temporarily
email

Extract the email from a User Entity
variables

Access a catalog of variables
users

Get information about users who have access to a dataset
write.csv.gz

Write CSV to a compressed file
Insertions-class

Insert categories in transformations
SO_schema

Schema for the 2017 Stack Overflow developer survey
ContextManager

Context managers
CrunchDataFrame

CrunchDataFrame
DatasetOrder-class

Organize Datasets
AbstractCategories-class

Abstract categories