I have created a string of code in r to do some analysis. I plan to make these codes in the form of an executable program in Windows. What is the process of doing this? Some of the relevant codes are as follows:
library(dplyr)
library(EnvStats)
library(plotrix)
library(tidyverse)
library(emmeans)
library(multcomp)
library(ggplot2)
fn_G <- function(x){
replace (replace(x, x > 35 , mean (x[x<= 35 ])) , x < 5 , mean (x[x>= 5 ]))
}
df1 <- df %>%
group_by(Samples) %>%
mutate(across(starts_with("GOI"), fn_G))
View(df1)