systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baeriswyl Kuno (IT-SWE-CC1-JV6)" <kuno.baeris...@sbb.ch>
Subject which() Function in SystemML
Date Thu, 05 Jul 2018 12:29:44 GMT
Hello,

I'm a developer want to use SystemMl for running R-Code from our business people on a Spark
cluster.

I've studied http://apache.github.io/systemml/dml-language-reference , however, haven't found
a implementation of the R function "which" or any alternative functionality. Has anyone an
idea how I could

# Given
v = c(1,4,NA,2, 5, NA)

# Expect indexes where value meets condition =  int[] 2 5
v2 = which(v>2)

# Expect indexes where is.na returns TRUE =   int[] 3 6
v3 = which(is.na(v))

I've already considered the functions replace() and removeEmpty(), but they don't exactly
meets my needs.

Thanks a lot in advance
Kuno

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message