import_fun {importar}R Documentation

This function imports/loads functions as in 'Python', i.e., “from package import function as alias”

Description

This function imports/loads functions as in 'Python', i.e., “from package import function as alias”

Usage

import_fun(package, fun, alias)

Arguments

package

Package name (unquoted).

fun

Function name (unquoted).

alias

Alias (unquoted) for the function.

Examples

import_fun(dplyr, filter, fil)
df <- data.frame(a=1:3, b=4:6)
fil(df, a == 2)

[Package importar version 0.1.1 Index]