Skip to main content

Fwrite splits text in one cell into 2 columns while writing to text file

I am writing dataframe to text file using fwrite in R.
In one of the columns, I have a text:

"Jordan Toothbrush Adult No Type 1 Unit (B/W-Jordan GPBSet(T1 TooG2x5)1u )"

But I see that it splits the text in 2 different cells with the values as

"Jordan Toothbrush Adult No Type 1 Unit (B/W-Jordan GPBSet(T1"

and

"TooG2x5)1u )"

Can anyone help here ?