Displaying 1 result from an estimated 1 matches for "recode_items".
2010 Apr 28
7
operator problem within function
Dear all,
i have a problem with processing dataframes within a function using the "$".
HereĀ“s my code:
recode_items = function(dataframe,number,medium=2){
# this works
q<-paste("columna",number,sep="")
# this does not work, particularly because "dataframe" is not processed
# dataframe should be: givenframe$columnagivennumber
a=dataframe$q[dataframe$q==medium]=1
retur...