[R] REPLACE and REMOVE fns

Tina Robles tina.robles at gmail.com
Wed Apr 4 03:36:40 CEST 2007


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.

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.

-- 
Tina Robles
Graduate Assistant
Dept. Of Management Science
University of Miami
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: R_Jeter_04_post.txt
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070403/adb3771a/attachment.txt 


More information about the R-help mailing list