Are you aware that pdfLatex does not support Unicode? You need to use xeLatex.
But I don't use Sweave, so I don't know how you go about making that choice.
On August 24, 2022 8:03:02 PM PDT, dulcalma dulcalma
wrote:
>
>Dear All
>
>
>I was trying the supplementary fileĀ GS_main.R from
Javad,
If I understood you, you want to use one of many methods to GROUP BY one
column and take the minimum within each group.
If your data is set up right, perhaps using factors, there are base R
versions but many would also suggest using dplyr/tidyverse methods such as
piping your data to
library(dplyr)
library(magrittr)
dat2<-read.table(text="Code Y M D Q N O
41003 81 1 19 0.16 7.17 2.5
41003 77 9 22 0.197 6.8 2.2
41003 79 7 28 0.21 4.7 6.2
41005 79 8 17 0.21 5.5 7.2
41005 80 10 30 0.21 6.84 2.6
41005 80 12 20 0.21 6.84 2.4
41005 79 6 14 0.217 5.61 3.55
41009 79 2 21 0.218 5.56
Dear all;
I am trying to get the minimum value of a column based on a factor column
of the same data frame. My data frame is like the below:
Code Y MD
Q
N O
41003 81 1 19 0.16 7.17 2.5
41003 77 9 22 0.197 6.8 2.2
41003 79 7 28
4 matches
Mail list logo