Some Useful Functions from Spreadsheets and 'SPSS' Statistics


[Up] [Top]

Documentation for package ‘expss’ version 0.5.5

Help Pages

A C D E F G H I K L M N O P Q R S T U V W misc

expss-package expss: Some Useful Functions from Spreadsheets and SPSS Statistics

-- A --

add_rows Add rows to data.frame/matrix/table
add_rows.data.frame Add rows to data.frame/matrix/table
add_val_lab Set or get value labels
add_val_lab<- Set or get value labels
all_in_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
all_in_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
any_in_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
any_in_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
apply_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
apply_col_if Count/sum/average/other functions on values that meet a criterion
apply_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
apply_row_if Count/sum/average/other functions on values that meet a criterion
as.dtfrm Make data.frame without conversion to factors and without fixing names
as.labelled Recode vector into integer vector with value labels

-- C --

category Convert dichotomy matrix/data.frame to matrix/data.frame with category encoding
category_df Convert dichotomy matrix/data.frame to matrix/data.frame with category encoding
compute Experimental functions for operations with default dataset
copy Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS.
count_col_if Count/sum/average/other functions on values that meet a criterion
count_if Count/sum/average/other functions on values that meet a criterion
count_row_if Count/sum/average/other functions on values that meet a criterion
criteria Criteria functions
cro Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
cro_cpct Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
cro_fun Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
cro_fun_df Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
cro_mean Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
cro_median Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
cro_rpct Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
cro_sum Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
cro_tpct Simple frequencies and crosstabs with support of labels, weights and multiple response variables.

-- D --

default_dataset Get or set reference to default dataset. Experimental feature.
dichotomy Convert variable (possibly multiple choice question) to matrix of dummy variables.
dichotomy1 Convert variable (possibly multiple choice question) to matrix of dummy variables.
dichotomy1_df Convert variable (possibly multiple choice question) to matrix of dummy variables.
dichotomy_df Convert variable (possibly multiple choice question) to matrix of dummy variables.
dtfrm Make data.frame without conversion to factors and without fixing names
dummy Convert variable (possibly multiple choice question) to matrix of dummy variables.
dummy_df Convert variable (possibly multiple choice question) to matrix of dummy variables.

-- E --

eq Criteria functions
except Keep or drop elements by name/criteria in data.frame/matrix/list/vector
expss expss: Some Useful Functions from Spreadsheets and SPSS Statistics

-- F --

f Convert labelled variable to factor
fixed Criteria functions
fre Simple frequencies and crosstabs with support of labels, weights and multiple response variables.
from Criteria functions

-- G --

ge Criteria functions
gt Criteria functions
gte Criteria functions

-- H --

hi Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS.

-- I --

ifs Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS.
if_na Replace NA values in vector/data.frame/matrix/list with supplied value
if_na<- Replace NA values in vector/data.frame/matrix/list with supplied value
if_val Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS.
if_val<- Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS.
index_col Match finds value in rows or columns/index returns value by index from rows or columns
index_row Match finds value in rows or columns/index returns value by index from rows or columns
info Provides variables description for dataset

-- K --

keep Keep or drop elements by name/criteria in data.frame/matrix/list/vector

-- L --

le Criteria functions
lo Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS.
lst Make data.frame without conversion to factors and without fixing names
lt Criteria functions
lte Criteria functions

-- M --

make_labels Set or get value labels
match_col Match finds value in rows or columns/index returns value by index from rows or columns
match_row Match finds value in rows or columns/index returns value by index from rows or columns
max_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
max_col_if Count/sum/average/other functions on values that meet a criterion
max_if Count/sum/average/other functions on values that meet a criterion
max_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
max_row_if Count/sum/average/other functions on values that meet a criterion
mean_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
mean_col_if Count/sum/average/other functions on values that meet a criterion
mean_if Count/sum/average/other functions on values that meet a criterion
mean_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
mean_row_if Count/sum/average/other functions on values that meet a criterion
median_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
median_col_if Count/sum/average/other functions on values that meet a criterion
median_if Count/sum/average/other functions on values that meet a criterion
median_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
median_row_if Count/sum/average/other functions on values that meet a criterion
merge.simple_table Merge two tables/data.frames
min_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
min_col_if Count/sum/average/other functions on values that meet a criterion
min_if Count/sum/average/other functions on values that meet a criterion
min_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
min_row_if Count/sum/average/other functions on values that meet a criterion
ml_autonum Set or get value labels
ml_left Set or get value labels
ml_right Set or get value labels
modify Modify data.frame/conditionally modify data.frame
modify_if Modify data.frame/conditionally modify data.frame

-- N --

n2l Replace data.frame/list names with corresponding variables labels.
names2labels Replace data.frame/list names with corresponding variables labels.
na_if Replace certain values with NA
na_if<- Replace certain values with NA
ne Criteria functions
neq Criteria functions
not_na Criteria functions

-- O --

other Criteria functions

-- P --

perl Criteria functions
product_test Data from product test of chocolate confectionary
prop Compute proportions from numeric vector/matrix/data.frame
prop_col Compute proportions from numeric vector/matrix/data.frame
prop_row Compute proportions from numeric vector/matrix/data.frame

-- Q --

qc Create vector of characters from unquoted strings (variable names)

-- R --

read_labelled_csv Write data with labels to file in R code or in SPSS syntax.
read_spss Read an SPSS Data File
read_spss_to_list Read an SPSS Data File
ref Auxiliary functions to pass arguments to function by reference
ref<- Auxiliary functions to pass arguments to function by reference
regex Criteria functions

-- S --

sd_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
sd_col_if Count/sum/average/other functions on values that meet a criterion
sd_if Count/sum/average/other functions on values that meet a criterion
sd_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
sd_row_if Count/sum/average/other functions on values that meet a criterion
set_val_lab Set or get value labels
set_var_lab Set or get variable label
sort_asc Sort data.frames/matrices/vectors
sort_asc<- Sort data.frames/matrices/vectors
sort_desc Sort data.frames/matrices/vectors
sort_desc<- Sort data.frames/matrices/vectors
subst Create vector of characters from unquoted strings (variable names)
sum_col Compute sum/mean/sd/median/max/min/custom function on rows/columns
sum_col_if Count/sum/average/other functions on values that meet a criterion
sum_if Count/sum/average/other functions on values that meet a criterion
sum_row Compute sum/mean/sd/median/max/min/custom function on rows/columns
sum_row_if Count/sum/average/other functions on values that meet a criterion

-- T --

thru Criteria functions
to Criteria functions

-- U --

unlab Drop variable label and value labels
unvl Set or get value labels
unvr Set or get variable label

-- V --

v2l Replace vector/matrix/data.frame/list values with corresponding value labels.
values2labels Replace vector/matrix/data.frame/list values with corresponding value labels.
val_lab Set or get value labels
val_lab<- Set or get value labels
vars Get range of variables/variables by pattern/by name
vars_list Get range of variables/variables by pattern/by name
vars_pattern Get range of variables/variables by pattern/by name
vars_pattern_list Get range of variables/variables by pattern/by name
vars_range Get range of variables/variables by pattern/by name
vars_range_list Get range of variables/variables by pattern/by name
var_lab Set or get variable label
var_lab<- Set or get variable label
vectors Infix operations on vectors - append, diff, intersection, union, replication
vlookup Look up values in dictionary.
vlookup_df Look up values in dictionary.

-- W --

where Subsetting Data Frames
write_labelled_csv Write data with labels to file in R code or in SPSS syntax.
write_labelled_spss Write data with labels to file in R code or in SPSS syntax.
write_labels Write data with labels to file in R code or in SPSS syntax.
write_labels_spss Write data with labels to file in R code or in SPSS syntax.

-- misc --

%a% Infix operations on vectors - append, diff, intersection, union, replication
%add_rows% Add rows to data.frame/matrix/table
%d% Infix operations on vectors - append, diff, intersection, union, replication
%e% Infix operations on vectors - append, diff, intersection, union, replication
%except% Keep or drop elements by name/criteria in data.frame/matrix/list/vector
%i% Infix operations on vectors - append, diff, intersection, union, replication
%if_na% Replace NA values in vector/data.frame/matrix/list with supplied value
%in_col% Count/sum/average/other functions on values that meet a criterion
%in_row% Count/sum/average/other functions on values that meet a criterion
%keep% Keep or drop elements by name/criteria in data.frame/matrix/list/vector
%merge% Merge two tables/data.frames
%modify% Modify data.frame/conditionally modify data.frame
%na_if% Replace certain values with NA
%n_d% Infix operations on vectors - append, diff, intersection, union, replication
%n_i% Infix operations on vectors - append, diff, intersection, union, replication
%r% Infix operations on vectors - append, diff, intersection, union, replication
%sort_asc% Sort data.frames/matrices/vectors
%sort_desc% Sort data.frames/matrices/vectors
%thru% Criteria functions
%to% Get range of variables/variables by pattern/by name
%to_list% Get range of variables/variables by pattern/by name
%u% Infix operations on vectors - append, diff, intersection, union, replication
%where% Subsetting Data Frames
.add_rows Add rows to data.frame/matrix/table
.add_val_lab Experimental functions for operations with default dataset
.compute Experimental functions for operations with default dataset
.cro Experimental functions for operations with default dataset
.cro_cpct Experimental functions for operations with default dataset
.cro_fun Experimental functions for operations with default dataset
.cro_fun_df Experimental functions for operations with default dataset
.cro_mean Experimental functions for operations with default dataset
.cro_median Experimental functions for operations with default dataset
.cro_rpct Experimental functions for operations with default dataset
.cro_sum Experimental functions for operations with default dataset
.cro_tpct Experimental functions for operations with default dataset
.do_if Experimental functions for operations with default dataset
.dtfrm Make data.frame without conversion to factors and without fixing names
.except Keep or drop elements by name/criteria in data.frame/matrix/list/vector
.fre Experimental functions for operations with default dataset
.if_val Experimental functions for operations with default dataset
.keep Keep or drop elements by name/criteria in data.frame/matrix/list/vector
.lst Make data.frame without conversion to factors and without fixing names
.modify Experimental functions for operations with default dataset
.modify_if Experimental functions for operations with default dataset
.recode Experimental functions for operations with default dataset
.set Experimental functions for operations with default dataset
.set_val_lab Experimental functions for operations with default dataset
.set_var_lab Experimental functions for operations with default dataset
.sort_asc Sort data.frames/matrices/vectors
.sort_desc Sort data.frames/matrices/vectors
.val_lab Experimental functions for operations with default dataset
.var_lab Experimental functions for operations with default dataset
.where Subsetting Data Frames
.with Experimental functions for operations with default dataset