Reputation: 6488
I am trying to understand a piece of code in R and need to confirm my understanding.
The df
has following variables: signal
, actualPos
and neighbour
The code is as follows:
res = df[,calculateDistance(signal), by=list(actualPos, neighbour)]
Does it mean that the data is first grouped by actualPos
and neighbour
and then the function calculateDistance
is applied on signal
?
Upvotes: 0
Views: 64