Skip to content
Prev 345665 / 398502 Next

Small vector into large data frame

Use the p_f numbers as an "index" of spot$pxlast.  Suppose your data frame
is called mydata,

mydata$newvar <- spot$pxlast[mydata$p_f]

Jean

On Fri, Nov 14, 2014 at 8:48 AM, Francesca Pancotto <
francesca.pancotto at unimore.it> wrote: