Miscellaneous helper functions

all_equal | Test a vector (numeric or otherwise) for equivalency across... |

append_objectnames | Append text to object names in the global environment |

average_colors | Determine the numerical average of a vector of colors |

count_NAs | Calculate the number of NAs in an object |

cv | Calculate the coefficient of variation |

find_replace | Find and replace text in object names in the global... |

geomean | Calculate the geometric mean of a numeric vector |

grapes-between-grapes | Test if numbers are within a specified range |

grapes-nin-grapes | Determine non-matches of one vector to another |

grapes-outside-grapes | Test if numbers are outside of a specified range |

is_outlier | Determine outliers |

logit_transform | Transform a vector of proportions using the logit... |

ls_grep | List objects in global environment matching a regex pattern |

ls.objects | Improved listing of objects (from Dirk Eddelbuettel) |

lsos | List the N largest objects in the global environment |

lsp | List package contents |

make_copies | Duplicate objects in the global environment based on names... |

make_copy | Duplicate an object in the global environment |

make_transparent | Add transparency to a vector of colors |

me_labeller | Labeller function for plotting WGCNA modules in facet_grid or... |

order_points | Re-order a data frame for plotting points in ggplot |

pseudo_R2 | Calculate a pseudo R^2 value from a fitted model |

range01 | Normalize a numeric vector to 0-1 range |

read_yn | Prompt user for a yes or no answer Prompt the user for a yes... |

redundant_cols.model.matrix | Determine the redundant columns in a model matrix |

remove_all_NA_rowcols | Trim any rows and/or columns containing all NAs from a matrix... |

rm_grep | Remove objects matching a regex pattern from global... |

rm_tmp | Remove temporary objects from global environment |

se | Calculate the standard error of the mean |

shuffle_designMat_by_group | Shuffle a variable in a design matrix within studies or... |

sig_digs | Calculate the number of significant figures in a number... |

simple_cap | Capitalize the first letter of each element and/or word in a... |

standardize_dimnames | Standardize the column and/or row names of a matrix or data... |

standardize_names | Standardize a character vector to standard syntax... |

values2colors | Convert a vector of numeric values to a vector of colors |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.