Displaying 2 results from an estimated 2 matches for "yvarnam".
Did you mean:
yvarname
2011 Apr 01
3
programming: telling a function where to look for the entered variables
...les 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 the given v...
2017 Jun 07
2
purrr::pmap does not work
Hi All,
I try to do a scatterplot for a bunch of variables. I plot a dependent
variable against a bunch of independent variables:
-- cut --
graphics::plot(
v01_r01 ~ v08_01_up11,
data = dataset,
xlab = "Dependent",
ylab = "Independent #1"
)
-- cut --
It is tedious to repeat the statement for all independent variables. Found
an alternative, i.e. :
-- cut --
mu