-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function to just make everything plain text #273
Comments
Would it be as simple as mutating all character columns with |
I use Maybe it could be Related to this, perhaps some way to save the names for use in |
Is this for the contents of character columns or for names? Would it do anything to html in character columns? |
This is for the content of character columns. The text values themselves.
As to html, I dunno. Keep it? Just nuke anything that's not plain text (I
don't even know the right terms for encoding).
…On Wed, Feb 20, 2019, 12:49 PM Ryan Knight ***@***.*** wrote:
Is this for the contents of character columns or for names?
Would it do anything to html in character columns?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#273 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHOBkFO6M-eCYJnW1PBp71VMH5HIh3OQks5vPYqMgaJpZM4bFbRL>
.
|
I'm still excited about this! This function would take a character string [or vector] and return it with non-ASCII characters converted. For instance:
Is it as simple as |
Wondering if I can squeeze this in for v1.2 this week. It's such a simple function I should be able to. The only risk I see is that it's insufficient / not useful and becomes cruft that clutters the namespace. But I think it could be gold in some situations. |
Still think this is worthy, can't pull it off today/tomorrow. |
Hrm this doesn't remove the unicode replacement character
|
This is maybe a bit tagential, but within a discussion of something "like I personally use a (very) slightly modified version of the
|
@hlynurhallgrims, I think that you’re looking for |
@billdenney, thanks for the reply. The difference between the suggestion and |
For what it's worth, I had some horrible experiences with the encodings of various hyphens and dashes. |
FYI, I've been working on an unrelated problem today, and I learned that what I think the best way to convert to ASCII is the following: I'm adding that to the documentation of |
Bonus! I look forward to using this.
…On Sat, Apr 11, 2020 at 2:19 PM Bill Denney ***@***.***> wrote:
Closed #273 <#273> via #366
<#366>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#273 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZYDEED26YRVB67FMXTIJLRMCYBLANCNFSM4GYVWRFQ>
.
|
I just zapped some pesky curly quotes using your recommendation above, Bill. It may not be in janitor, officially, but that to-ASCII transliteration command rules 😎 |
Like
clean_names
but for dealing with encoding of character variables. I postulate that most users don't care about encoding, they don't want to know about it, they just hate that their results in RMarkdown look likeStudents who earn<U+202F>As<U+202F>in my classes
.Is there a function(s) we can wrap that will put everything in plain text and make stuff like curly quotes (#91), narrow spaces, etc. just go away?
The text was updated successfully, but these errors were encountered: