Giter Site home page Giter Site logo

utilityscripts's Introduction

utilityScripts

Useful functions for easier R use

Installation

To install the functions from this package simply enter the follow into the R console:
install.packages("devtools")
require(devtools)
devtools::install_github(repo = "AFMSAnalytics/utilityScripts")

You should receive a series of messages with "In R CMD INSTALL" at the end and no error messages. If you receive an error, please let the dev team know here on GitHub. If you receive the message above you can load the library as usual and start using the functions:

library(utilityScripts)

Functions

usePackage()

This function allows the user to enter a package name in quotes, e.g. "ggplot2", and have R evaluate whether the package is already installed or not. If it is not already installed, the function will install it and then load it, otherwise the function will simply load the package.

usePackages()

This function allows the user to enter a list of package names in quotes, e.g. c("ggplot2", "dplyr"), and have R evaluate whether the packages are already installed or not. If they is not already installed, the function will install those missing and then load them, otherwise the function will simply load the packages that are not missing.

multiPlot()

This function allows the user to work more easily with multiple plot objects. Sometimes one wants to quickly produce a single pane of plots with 4 or 6 or 8 plots in it. This function takes a list of plot objects in R, either as c(plot1, plot2, ..., plotn) or as plot1, plot2, ..., plotn, as well as a column argument with a number of columns of plots the pane should have. It then produces the plot matrix in a single pane according to the input arguments.

utilityscripts's People

Contributors

mike-decarlo avatar

Watchers

James Cloos avatar CK avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.