Learn R Programming

fbRanks (version 2.0)

fbRanks.utility.functions: Helper Functions in the fbRanks Package

Description

Helper functions not exported for users.

Usage

str_strip.white(string, sub = " ") str_proper(string) str_remove.nonascii(string, sub = "") str_remove(string, start = 1L, end = -1L, sub = "") detect.normality.outliers(x,alpha=0.05) scale.for.ranks(type = 1, base = 2, silent = TRUE, str.disp.mult=1)

Arguments

string
A character vector.
start, end
Location of where to start and end for removing characters.
x
A vector of numbers
alpha
A significance level.
type
Type of scale.
sub
What to replace the removed characters with.
base
The base to which to scale the total strength. By default it is base(2). You want this to match the base used in your print call.
silent
Whether to output the scale to the console (silent=FALSE).
str.disp.mult
Multiply the strength numbers in the column names by this number.

Value

str_strip.white returns a vector with the extra white space striped.detect.normality.outliers returns a vector of TRUE, FALSE values.scale.for.ranks will return the simulations used to construct the scale if the output is assigned to a variable. team.name.select calls up a GUI that allows the user to select the team name from a list or input a new team name.

Details

str_strip.white strips ending and internal extra white space. str_proper does proper capitalization. str_remove.nonascii remove non-ascii characters from strings. str_remove remove characters from strings. Like sub but removes the specified characters between start and end. detect.normality.outliers detects the values that violate normality to a particular alpha level. scale.for.ranks prints a scale for fbRanks ratings.