Main Content

partitionByIndex

Class: matlab.io.datastore.PartitionableByIndex
Namespace: matlab.io.datastore

(Not recommended) Partition 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.

Tips

Version History

Introduced in R2018a

collapse all