[R] change the value of vector based on the string of its name
drjimlemon at gmail.com
Sat Mar 25 10:04:04 CET 2017
If I have interpreted your example correctly:
On Sat, Mar 25, 2017 at 4:12 AM, Qill Bel <qillbel at gmail.com> wrote:
> Dear R-users,
> Imagine I have 3 vectors:
> How can I change the value of proc1 to 1, based on vector cpd only?
> I tried with *as.factor(cpd)<-1*, but it produces an error.
> Any idea how could I achieve that?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help