How to count duplicate elements in a vector using R -
I have to type a function that receives 2 arguments in R: first one number = x seconds one vector = 6 required That this function will return the maximum number of straightforward events as similar to X. For example: f (6, c (7,6,6,3,7,9,3,6,6,6,8,9) back 3
You may not need a function
dat < - c (7,6,6,3,7,9,3,6,6,6,8,9) FMX & Lt; - Function (X, VCC) {v Code> fmax & lt; - function (x, vec) {if (x% in% vec) {v
Comments
Post a Comment