Label Data Frames, Variables, and Values


[Up] [Top]

Documentation for package ‘labelr’ version 0.1.7

Help Pages

A C D F G H I L M R S T U V W

-- A --

add1m1 Apply One Label to Multiple Values for a Single Variable
add_factor_info Add Factor-specific Attributes to a Data Frame
add_frame_lab Add or Modify a Data Frame "Frame Label"
add_lab_atts Add labelr Attributes from a list to a Data Frame
add_lab_col1 Create a Value Labels Column for a Single Variable and Add to the Data Frame
add_lab_cols Add Variable Value Label Columns to a Data Frame
add_lab_dumm1 Add A Dummy Variable for Each Value Label of a Single Variable
add_lab_dummies Add A Dummy Variable for Each Value Label
add_m1_lab Apply One Label to Multiple Values
add_name_labs Add or Modify Data Frame Variable Name Labels
add_quant1 Associate Numerical Threshold-based Value Labels with a Single Numerical Variable
add_quant_labs Associate Numerical Threshold-based Value Labels with Select Numerical Variables
add_val1 Add or Modify a Single Variable's Value Labels
add_val_labs Add or Modify a Variable's Value Labels
adf Convert Augmented Data Frame to Base R Data Frame
adf2 Convert Augmented Data Frame to Base R Data Frame with Alternate Defaults
afl Add or Modify a Data Frame "Frame Label"
alb Retrieve Variable's Name Label for Plot Labeling
alc Add Variable Value Label Columns to a Data Frame
alc1 Create a Value Labels Column for a Single Variable and Add to the Data Frame
ald Add A Dummy Variable for Each Value Label
ald1 Add A Dummy Variable for Each Value Label of a Single Variable
aldf Assign Class labeled.data.frame to a Data Frame Object
allq Add Quantile-based Value Labels to All Numeric Vars that Meet Specifications
all_quant_labs Add Quantile-based Value Labels to All Numeric Vars that Meet Specifications
all_uniquev Are All Values in a Free-standing Vector Unique?
all_univ Are All Values in a Free-standing Vector Unique?
am1l Apply One Label to Multiple Values
anl Add or Modify Data Frame Variable Name Labels
aql Associate Numerical Threshold-based Value Labels with Select Numerical Variables
aql1 Associate Numerical Threshold-based Value Labels with a Single Numerical Variable
as_base_data_frame Convert Augmented Data Frame to Base R Data Frame
as_base_data_frame2 Convert Augmented Data Frame to Base R Data Frame with Alternate Defaults
as_labeled_data_frame Assign Class labeled.data.frame to a Data Frame Object
as_num Convert all Suitable Character Variables to Numeric
as_numv Convert a Suitable Character Vector to Numeric
avl Add or Modify a Variable's Value Labels
avl1 Add or Modify a Single Variable's Value Labels
axis_lab Retrieve Variable's Name Label for Plot Labeling

-- C --

check_any_lab_atts Check Whether Data Frame Has Any labelr Attributes
check_class Determine If Vector Belongs to Any of Specified Classes
check_irregular Check Vector for "Irregular" Values
check_labs_att Check Data Frame for Specified labelr Attribute
clean_data_atts "Clean" Data Frame Attributes
convert_labs Convert from Haven-style to labelr Variable Value Labels
copy_var Copy a Data Frame Variable and its Value labels to Another Variable

-- D --

dfl Remove Frame Label Attribute from a Data Frame
dnl Remove Name Label Attributes from a Data Frame
drop_frame_lab Remove Frame Label Attribute from a Data Frame
drop_name_labs Remove Name Label Attributes from a Data Frame
drop_val1 Drop a Single Variable's Value Labels
drop_val_labs Drop Value Labels from One or More Variables
dvl Drop Value Labels from One or More Variables
dvl1 Drop a Single Variable's Value Labels

-- F --

f2c Convert All Factor Variables of a Data Frame to Character Variables
f2int Convert a Factor Variable Column to Value-labeled Integer Variable Column
fact2char Convert All Factor Variables of a Data Frame to Character Variables
factor_to_lab_int Convert a Factor Variable Column to Value-labeled Integer Variable Column
flab Filter Data Frame Rows Using Variable Value Labels

-- G --

get_all_factors Put Data Frame Factor Level Information into a List
get_all_lab_atts Put all Data Frame label attributes into a List
get_factor_atts Get Factor Attributes from a Labeled Data Frame
get_factor_info Return Factor Attributes as a Data Frame
get_frame_lab Return a Data Frame's Frame Label
get_labs_att Return Specified Label Attribute, if Present
get_name_labs Return Look-up Table of Variable Names and Name Labels
get_val_lab1 Return Look-up Table of One Variable's Value Labels
get_val_labs Return Look-up Table of Variable Values and Value Labels
gfl Return a Data Frame's Frame Label
gnl Return Look-up Table of Variable Names and Name Labels
greml Determine Which Pattern Elements of One Character Vector Are Found in at Least One Element of A Second Character Vector
gremlr Determine Which Elements of a Character Vector Match at Least One Pattern Contained in Any of the Elements of Another Character Vector
gvl Return Look-up Table of Variable Values and Value Labels
gvl1 Return Look-up Table of One Variable's Value Labels

-- H --

h11l Is This a 'add_val_labs()'-style Value-labeled Variable (Column)?
has_avl_labs Is This a 'add_val_labs()'-style Value-labeled Variable (Column)?
has_decv Determine if Vector Has Decimals
has_m1_labs Is This an 'add_m1_lab()' Many-to-One-Style Value-labeled Variable (Column)?
has_quant_labs Is this an 'add_quant_labs()'-style Value-labeled Variable (Column)?
has_val_labs Is This a Value-labeled Variable (Column)?
headl Return First Rows of a Data Frame with Value Labels Visible
hm1l Is This an 'add_m1_lab()' Many-to-One-Style Value-labeled Variable (Column)?
hql Is This a 'add_val_labs()'-style Value-labeled Variable (Column)?
hvl Is This a Value-labeled Variable (Column)?

-- I --

init_labs Initialize labelr Attributes
int2f Convert a Value-labeled Integer Variable Column to a Factor Variable Column
irregular2 Convert All "Irregular" Data Frame Values to NA or Other Specified Value
irregular2v Replace "Irregular" Values of a Vector with Some Other Value
is_numable Test Whether Character Vector Is "Suitable" for Numeric Conversion

-- L --

lab_int_to_factor Convert a Value-labeled Integer Variable Column to a Factor Variable Column

-- M --

make_demo_data Construct a Fake Demographic Data Frame
make_likert_data Construct a Fake Likert Survey Response Data Frame

-- R --

recode_vals Recode Values of a Free-standing Vector
restore_factor_info Restore Factor Status, Levels to a Character Column of a Labeled Data Frame

-- S --

sbrac Safely Extract Elements of a Labeled Data Frame
scbind Safely Combine Data Frames Column-wise
schange Safely Change or Add a Data Frame Variable (Column)
sdrop Safely Drop Specified Columns of a Labeled Data Frame
sfilter Safely Filter Rows of a Labeled Data Frame
sgen Safely Generate a Data Frame Variable (Column)
slab Subset a Data Frame Using Value Labels
smerge Safely Merge Two Data Frames
somel Return a Random Sample of Data Frame Rows with Value Labels Visible
sort_val_labs Sort Ascending Any Variable Value Labels
srbind Safely Combine Data Frames Row-wise
srename Safely Rename a Variable and Preserve Its Value Labels
sreplace Safely Replace a Data Frame Variable (Column)
sselect Safely Select Specified Columns of a Labeled Data Frame
ssort Safely Sort (Re-order) a Labeled Data Frame
ssubset Safely Subset a Labeled Data Frame
strip_labs Strip All labelr Meta-data from a Data Frame

-- T --

tabl Construct Value Label-Friendly Frequency Tables
taill Return Last Rows of a Data Frame with Value Labels Visible
transfer_labs Transfer Labels from One Variable (Column) Name to Another

-- U --

unl Swap Name Labels for Variable Names
use_name_labs Swap Name Labels for Variable Names
use_val_lab1 Replace a Single Data Frame Column's Values with Its Value Labels
use_val_labs Swap Variable Value Labels for Variable Values
use_var_names Swap (back) Original Variable Names for Name Labels
uvl Swap Variable Value Labels for Variable Values
uvl1 Replace a Single Data Frame Column's Values with Its Value Labels
uvn Swap (back) Original Variable Names for Name Labels

-- V --

v Specify Column Names without Quoting Them
val_labs_vec Replace a Variable's Values with Its Value Labels and Return as a Vector
vlv Replace a Variable's Values with Its Value Labels and Return as a Vector

-- W --

wbl Overlay Variable Name and Value Labels Onto Arbitrary R Function Calls
with_both_labs Overlay Variable Name and Value Labels Onto Arbitrary R Function Calls
with_name_labs Overlay Variable Name Labels Onto Arbitrary R Function Calls
with_val_labs Evaluate an Expression in a Value Labels-on Data Environment
wnl Overlay Variable Name Labels Onto Arbitrary R Function Calls
wvl Evaluate an Expression in a Value Labels-on Data Environment