choix.data | R Documentation |
choix.data(data = NULL, info = TRUE, nom = FALSE)
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 ? |
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.
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.
Nicolas Stefaniak
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.