fork download
  1. df <- data.frame(cat = c("c(\\\"BPT\\\", \"BP\")", "c(\"BP2\", \"BP\")", "c(\"BPT\", \"BP\")", "c(\"CN\", \"NC\")"))
  2. df$cat <- as.character(df$cat)
  3. unlist(lapply(gsub('\\', '', df$cat, fixed=TRUE), function(x) eval(parse(text=x))[[1]]))
Success #stdin #stdout 0.2s 183808KB
stdin
Standard input is empty
stdout
[1] "BPT" "BP2" "BPT" "CN"