Editing the attributes in a table is quite simple. Simply double click the attribute you'd like to edit and a dialog will be displayed which allows you to make changes. You can then save or discard the changes. Geometry information for a feature can also be edited. In this exercise you will use the CartoDB Table view to edit the attributes of a table. Step 1: Login to CartoDB
•
Go to http://cartodb.com and login to your account.
Step 2: Examine the Table to be Edited •
For this exercise you will use the city_of_austin_schools table that you imported in a previous exercise. Open this table in Table view.
•
From the CartoDB dashboard select the Maps dropdown and then Your datasets.
• Click city_of_austin_schools and display this dataset in Data View.
Step 3: Add a Column to the Table In this step you’ll add a column to the table that will hold the city where the school is located. • Click the ‘address’ column and select ‘Add new column’. This will ensure that the new column that is created will be placed adjacent to the ‘address’ column.
•
This will add a new column with a default name as seen in the screenshot below. All the records will be set to ‘null’.
• Rename the column to ‘city’ and click the Enter key on your keyboard.
Step 4: Edit Rows In this step you’ll add some attributes to the new column you created in the last step. •
Double click the cell in the first row of the table under the ‘city’ column.
•
Add the text ‘Austin’ and click the ‘Save’ button.
•
Repeat this process with the first few rows as seen in the screenshot below.
Step 5: Change the Data Type In this step you’ll change the data type of a column. • Scroll toward the right end of the tableuntil you find the field ‘verified’. Currently this column is set up to hold data of type ‘string’.
• Click the down arrow at the end of the ‘verified’ column and select ‘Change data type’.
• Select ‘boolean’ and then OK the change.
• Values will be changed to either ‘true’ or ‘false’ depending upon
whether the string was ‘y’ or ‘n’.
Step 6: Delete a Column In this step you’ll delete the column you created earlier. • Find the ‘city’ column • Select the down arrow. • Select ‘Delete this column’ and confirm the deletion.