SPLoadPackages: SPLoadPackages

View source: R/SPLoadPackages.R

SPLoadPackagesR Documentation

SPLoadPackages

Description

Function which compares two dataframes (the second with only a single row) column-wise, yielding a Boolean vector of equality between the two. Can be used to select a specific row out of the first (Data), which corresponds in some columns to the same columns in the second (ComparisonVector).

Usage

SPLoadPackages(packages)

Arguments

packages

A character vector containing the names of packages to load.

Examples

Instead of writing, for example:

if (!require(dplyr)) install.packages('dplyr')
library(dplyr)
if (!require(zoo)) install.packages('zoo')
library(zoo)

one can write

SPLoadPackages(c("dplyr","zoo"))

stpalan/SPTools documentation built on Aug. 21, 2023, 11:21 a.m.