Re: [R] how to identify record with broken format

2019-06-05 Thread Boris Steipe
I've seen that behaviour with a C" atom in a chemical structure. Here is code to identify lines with an uneven number of quotation marks. Read your file with readLines() to use it. myTxt<- '"This" "is" "fine"' myTxt[2] <- '"This" "is "not"' myTxt[3] <- 'This is ok' x <- lengths(regmatches(

Re: [R] how to identify record with broken format

2019-06-05 Thread Duncan Murdoch
On 05/06/2019 6:12 a.m., Luigi Marongiu wrote: Dear all, I have a large dataframe where one of the records in a column must have been wrongly formatted, in particular i think is missing a closing ". When I try to show only that column's value I get a [1] with plenty of empty space, the final reco

[R] how to identify record with broken format

2019-06-05 Thread Luigi Marongiu
Dear all, I have a large dataframe where one of the records in a column must have been wrongly formatted, in particular i think is missing a closing ". When I try to show only that column's value I get a [1] with plenty of empty space, the final record [45] and the system freezes. also, when i try