Comments (2)
hey! was doing something similar at work so thought I might throw in a few functions that might help:
- tools package:
showNonASCII()
andshowNonASCIIfile()
, this is more for examining scripts and not data but might be useful - textclean package:
replace_non_ascii()
- stringi package:
stri_trans_general(x, "latin-ascii")
might be the best way to do it. Use it inside amutate()
to transform the column containing the player names!
x <- c(
"Hello World", "6 Ekstr\xf8m", "J\xf6reskog", "bi\xdfchen Z\xfcrcher",
'This is a \xA9 but not a \xAE', '6 \xF7 2 = 3',
'fractions \xBC, \xBD, \xBE', 'cows go \xB5', '30\xA2')
data.frame(thingy = x) %>%
mutate(thingy2 = stringi::stri_trans_general(thingy, "latin-ascii"))
from soccermatics.
Thanks for this Ryo, super useful! Hopefully finally get round to fixing this today.
from soccermatics.
Related Issues (20)
- Error Installation Failed HOT 1
- Add title, subtitle options to function soccerShotmap()
- Installation fails HOT 3
- unable to find "location.x" and "location.y" for plotting HOT 2
- soccerShotmap plotted as mirror image HOT 1
- Problems with update HOT 6
- Problem Installing HOT 10
- Cannot download
- Issue producing some chart types HOT 6
- Library installation error HOT 1
- Unable to install soccermatics
- Hi Ryo,
- Problem to install
- Problem Installing HOT 4
- Events self tracked
- Best Custom Poster Printing Canβt Lack Good Design
- Include swapSides argument to match attacking direction in both periods HOT 1
- To do list HOT 2
- Pitch dimensions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soccermatics.