search for: tp931051p931051

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

2009 Nov 30
1
updating subset of data.frame
i have a data frame and a numeric vector indexed as a subset of the rows in the data.frame. what command can i use to assign the values in the vector to the appropriate rows of the data.frame? here's my failed attempt. what i would want is data[1,'z'] == 2, data[5,'z'] == -4, data[8,'z'] == -5, data[9,'z'] == 5, and for the other values of 'z' to