Try this (untested code):
recast(df, formula(paste(xvar, ~, yvar)), id.var=1:2, measure.var=3)
Jean
On Mon, Dec 16, 2013 at 9:11 AM, Jun Shen jun.shen...@gmail.com wrote:
Hi everyone,
This may be very simple but I couldn't figure it out. I have this function
Hi everyone,
This may be very simple but I couldn't figure it out. I have this function
rsm.lm-function(data,xvar='xCmin',yvar='yCmin') {
#some calculation..
recast(df, xvar~yvar, id.var=1:2, measure.var=3)
#some other operations
}
df is a dataframe defined internally within the
2 matches
Mail list logo