Learn R Programming

⚠️There's a newer version (1.31.0) of this package.Take me there.

crunch (version 1.29.1)

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

601

Version

1.29.1

License

LGPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Freedman Ellis

Last Published

April 7th, 2022

Functions in crunch (1.29.1)

DatasetOrder-class

Organize Datasets
Insertions-class

Insert categories in transformations
AbstractCategories-class

Abstract categories
Categories-class

Categories in CategoricalVariables
VariableCatalog-class

Collection of Variables within a Dataset
VariableDefinition

Construct a variable definition
Subtotal-class

Subtotals and headings
ContextManager

Context managers
CrunchDataFrame

CrunchDataFrame
VariableOrder-class

Organize Variables within a Dataset
Subvariables-class

Subvariables in Array Variables
SO_schema

Schema for the 2017 Stack Overflow developer survey
SummaryStat-class

Summary insertions
Transforms-class

Transformations of variable and cube views
SO_survey

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

Add multiple variables to a dataset
CrunchDataset-class

Crunch Datasets
CrunchVariable-class

Variables in Crunch
archive-and-publish

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

Add summary statistics to a CrunchCube
createSubvarDeriv

Create subvariable derivation expressions
changeCategoryID

Change the id of a category for a categorical variable
addSubvariable

Add subvariable to an array
as-vector

Convert Variables to local R objects
createDataset

Create an empty dataset
calcTransforms

Calculate transforms for an array
checkInstalledPackages

Check if a user has packages installed
calcInsertions

Given a vector of values and elements, calculate the insertions
crunch-summary

Summary methods for Crunch Variables
cube-residuals

Calculate standardized residuals from a CrunchCube
crunch-uni

Univariate statistics on Crunch objects
cubeMeasureType

Get measure type of cube result
dataset-to-R

as.data.frame method for CrunchDataset
ShojiObject-class

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

Get a Crunch object's dataset URL
ShojiOrder-slots

Manipulate VariableGroup and VariableOrder
conditionalTransform

Conditional transformation
combine

Combine categories or responses
appendStream

Manually trigger a pending append to a dataset
compareDatasets

Compare two datasets to see how they will append
catalogToDataFrame

A utility to return a data.frame from a ShojiCatalog.
catalog-dataframes

as.data.frame method for catalog objects
appendDataset

Append one Crunch dataset to another
addGeoMetadata

Add geodata metadata to a crunch variable
forceVariableCatalog

Force variables catalog to be loaded
is-na-categories

is.na for Categories
is-public

View and modify the "public" attribute of artifacts
forkDataset

Create a fork of a dataset
getDimTypes

Get dimension type
getAccountUserCatalog

Find all users on your account
as.environment,CrunchDataset-method

as.environment method for CrunchDataset
collapseCategories

Combine Categories in place
automation-undo

Undo behavior of a Crunch Automation Script
filter

Get and set slide analyses
cd

Change to different folder
categoriesFromLevels

Convert a factor's levels into Crunch categories.
crunch-api-key

Crunch API Keys
consent

Give consent to do things that require permission
crtabs

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

Convert a child class of Insertion into a proper Insertion
buildDelimRegex

Build Regex to find delimited items.
c-categories

S3 method to concatenate Categories and Category objects
crunch_user_agent

Generate or extend the User-Agent string
cube-computing

Work with CrunchCubes, MultitableResults, and TabBookResults
deleteDataset

Delete a dataset from the dataset list
deleteSubvariables

Delete subvariables from an array
ncol

Dataset dimensions
check_margins

Check validity of margins
collapse_dims

Collapse an array from a CrunchCube by summing
dimSums

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

Find and move entities to a new folder
expressions

Construct Crunch Expressions from Crunch Database Functions
flipArrays

Rearrange array subvariables
fillExpr

Expression to fill a variable from another
cleanseBatches

Remove batches from a dataset
subtotalArray

Calculate the transforms from a CrunchCube
applyAgainst

apply a function against a dimension
makeMRFromText

Create Multiple Response Variable from Delimited lists
createWithMetadataAndFile

Make a dataset with metadata and a CSV
createWithPreparedData

Upload a prepared data.frame with metadata to Crunch
makeMarginMap

Make a map of margins
availableGeodataFeatures

Get the property features for available geographies
batches

See the appended batches of this dataset
getTeams

Retrieve your teams
crunch

Crunch.io: instant, visual, collaborative data analysis
grabColNames

grab column names for subsetting crdfs
copyVariable

Copy a variable
copyOrderGroup

Copy the order of a VariableGroup (or individual variable URL) from VariableOrder
is.TRUEorFALSE

Check that a value is TRUE or FALSE
dimensions

Methods on Cube objects
showMissing

Modify cube missing behavior
is.VariableDefinition

Test whether a Crunch object belongs to a class
crunchAPI

Main Crunch API handling function
crunch-extract

Extract and modify Crunch objects
cut,DatetimeVariable-method

Cut a Datetime Crunch variable
cut,NumericVariable-method

Cut a numeric Crunch variable
decks

Get a dataset's DeckCatalog
copyOrder

Copy the variable order from one dataset to another.
copyFolders

Copy the folder structure from one dataset to another.
makeWeight

Generate a weight variable
newDeck

Create an empty Crunch Deck
deriveArray

Make a Categorical Array or Multiple Response variable
delete

Delete a Crunch object from the server
is.editor

Read and set edit privileges
newExampleDataset

Import a fixture dataset for testing
dashboard

View or set a dashboard URL
owner

Get and set the owner of a dataset
newSlide

Append a new slide to a Crunch Deck
noTransforms

Remove transformations from a CrunchCube
aliases

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

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

Escape a regular expression
handleAPIresponse

Do the right thing with the HTTP response
hasFunction

Check if a package has a function installed
pollProgress

Check a Crunch progress URL until it finishes
logout

Kill the active Crunch session
login

DEPRECATED! Authenticate with the Crunch API
loadDataset

Load a Crunch Dataset
weightVariables<-

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

Lock and unlock a dataset for editing
dimension-comparison-pairwise

Pairwise column and row comparison
dimension-comparison

Column and row comparison
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
expressions-internal

Crunch expressions internal
CrunchGeography-class

Geography properties for crunch variables
exportDeck

Export a Crunch Deck
preCrunchBoxCheck

Check if a dataset will make a good CrunchBox
owners

See who owns these datasets
palettes

Get the palettes from a crunch object
generateWeightEntry

popSize

Get and set the market size for Crunch datasets
margin-translation

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

Make a CrunchBox
prepareDataForCrunch

Translate a data.frame to Crunch format
crunch_sitrep

Crunch situation report
derivation

Get or set a derived variable's expression
deleteVariables

Delete Variables Within a Dataset
dropRows

Permanently delete rows from a dataset
duplicated

"duplicated" method for Crunch objects
datasets

Get a catalog of datasets
rmdir

Delete a folder
retry

Retry
titles

Manipulate deck titles
ensureValidCase

Validate case statements for case variables
dichotomize

Indicate how categories represent a dichotomized value
describe-entity

Name, alias, and description for Crunch objects
embedCrunchBox

Get HTML for embedding a CrunchBox
matchCatToFeat

Match categories with features from geodata
runCrunchAutomation

Run a crunch automation script
saveVersion

Create a new saved version
newFilter

Create a new filter
shojiURL

Get a resource URL from a Shoji Object
scripts

Crunch Automation scripts entities for a dataset
scoreCatToFeat

Score similarity between a feature dataframe and categories
index

Get the body of a Catalog
subtypeInsertion

Convert from Insertion to Insertion subtypes
setEntitySlot

Base setter for Crunch objects
tabBook

Compute a Tab Book
setupCrunchAuth

Helper for switching between API keys and urls
share

Share a dataset
setEntitySlotWrapBody

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

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

View and set exclusion filters
fortify

Fortify crunch objects for use with ggplot
filters

Get or set a dataset's filters
joinDatasets

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

Export a dataset to a file
grabRowInd

grab row indicators for subsetting crdfs
length

Length of Crunch objects
flattenOrder

Remove nesting of groups within an order/group
generateNumCutLabels

Generate Labels for the cut function
entity

Methods for ShojiTuples
as.Text

as.* methods for variables
table

Table function for Crunch objects
tabbook-dim

TabBookResult and MultitableResult dimension
grouped

Get grouped or ungrouped OrderGroups
variableMetadata

Get all variable metadata for a dataset
with-context-manager

Context manager's "with" method
mergeFork

Merge changes to a dataset from a fork
merge

Merge a CrunchDataFrame
publicFolder

Hide/Unhide or Privatize/Deprivatize Variables
http-methods

HTTP methods for communicating with the Crunch API
listDatasets

Get the names of datasets in a project
listDatasetGadget

Open dataset selector
unshare

Revoke a user's access to a dataset
newDatasetByColumn

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

Upload a file to Crunch to make a new dataset
urls,ShojiCatalog-method

Get the URLs contained in a Catalog or Order object
makeArrayGadget

Array builder
write.csv.gz

Write CSV to a compressed file
makeCaseVariable

Make a case variable
multitables

Multitable entities for a dataset
notifyIfNewVersion

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

Add a new markdown slide to a deck
index.table

Calculate an index table for a CrunchCube
refresh

Get a fresh copy from the server
interactVariables

Create a variable by interacting categorical variables
removeEmptyGroups

Remove OrderGroups with no entities
ordering

Get and set VariableOrder
reorderSlides

Reorder slides in a CrunchDeck
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
replaceCharWithNumeric

Transform character vectors into indices
mv

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

Create a categorical or numeric variable based on conditions
makeDimTransform

Helper for creating slide dimension transformations for dashboards and exports
na.omit

Omit missing categories
members

Manage access to datasets and other objects
me

My user entity
pk

Get and set the primary key for a Crunch dataset
newDataset

Upload data to Crunch to make a new dataset
pendingStream

Get the pending streams for a dataset
newMultitable

Create a new Multitable
reassignUser

Reassign all Crunch objects from a user
projects

List project folders
replaceMissingWithTRUE

Replace missing elements with TRUE
resetPassword

Reset your password
searchDatasets

Search Crunch for datasets.
self

Get the URL of this object
newProject

Create a new folder
session-extract

Extract catalogs from a Session object
serialPaste

Make a prose list
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
resolution

Methods for Datetime variable resolutions
setNames

Change the name of the entities in a catalog
setOrder

Change the order of entities in folder
shojifyDatasetMetadata

Wrap variable metadata inside a dataset entity
streamRows

Stream data to a Crunch dataset
setCrunchAPI

Change which server to point to
restoreVersion

Restore a dataset to a previously saved version
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
session

Get various catalogs for your Crunch session
team

Share Crunch assets with a team
showTransforms

Show transformations on a Crunch object
streaming

Set the streaming property of a dataset
email

Extract the email from a User Entity
users

Get information about users who have access to a dataset
temp.options

Set some global options temporarily
show

Show methods for Crunch objects
toVariable

Generic method for converting objects to Crunch representations
skipMissingCategories

Handle missing categories in CrunchCube
tokenAuth

Add an auth token manually
type

Change Crunch variable types
unbind

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

Persist to disk a prepared data.frame and metadata
tojson-crunch

toJSON methods for Crunch objects
variables

Access a catalog of variables
versions

Access the saved versions of a dataset
translateCubeIndex

Translate user facing cube subset to programmatic cube subset
webApp

View a Crunch Object in the Web Application
weightVariables

Get a dataset's weightVariables
which

"which" method for CrunchLogicalExpr
var-categories

Get and set Categories on Variables
validateNamesInDims

error iff the names are not a dimension in the cube provided
is.weight<-

Dataset weights