partitionByIndex

(Not recommended) Partition a datastore according to indices

partitionByIndex is not recommended. For more information, see Compatibility Considerations.

Syntax

ds2 = partitionByIndex(ds,ind)

Description

ds2 = partitionByIndex(ds,ind) partitions a subset of observations in a datastore, ds, into a new datastore, ds2. The desired observations are specified by indices, ind.

Input Arguments

expand all

Input datastore, specified as a Datastore object.

Indices of observations, specified as a vector of positive integers.

Output Arguments

expand all

Partitioned datastore, returned as a Datastore object.

Attributes

Abstracttrue
AccessPublic

To learn about attributes of methods, see Method Attributes (MATLAB).

Tips

Compatibility Considerations

expand all

Not recommended starting in R2019a

Introduced in R2018a