Fix quoting problem with columns containing quotes

replace/20c9ce63f8988bfaefbe9a49d3b22acccc158779
JulioV 2019-11-05 11:47:20 -05:00
parent c9764d322c
commit 6eb7bc9e70
1 changed files with 1 additions and 1 deletions

View File

@ -19,5 +19,5 @@ sensor_data <- sensor_data[order(sensor_data$timestamp),]
# Droping duplicates on all columns except for _id
sensor_data <- sensor_data %>% distinct(!!!syms(setdiff(names(sensor_data), "_id")))
write.table(sensor_data, sensor_file, row.names = FALSE, quote = FALSE, sep = ",")
write.csv(sensor_data, sensor_file)
dbDisconnect(stopDB)