workspace_sapply: Applies a function over objects of a specific class

View source: R/check_quality.R

workspace_sapplyR Documentation

Applies a function over objects of a specific class

Description

Applies a function over all objects of a specific class in the global environment

Usage

workspace_sapply(object_class, action = "summary")

Arguments

object_class

Class of the objects where the function is to be applied

action

Name of the function to apply

Value

Results of the function

Examples

df1 <- data.frame(x=rnorm(10), y=rnorm(10, 1, 2))
df2 <- data.frame(x=rnorm(20), y=rnorm(20, 1, 2))
workspace_sapply("data.frame", "summary")  #Gives a summary of each data.frame

clickR documentation built on Aug. 8, 2023, 1:11 a.m.