Data Science for Psychologists


[Up] [Top]

Documentation for package ‘ds4psy’ version 0.2.0

Help Pages

capitalize capitalize converts the case of each word's 'n' initial characters (typically to 'upper') in a string of text 'x'.
caseflip caseflip flips the case of characters in a string of text 'x'.
coin Flip a fair coin (with 2 sides "H" and "T") n times.
count_char count_char counts the frequency of characters in a string of text 'x'.
cur_date Current date (in yyyy-mm-dd or dd-mm-yyyy format).
cur_time Current time (in hh:mm or hh:mm:ss format).
data_1 Data import data_1.
data_2 Data import data_2.
data_t1 Data table data_t1.
data_t1_de Data import data_t1_de.
data_t1_tab Data import data_t1_tab.
data_t2 Data table data_t2.
data_t3 Data table data_t3.
data_t4 Data table data_t4.
dice Throw a fair dice (with a given number of sides) n times.
dice_2 Throw a questionable dice (with a given number of sides) n times.
ds4psy.guide Opens user guide of the ds4psy package.
exp_wide Data exp_wide.
falsePosPsy_all False Positive Psychology data.
fame Data table fame.
is.wholenumber Test for whole numbers (i.e., integers).
l33t_rul35 l33t_rul35 provides rules for translating into leet/l33t slang.
make_grid Generate a grid of x-y coordinates (as a tibble).
num_as_char Convert a number into a character sequence.
num_as_ordinal Convert a number into an ordinal character sequence.
outliers Outlier data.
pal_ds4psy ds4psy default color palette.
pal_n_sq Get n-by-n dedicated colors of a color palette.
pi_100k Data: 100k digits of pi.
plot_fn A function to plot a plot.
plot_fun Another function to plot some plot.
plot_n Plot n tiles.
plot_text Plot text characters (from file or user input).
plot_tiles Plot n-by-n tiles.
posPsy_AHI_CESD Positive Psychology: AHI CESD data.
posPsy_long Positive Psychology: AHI CESD corrected data (in long format).
posPsy_p_info Positive Psychology: Participant data.
posPsy_wide Positive Psychology: All corrected data (in wide format).
read_ascii read_ascii parses text (from a file) into a tibble.
sample_dates Draw a sample of n random dates (from a given range).
sample_times Draw a sample of n random times (from a given range).
t3 Data table t3.
t4 Data table t4.
table6 Data table6.
table7 Data table7.
table8 Data table8.
tb Data table tb.
theme_ds4psy ds4psy default plot theme (using ggplot2 and unikn).
transl33t transl33t text into leet slang.
what_date What date is it?
what_day What day is it?
what_month What month is it?
what_time What time is it?
what_week What week is it?
what_year What year is it?