Skip to content

element-wise and object-wide subsetting à la [ #78

@HelenaLC

Description

@HelenaLC
  • what's not straightforward (in my mind) is how to deal with multiscales... e.g., if there arrays of dim. 16x16 8x8 and 4x4, only subsets of 1..4, 5..8, 9..12, 13..16 could be propagated across all scales... will have to see Python's peeps thoughts on this
  • object-wide subsetting should be implementable, in principle, but isn't straightforward either... every element can have a different dimensionality (e.g., 2 for labels and 3 for images) and dimension (e.g., array extend)...
  • one way to implement may be according to these examples...
x["images",,] # get 'x' with images only
x[,1,] # get 'x' with first element of each layer only
x[2,1,list(TRUE, seq(64))] # subset columns of 1st label 
x[1,c(1, 2), list(list(...), list(...))] # subset images 1-2 differently

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions