I want to run this code multiple times, for all coloumn matching options, with ney colnames :
adatok <- adatok %>%
mutate(egyesült = Gene1 + 2*Gene2
the dataframe:
Sample Gene1 Gene2 Gene2.1 Gene4
1 ID1 1 1 0 0
2 ID2 0 0 0 1
3 ID3 0 0 0 1
4 ID4 1 0 0 0
5 ID5 1 1 0 1
6 ID6 0 0 0 1
#Thanks for help