search for: schmear

Displaying 1 result from an estimated 1 matches for "schmear".

Did you mean: schmea
2008 Apr 16
1
efficiently replacing values in a matrix
Hello all, I should probably know this by now... Anyway: I have a large matrix (dim(data) is 3000 18000). In each element are one of the following character strings "0/0", "1/1", "1/2", "2/2". I wanted to replace "0/0" with NA and the other three with 0,1,2 respectively. To accomplish just the first of these four steps I did this: