merged.stack
(Package: splitstackshape) :
Take a List of Stacked data.tables and Merge Them
A wrapper around the Stacked function to merge the resulting list into a single data.table .
● Data Source:
CranContrib
● Keywords:
● Alias: merged.stack
●
0 images
|
concat.split.expanded
(Package: splitstackshape) :
Split Concatenated Values into their Corresponding Column Position
"Expand" concatenated numeric or character values to their relevant position in a data.frame or data.table or create a binary representation of such data.
● Data Source:
CranContrib
● Keywords:
● Alias: cSplit_e, concat.split.expanded
●
0 images
|
Names
(Package: splitstackshape) :
Dataset Names as a Character Vector, Always
A convenience function using either character vectors or numeric vectors to specify a subset of names of a data.frame .
● Data Source:
CranContrib
● Keywords:
● Alias: Names
●
0 images
|
getanID
(Package: splitstackshape) :
Add an "id" Variable to a Dataset
Many functions will not work properly if there are duplicated ID variables in a dataset. This function is a convenience function for .N from the "data.table" package to create an ".id " variable that when used in conjunction with the existing ID variables, should be unique.
● Data Source:
CranContrib
● Keywords:
● Alias: getanID
●
0 images
|
stratified
(Package: splitstackshape) :
Take a Stratified Sample From a Dataset
The stratified function samples from a data.frame or a data.table in which one or more columns can be used as a "stratification" or "grouping" variable. The result is a new data.table with the specified number of samples from each group.
● Data Source:
CranContrib
● Keywords:
● Alias: stratified
●
0 images
|
Flattens a column stored as a list into a wide form.
● Data Source:
CranContrib
● Keywords:
● Alias: listCol_w
●
0 images
|
othernames
(Package: splitstackshape) :
Extract All Names From a Dataset Other Than the Ones Listed
A convenience function for setdiff(names(data), -some_vector_of_names-) .
● Data Source:
CranContrib
● Keywords:
● Alias: othernames
●
0 images
|
FacsToChars
(Package: splitstackshape) :
Convert All Factor Columns to Character Columns
Sometimes, we forget to use the stringsAsFactors argument when using read.table and related functions. By default, R converts character columns to factors. Instead of re-reading the data, the FacsToChars function will identify which columns are currently factors, and convert them all to characters.
● Data Source:
CranContrib
● Keywords:
● Alias: FacsToChars
●
0 images
|
charMat
(Package: splitstackshape) :
Create a Binary Matrix from a List of Character Values
Create a binary matrix from a list of character values
● Data Source:
CranContrib
● Keywords:
● Alias: charMat
●
0 images
|
NoSep
(Package: splitstackshape) :
Split Basic Alphanumeric Strings Which Have No Separators
Used to split strings like "Abc8" into "Abc" and "8".
● Data Source:
CranContrib
● Keywords:
● Alias: NoSep
●
0 images
|