Learn R Programming

crunch (version 1.30.4)

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

879

Version

1.30.4

License

LGPL (>= 3)

Issues

Pull Requests

Stars

Forks

Last Published

January 17th, 2024

Functions in crunch (1.30.4)

CrunchDataset-class

Crunch Datasets
AbstractCategories-class

Abstract categories
SO_survey

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

Organize Datasets
CrunchVariable-class

Variables in Crunch
Categories-class

Categories in CategoricalVariables
ContextManager

Context managers
Insertions-class

Insert categories in transformations
CrunchDataFrame

CrunchDataFrame
SO_schema

Schema for the 2017 Stack Overflow developer survey
VariableDefinition

Construct a variable definition
Subtotal-class

Subtotals and headings
Transforms-class

Transformations of variable and cube views
ShojiObject-class

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

Collection of Variables within a Dataset
Subvariables-class

Subvariables in Array Variables
VariableOrder-class

Organize Variables within a Dataset
addGeoMetadata

Add geodata metadata to a crunch variable
SummaryStat-class

Summary insertions
ShojiOrder-slots

Manipulate VariableGroup and VariableOrder
archive-and-publish

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

Add multiple variables to a dataset
subtotalArray

Calculate the transforms from a CrunchCube
appendDataset

Append one Crunch dataset to another
addSummaryStat

Add summary statistics to a CrunchCube
as-vector

Convert Variables to local R objects
filter

Get and set slide analyses
applyAgainst

apply a function against a dimension
addSubvariable

Add subvariable to an array
catalogToDataFrame

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

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

S3 method to concatenate Categories and Category objects
appendStream

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

as.environment method for CrunchDataset
batches

See the appended batches of this dataset
buildDelimRegex

Build Regex to find delimited items.
availableGeodataFeatures

Get the property features for available geographies
catalog-dataframes

as.data.frame method for catalog objects
categoriesFromLevels

Convert a factor's levels into Crunch categories.
automation-undo

Undo behavior of a Crunch Automation Script
collapse_dims

Collapse an array from a CrunchCube by summing
combine

Combine categories or responses
cd

Change to different folder
compareDatasets

Compare two datasets to see how they will append
changeCategoryID

Change the id of a category for a categorical variable
conditionalTransform

Conditional transformation
checkInstalledPackages

Check if a user has packages installed
check_margins

Check validity of margins
copyFolders

Copy the folder structure from one dataset to another.
copyVariable

Copy a variable
collapseCategories

Combine Categories in place
copyOrder

Copy the variable order from one dataset to another.
cleanseBatches

Remove batches from a dataset
consent

Give consent to do things that require permission
createWithPreparedData

Upload a prepared data.frame with metadata to Crunch
copyOrderGroup

Copy the order of a VariableGroup (or individual variable URL) from VariableOrder
crtabs

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

Make a dataset with metadata and a CSV
createDataset

Create an empty dataset
createSubvarDeriv

Create subvariable derivation expressions
crunchBox

Make a CrunchBox
crunch-summary

Summary methods for Crunch Variables
crunch-api-key

Crunch API Keys
crunch-uni

Univariate statistics on Crunch objects
is.VariableDefinition

Test whether a Crunch object belongs to a class
crunch_sitrep

Crunch situation report
crunchAPI

Main Crunch API handling function
crunch_user_agent

Generate or extend the User-Agent string
crunch-extract

Extract and modify Crunch objects
crunch-package

crunch: Crunch.io Data Tools
cubeMeasureType

Get measure type of cube result
cube-residuals

Calculate standardized residuals from a CrunchCube
dashboard

View or set a dashboard URL
cut,NumericVariable-method

Cut a numeric Crunch variable
cube-computing

Work with CrunchCubes, MultitableResults, and TabBookResults
owner

Get and set the owner of a dataset
cut,DatetimeVariable-method

Cut a Datetime Crunch variable
dimensions

Methods on Cube objects
showMissing

Modify cube missing behavior
datasetReference

Get a Crunch object's dataset URL
delete

Delete a Crunch object from the server
derivation

Get or set a derived variable's expression
datasets

Get a catalog of datasets
deriveArray

Make a Categorical Array or Multiple Response variable
deleteSubvariables

Delete subvariables from an array
dataset-to-R

as.data.frame method for CrunchDataset
titles

Manipulate deck titles
deleteVariables

Delete Variables Within a Dataset
decks

Get a dataset's DeckCatalog
deleteDataset

Delete a dataset from the dataset list
ncol

Dataset dimensions
dichotomize

Indicate how categories represent a dichotomized value
dropRows

Permanently delete rows from a dataset
dimension-comparison

Column and row comparison
aliases

Get and set names, aliases on Catalog-type objects
describe-entity

Name, alias, and description for Crunch objects
duplicated

"duplicated" method for Crunch objects
embedCrunchBox

Get HTML for embedding a CrunchBox
dimSums

Collapse an array from a CrunchCube by summing across dimensions to remove
dimension-comparison-pairwise

Pairwise column and row comparison
exportDataset

Export a dataset to a file
expressions

Construct Crunch Expressions from Crunch Database Functions
escapeRegex

Escape a regular expression
exclusion

View and set exclusion filters
filters

Get or set a dataset's filters
fillExpr

Expression to fill a variable from another
envOrOption

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

Export a Crunch Deck
expressions-internal

Crunch expressions internal
ensureValidCase

Validate case statements for case variables
flattenOrder

Remove nesting of groups within an order/group
CrunchGeography-class

Geography properties for crunch variables
folder

Find and move entities to a new folder
forkDataset

Create a fork of a dataset
flipArrays

Rearrange array subvariables
getAccountUserCatalog

Find all users on your account
generateNumCutLabels

Generate Labels for the cut function
generateWeightEntry

Generate entry for makeWeight
forceVariableCatalog

Force variables catalog to be loaded
fortify

Fortify crunch objects for use with ggplot
handleAPIresponse

Do the right thing with the HTTP response
getTeams

Retrieve your teams
http-methods

HTTP methods for communicating with the Crunch API
grouped

Get grouped or ungrouped OrderGroups
grabColNames

grab column names for subsetting crdfs
hasFunction

Check if a package has a function installed
getDimTypes

Get dimension type
index.table

Calculate an index table for a CrunchCube
publicFolder

Hide/Unhide or Privatize/Deprivatize Variables
grabRowInd

grab row indicators for subsetting crdfs
loadDataset

Load a Crunch Dataset
interactVariables

Create a variable by interacting categorical variables
listDatasetGadget

Open dataset selector
listDatasets

Get the names of datasets in a project
length

Length of Crunch objects
is-na-categories

is.na for Categories
is-public

View and modify the "public" attribute of artifacts
is.TRUEorFALSE

Check that a value is TRUE or FALSE
joinDatasets

Add columns from one dataset to another, joining on a key
is.editor

Read and set edit privileges
makeArrayGadget

Array builder
makeWeight

Generate a weight variable
makeCaseVariable

Make a case variable
lock

Lock and unlock a dataset for editing
makeCaseWhenVariable

Create a categorical or numeric variable based on conditions
logout

DEPRECATED! Authenticate with the Crunch API
makeMRFromText

Create Multiple Response Variable from Delimited lists
makeInsertion

Convert a child class of Insertion into a proper Insertion
makeDimTransform

Helper for creating slide dimension transformations for dashboards and exports
makeMarginMap

Make a map of margins
mergeFork

Merge changes to a dataset from a fork
mv

Functions to manipulate variables' or project's folder structure
margin-translation

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

Merge a CrunchDataFrame
matchCatToFeat

Match categories with features from geodata
weightVariables<-

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

Manage access to datasets and other objects
me

My user entity
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
newProject

Create a new folder
newMultitable

Create a new Multitable
newDatasetByColumn

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

Create a new filter
newExampleDataset

Import a fixture dataset for testing
slideMarkdown

Add a new markdown slide to a deck
newDeck

Create an empty Crunch Deck
na.omit

Omit missing categories
newDataset

Upload data to Crunch to make a new dataset
newDatasetFromFile

Upload a file to Crunch to make a new dataset
newSlide

Append a new slide to a Crunch Deck
noTransforms

Remove transformations from a CrunchCube
notifyIfNewVersion

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

Get and set VariableOrder
pollProgress

Check a Crunch progress URL until it finishes
palettes

Get the palettes from a crunch object
popSize

Get and set the market size for Crunch datasets
owners

See who owns these datasets
pendingStream

Get the pending streams for a dataset
pk

Get and set the primary key for a Crunch dataset
removeEmptyGroups

Remove OrderGroups with no entities
reorderSlides

Reorder slides in a CrunchDeck
projects

List project folders
resolution

Methods for Datetime variable resolutions
preCrunchBoxCheck

Check if a dataset will make a good CrunchBox
refresh

Get a fresh copy from the server
reassignUser

Reassign all Crunch objects from a user
replaceCharWithNumeric

Transform character vectors into indices
prepareDataForCrunch

Translate a data.frame to Crunch format
replaceMissingWithTRUE

Replace missing elements with TRUE
rmdir

Delete a folder
searchDatasets

Search Crunch for datasets.
scripts

Crunch Automation scripts entities for a dataset
runCrunchAutomation

Run a crunch automation script
saveVersion

Create a new saved version
restoreVersion

Restore a dataset to a previously saved version
rowDistinct

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

Retry
rowCount

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

Score similarity between a feature dataframe and categories
setName

Change the name of the current folder
setNames

Change the name of the entities in a catalog
setEntitySlotWrapBody

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

Get the URL of this object
index

Get the body of a Catalog
show

Show methods for Crunch objects
session-extract

Extract catalogs from a Session object
setEntitySlot

Base setter for Crunch objects
share

Share a dataset
setMultiEntitySlots

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

Get various catalogs for your Crunch session
setOrder

Change the order of entities in folder
slides

Access the slides of a CrunchDeck
slideCategories

Create sliding subvariable definitions
showTransforms

Show transformations on a Crunch object
table

Table function for Crunch objects
shojiURL

Get a resource URL from a Shoji Object
streamRows

Stream data to a Crunch dataset
settings

View and modify dataset-level settings
skipMissingCategories

Handle missing categories in CrunchCube
setCrunchAPI

Change which server to point to
serialPaste

Make a prose list
set_crunch_config

Set or modify general Crunch API request configuration
tojson-crunch

toJSON methods for Crunch objects
team

Share Crunch assets with a team
tabBook

Compute a Tab Book
unbind

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

Helper for switching between API keys and urls
tabbook-dim

TabBookResult and MultitableResult dimension
shojifyDatasetMetadata

Wrap variable metadata inside a dataset entity
toVariable

Generic method for converting objects to Crunch representations
unshare

Revoke a user's access to a dataset
temp.options

Set some global options temporarily
validateNamesInDims

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

Translate user facing cube subset to programmatic cube subset
tokenAuth

Add an auth token manually
versions

Access the saved versions of a dataset
users

Get information about users who have access to a dataset
translateHidden

Translate provided index to an index which accounts for hidden categories.
urls,ShojiCatalog-method

Get the URLs contained in a Catalog or Order object
as.Text

as.* methods for variables
webApp

View a Crunch Object in the Web Application
var-categories

Get and set Categories on Variables
weightVariables

Get a dataset's weightVariables
write.csv.gz

Write CSV to a compressed file
variableMetadata

Get all variable metadata for a dataset
is.weight<-

Dataset weights
email

Extract the email from a User Entity
writePreparedData

Persist to disk a prepared data.frame and metadata
variables

Access a catalog of variables
with-context-manager

Context manager's "with" method
which

"which" method for CrunchLogicalExpr
subtypeInsertion

Convert from Insertion to Insertion subtypes
type

Change Crunch variable types
streaming

Set the streaming property of a dataset
entity

Methods for ShojiTuples