search for: lvarname

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

Did you mean: varname
2011 Apr 01
3
programming: telling a function where to look for the entered variables
...and variables it should use for calculating the index. This is how I tried to modify the first part of the #function, but it didn't work: # function as I would like it to work: independent of any particular dataframe or variable names (doesn't work) myfunct.better <- function(subgroup, lvarname, yvarname, dataframe){ #enter the subgroup, the variable names to be used and the dataframe in which they are found Data.tmp <- subset(dataframe, lvarname==subgroup, select=c("xvar", deparse(substitute(yvarname)))) # trying to subset the given dataframe for the given subgroup of th...