[R] REPLACE and REMOVE fns
Uwe Ligges
ligges at statistik.uni-dortmund.de
Wed Apr 4 09:42:55 CEST 2007
Tina Robles wrote:
> I want to use the replace function on "R_Jeter_04_post" (see attached)
> so that S=1, D=1, T=1, HR=1, O=0, K=0, E=0, FC=0, and W,IW,and HP are
> removed, so that i have a simple list of 1's and 0's.
There are just 0's and 1's in your attachment ...
Uwe Ligges
> I understand that I need to use the command "replace(x,list,values)"
> and "rm()" but I'm having trouble using them. (syntax errors and
> whatnot)
>
> Any help would be appreciated.
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
More information about the R-help
mailing list