Main Content

La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.

Tables

Tableaux dont les colonnes nommées peuvent être de différents types

Le type de données table convient aux données orientées colonnes ou tabulaires qui sont souvent stockées sous forme de colonnes dans un fichier texte ou une feuille de calcul. Les tables se composent de lignes et de variables orientées colonnes. Les variables d’une table peuvent être de différents types de données et de différentes tailles mais elles doivent toutes comporter le même nombre de lignes. Pour plus d’informations, consultez Create Tables and Assign Data to Them ou regardez la vidéo Tables and Categorical Arrays (Tables et tableaux catégoriels).

Fonctions

développer tout

tableTable array with named variables that can contain different types
array2tableConvert homogeneous array to table
cell2tableConvert cell array to table
struct2tableConvert structure array to table
table2arrayConvert table to homogeneous array
table2cellConvert table to cell array
table2structConvert table to structure array
table2timetableConvert table to timetable
timetable2tableConvert timetable to table
vartypeSubscript into table or timetable by variable type
convertvarsConvert table or timetable variables to specified data type

Importation et exportation de base

readtableCreate table from file
writetableWrite table to file

Définir des règles d’importation

detectImportOptionsCreate import options based on file content
spreadsheetImportOptionsImport options object for Spreadsheets
getvaroptsGet variable import options
setvaroptsSet variable import options
setvartypeSet variable data types
previewPreview eight rows from file using import options

Fichiers Parquet

parquetreadRead columnar data from a Parquet file (depuis R2019a)
parquetwriteWrite columnar data to Parquet file (depuis R2019a)
parquetinfoGet information about Parquet file (depuis R2019a)
summaryPrint summary of table, timetable, or categorical array
heightNumber of table rows
widthNumber of table variables
istableDetermine if input is table
istabularDetermine if input is table or timetable (depuis R2021b)
headGet top rows of array or table
tailGet bottom rows of array or table
stackedplotStacked plot of several variables with common x-axis

Trier

sortrowsSort rows of matrix or table
uniqueUnique values in array
issortedrowsDetermine if matrix or table rows are sorted
topkrowsTop rows in sorted order

Filtrer les lignes et les variables

rowfilterSelectively import rows of interest (depuis R2022a)
vartypeSubscript into table or timetable by variable type

Réorganiser les variables

addvarsAdd variables to table or timetable
renamevarsRename variables in table or timetable (depuis R2020a)
movevarsMove variables in table or timetable
removevarsDelete variables from table or timetable
splitvarsSplit multicolumn variables in table or timetable
mergevarsCombine table or timetable variables into multicolumn variable
convertvarsConvert table or timetable variables to specified data type

Redimensionner

rows2varsReorient table or timetable so that rows become variables
stackStack data from input table or timetable into one variable in output table or timetable
unstackUnstack data from single variable into multiple variables
inner2outerInvert nested table-in-table hierarchy in tables or timetables

Personnaliser les propriétés

addpropAdd custom properties to table or timetable
rmpropRemove custom properties from table or timetable

Joindre en utilisant des variables clés

joinCombine two tables or timetables by rows using key variables
innerjoinInner join between two tables or timetables
outerjoinOuter join between two tables or timetables

Opérations sur des ensembles

unionSet union of two arrays
intersectSet intersection of two arrays
ismemberArray elements that are members of set array
setdiffSet difference of two arrays
setxorSet exclusive OR of two arrays
anymissingDetermine if any array element is missing (depuis R2022a)
ismissingFind missing values
standardizeMissingInsert standard missing values
rmmissingRemove missing entries
fillmissingFill missing entries
pivotSummarize tabular data in pivoted table (depuis R2023a)
groupcountsNumber of group elements (depuis R2019a)
groupfilterFilter by group (depuis R2019b)
groupsummaryGroup summary computations
grouptransformTransform by group
findgroupsFind groups and return group numbers
splitapplySplit data into groups and apply function
rowfunApply function to table or timetable rows
varfunApply function to table or timetable variables
vartypeSubscript into table or timetable by variable type
convertvarsConvert table or timetable variables to specified data type

Applications

Data CleanerPreprocess and organize column-oriented data (depuis R2022a)

Tâches du Live Editor

Compute by GroupSummarize, transform, or filter by group in the Live Editor (depuis R2021b)
Join TablesCombine two tables using key variables in the Live Editor (depuis R2019b)
Stack Table VariablesCombine values from multiple table variables into one table variable in the Live Editor (depuis R2020a)
Unstack Table VariablesDistribute values from one table variable to multiple table variables in the Live Editor (depuis R2020a)

Rubriques