Tables
table
is a data type suitable for column-oriented or tabular data that is often stored as columns in a text file or in a spreadsheet. Tables consist of rows and column-oriented variables. Each variable in a table can have a different data type and a different size with the one restriction that each variable must have the same number of rows. For more information, seeCreate Tables and Assign Data to Themor watchTables and Categorical Arrays.
Functions
Live Editor Tasks
Compute by Group | Summarize, transform, or filter by group in the Live Editor |
Join Tables | Combine two tables using key variables in the Live Editor |
Stack Table Variables | Combine values from multiple table variables into one table variable in the Live Editor |
Unstack Table Variables | Distribute values from one table variable to multiple table variables in the Live Editor |
Topics
- Create Tables and Assign Data to Them
There are several ways to create tables and assign data to them. You can create tables from input arrays, preallocate tables and fill them in later, or import tables from text files or spreadsheets.
- Add and Delete Table Rows
- Add, Delete, and Rearrange Table Variables
- Clean Messy and Missing Data in Tables
- Modify Units, Descriptions, and Table Variable Names
- Add Custom Properties to Tables and Timetables
- Convert Text in Table Variables to Categorical
- Using Row Labels in Table and Timetable Operations
- Define Import Options for Tables
- Access Data in Tables
Indexing into tables with parentheses, dot notation, and curly braces accesses table data in different ways. You can use indexing to create a table that is a subset of a larger table or to create an array from data in a table.
- Plots That Support Tables
Create plots by passing tables directly to plotting functions.
- Calculations on Data in Tables
Perform arithmetic operations and call functions on data or groups of data in tables.
- Advantages of Using Tables
Use tables to store mixed-type data conveniently, access data with numeric or named indexing, and to store metadata.
- Changes to DimensionNames Property in R2016b
表可以提高兼容性警告, and change dimension names, when you modify the DimensionNames property.