fork download
  1. dataset <- structure(list(Event = structure(2:5, .Label = c("Event", "Labour Costs YoY",
  2. "Unemployment Change (000's)", "Unemployment Rate", "Jobseekers Net Change"),
  3. .Names = c("", "", "", ""), class = "factor"), var1 = c("13.34m", "$16.91b", "-£1125.91m", "¥1012.74b"), var2 = c(0.026, -0.449, "0.89k", "9.56m")), row.names = c(NA,
  4. -4L), class = c("tbl_df", "tbl", "data.frame"))
  5. gsub("[^-0-9.,]", "", dataset$var1)
  6. ## => [1] "13.34" "16.91" "-1125.91" "1012.74"
Success #stdin #stdout 0.22s 39336KB
stdin
Standard input is empty
stdout
[1] "13.34"    "16.91"    "-1125.91" "1012.74"