From the course: R for Data Science: Lunch Break Lessons

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

char.expand

char.expand

- [Instructor] If you're working in Science, you're working with abbreviations and acronyms. In R provides char.expand to help you make sure you're using the correct letters. Let's take a look at how that works. First you'll need to load nasa.rds from the Exercise Files. Go load parenthesis quote in the file name which is nasa.rds and that brings at the data frame called nasa abbreviations. Let's take a look at that. For example, you can see that ARC is an acronym for the Ames Research Center. So I can use char.expand to see if this is a unique acronym. In this case, let's go look down, you'll see that the nasa abbreviations include DEC as an abbreviation for declamation. Now we can use char.expand to see if this is a unique abbreviation. So I'll type in char.expand and I'll type in the abbreviation that I'm curious about. In this case, DEC and where I want to look for that particular abbreviation. In this case, nasa…

Contents