R read.table csv where text field contains enters -


i have sql query result exported csv format ";" separator. should contain 5 columns:

order_id (str),  user_rating (int),  user_feedback (str),  created_by (str),  created_on (date) 

problem users can have comments spanning multiple lines in user_feedback field. while in sql coerced nice single line view. exported csv dataset not read in properly.

fread() data.table , read.table() both failed. got read in 1 column using:

data1 <- read.table('myfile.csv', stringsasfactors = f, header = f,  sep = "\t", allowescapes = t, quote = "") 

the problem follows: query result contains 50000 rows, csv read in 50267 rows. checking data, seems took user_feedback contained 'enters' , read in separate rows.

how import data properly, user_feedback data every row single string field?


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -