choix.data: GUI for choosing data.frame. This function is mainly an...

View source: R/choix.data.R

choix.dataR Documentation

GUI for choosing data.frame. This function is mainly an internal function of easieR.GUI

Usage

choix.data(data = NULL, info = TRUE, nom = FALSE)

Arguments

data

Character. Name of a dataframe

info

Should information about the argument be printed in the console?

nom

Logical. Should the name of the dataframe be returned by the function ?

Details

This function is mainly an internal function of easieR.GUI. When the name of a data.frame is provided, the function checks whether the data.frame exists in R memory. If not, a dialog box makes the list of all data.frames in R memory. If data is not stated, a dialog box gives the list of all data.frames in R memory. If no data.frame is in R memory, the function call the import function. If there is only one data.frame in R memory, it is assumed that user wants to work this data.frame.

Value

it returns either the data.frame that has been choosen or a list with the data.frame and the original name of the data.frame depending on whether name is set to FALSE or TRUE.

Author(s)

Nicolas Stefaniak

Examples

data(mtcars)
# return only the data.frame
choix.data() 
# return the name of the data.frame and the data.frame
choix.data(nom=T)
# return the name of the data.frame and the data.frame without dialog box
choix.data(data="mtcars", nom=T)


NicolasStefaniak/easieR documentation built on Jan. 31, 2025, 2:59 p.m.