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 remain 0.