I have a dataframe df
df
ColA COlB
A F
B D
C E
I convert above data to DT. So it looks like (with filters, customised etc). But is it possible to have something like this
df1
ColA COLB
"Message"
df <- structure(list(A = structure(1:2, .Label = c("A", "B"), class = "factor"),
B = structure(1:2, .Label = c("D", "E"), class = "factor")), class = "data.frame", row.names = c(NA,
-2L))
Initial df
Expected
The first 2 rows(This is a sample but the rows keep changing) should deleted replaced with the "message"