I am using R and I want to change this:
variablename
to this
c("variablename")
I want to use the vector for a function that looks like this:
function.describe <- function(data,variablename){
...
a<-data[c("variablename")]%>%
summary()
return(a)
}
My goal is to insert only the variablename and the dataset to get the summary. I do not want to insert a vector into the function. What do I have to add instead of the three dots?