R/guide.data.frames.R

Defines functions guide.data.frames

Documented in guide.data.frames

#' Sabali Guide: Data Frames
#'
#' This function activates the Sabali Help Guide for Operators
#' @param activate Do you need help? Defaults to TRUE.
#' @keywords help
#' @export
#' @examples
#' guide.data.frames()
 
guide.data.frames <- function(activate = TRUE){
if(activate == TRUE){

guide.dataframes <- data.frame("Description" = c("All Rows & All Columns", "1st Row & All Columns", "1st 2 Rows & All Columns", "1st & 3rd Row & All Columns", "1st Row & 2nd & 3rd Column", "1st, 2nd Row & 2nd & 3rd Column", "1st Column w/ All Rows", "1st & 3rd Column w/ All Rows"), "Command" = c(paste0("df[,]"), paste0("df[1,]"), paste0("df[1:2,]"), paste0("df[c(1,3),]"), paste0("df[1, 2:3]"), paste0("df[1:2, 2:3]"), paste0("df[, 1]"), paste0("df[,c(1,3)]")))

print(guide.df)

} else {

print("Cannot Access Guide")

}
}
sabalicodev/sabali documentation built on Jan. 13, 2020, 2:22 p.m.