python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Dynamically generate subset column names for a dataframe using for loop
For the following dataframe df:
df <- structure(list(id = c("M0000607", "M0000609", "M0000612"), `2021-08(actual)` = c(12.6,
19.2, 8.3), `2021-09(actual)` = c(10.3, 1...

ah bon
Votes: 0
Answers: 1
r remove keywords in a column
I have a column in my dataframe with words like this.
ColA
2-4 Model
Group1
Group ACH
Group2
Phenols
Group1
Group ACH
Group2
MONO MHPP
Group1
Group ACH
Group2
I want to create two additional columns ...
Ahir Bhairav Orai
Votes: 0
Answers: 3