Regular Expressions in R

http://stackoverflow.com/questions/10294284/remove-all-special-characters-from-a-string-in-r

http://stackoverflow.com/questions/6240026/regular-expressions-in-r-to-erase-all-characters-after-the-first-space

Removing special characters in R:

new_homicides<-gsub("<[^>]+>","",homicides)
Advertisements

About Lisa Johnson

PhD candidate at UC Davis.
This entry was posted in R. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s