in my dataset in the column "new" I would like to do the following: if the percentage is bigger than 100% I would like to subtract that percentage from 200%, e.g. if the value is 120% I want the new value in the row to be 200%-120% which would be 80%. How can I achieve that? Thank you!
jointdataset1 <- structure(list(group = c("Interests", "Interests", "Interests",
"Interests", "Interests", "Interests", "Interests", "Interests",
"Interests", "Interests", "Interests", "Interests"), mean_name = c("Administrating processes",
"Analytical", "Art and Culture", "Commercial activities", "Creative",
"Helping/supporting", "Leading", "Networking", "Physical", "Practical",
"Technical", "Transforming Processes"), means.x = c(4, 4, 1,
4, 3, 3, 3, 3, 3, 6, 6, 1), means.y = c(4, 5.5, 1, 5, 3, 4, 4.5,
3.5, 2.5, 5.5, 6.5, 3), new = c("100.0%", "72.7%", "100.0%",
"80.0%", "100.0%", "75.0%", "66.7%", "85.7%", "120.0%", "109.1%",
"92.3%", "33.3%")), class = "data.frame", row.names = c(NA, -12L
))