list_files | R Documentation |
The function takes all the files and organises them in a list with one element per ID, containing all the files for that ID.
list_files(files)
files |
a character vector of all the files |
How to use: Collect all files in a folder, and name them VARIABLE_GROUP_ID, where ID is numeric and group is characters. Make a character vector of all the filepaths using the [list.files()] function, and then pass that vector to list_files().
See example
a named list of data filepaths
List of all files using list.files() allfiles <- list.files(path = "PATH TO FILES", pattern = ".txt") Make list containing one element per ID, which can be passed to [create_data()] animals <- list_files(allfiles)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.