Message-ID: <D7CCAC5E-095F-4DB4-9A90-AA120EA22755@gmail.com>
Date: 2012-08-28T03:05:09Z
From: michael.weylandt at gmail.com (R. Michael Weylandt
Subject: find and replace
In-Reply-To: <1346111235.23239.YahooMailNeo@web125201.mail.ne1.yahoo.com>
Take a look at gsub()
Michael
On Aug 27, 2012, at 6:47 PM, Sapana Lohani <lohani.sapana at ymail.com> wrote:
> Hi,
>
> My data frame (Students) is
>
> ID Name Fav_Place
> 101 Andrew? Phoenix AZ
> 201 John San Francisco
> 303 JulieCalifornia / New York
> 304 Monica? New York
>
> How can I replace Phoenix with Tucson & New York with New York City in the df?
>
> Thanks
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.