So, this is "ibdcoef" table:
Colname ID1 ID2 k0 k1 kinship
33995 22441 OM0131 0.0000000000 0.0000000 0.5000000
176589 41995 38082 0.0000000000 0.0000000 0.5000000
206956 32660 44840 0.0000000000 0.0000000 0.5000000
213655 4913 1619 0.0000000000 0.0000000 0.5000000
216159 2181 1621 0.0000000000 0.0000000 0.5000000
242935 26506 26503 0.0009746209 0.9988834 0.2497918
244709 E02024 28909 0.0000000000 0.0000000 0.5000000
245181 23168 44529 0.0000000000 0.0000000 0.5000000
272140 41673 45589 0.0000000000 0.0000000 0.5000000
276130 MM0010 MM0007 0.2585263289 0.4901194 0.2482070
276142 MM0010 MM0008 0.4825443561 0.5174556 0.1293639
278507 MM0007 MM0008 0.5104724894 0.4635960 0.1288648
Data types are as follows: chr; chr; num; num; num;
And the code I want to execute is:
sample.counts <- arrange(count(c(ibdcoef$ID1, ibdcoef$ID2)), -freq)}
However, R displays an error message:
Error in UseMethod("groups") : no applicable method for 'groups' applied to an object of class "character"
It seems that the function 'count' does not execute this table input. Could You point out on some possible issues with it and how to adress them in code?
edit: Package 'dplyr' is open, so that's not an issue.