Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create a data resource definition notebook from data in a directory
ResourceFunction["DataResourceFromDirectory"][dir] opens a data resource definition notebook prefilled using data from the directory dir. |
"Name" | derived from the directory |
"Description" | derived from the directory |
"Data Definitions" | element created from each data file |
Build a directory with data files in it:
In[1]:= |
Create a data resource definition notebook prefilled by the directory:
In[2]:= |
Out[2]= |
Create a (possibly large) data resource definition notebook from ExampleData content:
In[3]:= |
Out[3]= |
When multiple files have the same FileBaseName, the notebook will assign the same name to all the content elements:
In[4]:= |
Create a data resource definition notebook:
In[5]:= |
Out[5]= |
Manually modify the element names to make a valid resource:
Build a directory with data files in it:
In[6]:= |
Create a data resource definition notebook:
In[7]:= |
Out[7]= |
Create a ResourceObject and retrieve the data using ResourceData:
In[8]:= |
Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License