Displaying 1 result from an estimated 1 matches for "766864".
Did you mean:
  762864
  
2013 Jan 28
1
Suggestions for 'diff.default'
I have suggestions for function 'diff.default' in R.
Suggestion 1: If the input is matrix, always return matrix, even if empty.
What happens in R 2.15.2:
> rbind(1:2)    # matrix
     [,1] [,2]
[1,]    1    2
> diff(rbind(1:2))   # not matrix
integer(0)
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United