powered by
This function extracts the names of the datasets provided in the input files. If specific data names are provided, they are used, otherwise the function tries to extract the names from the files themselves.
name_data(files_data, data_names = NULL)
A vector of dataset names.
A vector of file paths or list of data frames.
A vector of names to be assigned to datasets.
name_data(files_data = c("path/to/data1.csv", "path/to/data2.csv")) name_data(files_data = c("path/to/data.xlsx"), data_names = c("sheet1", "sheet2"))
Run the code above in your browser using DataLab