The Dataset is a csv file with 7 columns and 3872 rows. I want to create an sql query, but the ('s) gives an error during query runtime. That's why I need to replace the ('s) with (''s) to create the query. All help will be appreciated. Thanks in advance
Asked
Active
Viewed 52 times
1 Answers
1
dataset$column <- gsub("'s", '"s', dataset$column)

zx8754
- 52,746
- 12
- 114
- 209

Never Lucky
- 89
- 10
-
1Please include some details about why you think your solution should work - `'s` replaces any `'s` inside the string with `"s`, even in `'start'`. – Wiktor Stribiżew Jul 11 '18 at 06:48