powered by
Applies a function over all objects of a specific class in the global environment
workspace_sapply(object_class, action = "summary")
Results of the function
Class of the objects where the function is to be applied
Name of the function to apply
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
Run the code above in your browser using DataLab