1) cnt2 is a two-dimensional matrix
From the code you pointed out, it really is a 2-dimensional structure of some type (itβs quite possible the matrix).
2) cnt2.2 is a new variable declared with the period '.' used in the same way as an alphabetic character.
Correctly.
3) <- task.
Correctly.
4) [, -1] refers to the part of the array. I thought that [, 5] means all rows, only the 5th column. If this is correct, I do not know what -1 means.
[,-1] selects all columns except column 1. Note that, unlike C ++, indexes in R start from one, not from zero.
NPE
source share