

To insert a nonbreaking space between two words or characters using a keyboard shortcut:

Inserting a nonbreaking space using a keyboard shortcut Keyboard shortcuts may work differently depending on your keyboard layout / language. Note: We are using a US keyboard layout but the strategies and shortcuts apply to English Canada keyboards. Recommended article: 14 Timesaving Microsoft Word Selection Shortcuts to Quickly Select Textĭo you want to learn more about Microsoft Word? Check out our virtual classroom or in-person classroom Word courses > Nonbreaking spaces can be inserted using the Insert Symbol dialog box or a keyboard shortcut. If you want to keep words or characters together on the same line in a Word document, you can insert nonbreaking spaces. I used following R code to confirm that there was non-breaking space in x.Insert a Nonbreaking Space in Word to Keep Words or Characters Togetherīy Avantix Learning Team | Updated October 11, 2022Īpplies to: Microsoft ® Word ® 2010, 2013, 2016, 2019, 2021 and 365 (Windows) In HTML, non-breaking space is common (but this was my first time to encounter non-breaking space while cleaning data in R) and is encoded as or. On the contrary, x has the ASCII value of 160 in Decimal value, which corresponds to The ASCII value of x is 32 in Decimal value, which is the common ordinary space. Finally I copied the raw data intoĪSCII value of the space. After hours of trials and errors, I got a feeling that the problem was relevant to the encoding of the space.

I worked on this problem up to 3AM and tried the possibilities that I could think of, including uninstalling the newly updated R 3.4.3 and running above code with an old version of R. Unfortunately, the problem was not resolved. I tried Space and Tab(displayed as \t on R console, which can be easily distinguished from Space) that were usually encountered during data clean. According to my experience of data clean in R, I suspected the problem may occur in the space.

Returned two unique values that are visually the same. # "non-breaking space" "non-breaking space"
