Hello,

I have been trying to use an equivalent of the “table” R function in SciDB-R, without success. For example, the following standard R code:

x <- c(1, 2, 1, 1, 2)

table(x)

x

1 2

3 2

Produces a table of number of appearances of each value. 1 appears twice, and 2 appears three times. How can I do this from SciDB-R? I found an example in the AFL query language, but could not find a way to do this in R.

I would like to use this to count occurrences in each row of a two dimensional matrix.

Thanks,

Ohad.