Homework was due soon and I was fighting with my completely entangled code:
“Everything looks good” I repeated to myself a hundred times even though I was not getting the expected result,… “everything looked good indeed”.
Learning the coding language was and still is pretty stressful. You cannot avoid thinking that some things take only one or two clicks in excel…., but anyways, I managed to write what I wanted the program to do in its language and: “->Run”!………. Some error popped out and I had NO clue what it meant.
After checking my code piece by piece I finally found the problem; that problem that haunts all of those who happen to have English as their second language: “lenght”. There it was, laughing at me while I was pulling my hair out.
But then it hit me: I needed a spell check package. I could not afford to waste so much time due to these types of errors.
I started looking for packages and the first that popped up was “aspell” but when attempting to install it, R was kind enough to shatter my dreams of good spelling:
package ‘Aspell’ is not available (for R version 3.0.3)
No worries, keep looking. -> “Hunspell” and Ispell were not available either for my current R version! Damn…
Finally I found an easy, AVAILABLE and friendly package with a Youtube example called “qdap” that has a built in dictionary and the possibility to add words to it so one can check the spelling of the strings generated.
When learning a language, one usually starts with basic things for a couple of sessions:
My name is Joe the cowboy and I like horses!
Listening: The Rolling Stones – I Can’t Get No (Satisfaction)
I can’t get no satisfaction
I can’t get no satisfaction
‘Cause I try and I try and I try and I try
I can’t get no, I can’t get no
Learning the coding language for R feels like:
‘Tis better to be vile than vile esteemed,
When not to be receives reproach of being,
And the just pleasure lost, which is so deemed
Not by our feeling, but by others’ seeing.
For why should others’ false adulterate eyes
Give salutation to my sportive blood?
Listening: Alanis Morissete – Ironic
“Well life has a funny way of sneaking up on you
When you think everything’s okay and everything’s going right
And life has a funny way of helping you out when
You think everything’s gone wrong and everything blows up
In your face”
Just try to get it right the first time…
Add the extra layer of typos and voilá, first day of coding 😀
Hopefully this package will be useful not only for me, but for people having similar issues when typing too fast.
Like learning any other language, continuously coding has helped me to understand better the coding language and unexpectedly get better with my English grammar.
One thing for sure is that after this class I’ll never forget how to spell lenght,…. Damn!