2021年4月10日星期六

How to find the mean of specific rows in R?

I have a data file like this:

Code    V1  V2  V3  V4  V5  1       130 965 36  99  64  2       99  311 52  64  29  3       133 647 34  92  49  4       122 460 44  85  43  5       115 266 35  62  32  6       110 486 34  66  41  7       111 689 44  67  31  8       115 274 57  72  26  9       122 112 45  86  45  10      124 214 41  84  45  11      11  133 292 41  101  12      108 174 59  59  12  13      124 346 52  94  37  14      14  125 239 53  82  

And what to find the mean of Code 1 to 10 in every column, excluding 11 to 14 of the equation. How could I do it?

https://stackoverflow.com/questions/67041082/how-to-find-the-mean-of-specific-rows-in-r April 11, 2021 at 11:04AM

没有评论:

发表评论