1

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 ?

3
  • This is because R might be considering / as line ending or new line , i think removing "/" might do the trick for you . Or while writing specify the line break which ever you are using , comma or tab. Commented Sep 27, 2018 at 5:30
  • It does not split at '/'. Can you tell how can we specify line break ? Commented Sep 27, 2018 at 5:33
  • i think parse will help you. have a look at this answer stackoverflow.com/questions/12929504/… Commented Sep 27, 2018 at 5:46

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.