Adding new attributes to a dataset gives you the ability to perform a mathematical operation on a Tuva Dataset or your own dataset. To add a new attribute, follow the steps below.
Steps
- At the bottom of the attribute list in the case card there's a button with a '+' symbol, click this button to begin the process of adding a new attribute. If there are many attributes in the case card, you may have to scroll to the bottom to see the button.
- After clicking the '+' button, the "Add New Attribute" panel will appear over the case card. At this point, you will have to provide a name for your new attribute and a formula. If this is your first time inputting a formula into Tuva's Add Attribute feature, we recommend keeping the formula editor documentation handy. It contains many examples that will help guide the formula you develop.
- From the dropdown menu, select the formula you want and then select the attribute you want to perform the operation on. For example, in the screenshot below, the division formula has been selected and two attributes have been added to the formula text field from the dropdown.
Note: Every time you click on a formula or an attribute from either dropdown menu, that formula and attribute will be added to the formula text field. This is how you may add multiple attributes or include multiple formulas in the formula text field. - Once you've created a formula, click "Save" in the Add New Attribute panel to add save the new attribute to the case card. The new attribute will appear at the bottom of the case card and is ready to use.
If you've imported you're own dataset and are adding new attributes, clicking 'Save' on the plot toolbar will create a new saved version of your dataset. The additional attributes will be saved and available to plot the next time you access this version of your dataset. Even sharing this dataset by making it public will allow others to use your newly added attribute.
Learn more about how to save a new version of the data you imported.
Related Article: