search for: dep_cols

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

Did you mean: denscols
2012 May 05
2
Pasting with Quotes
...estion. I'm trying to build a character string, then evaluate it. I think an example would be the easiest way to explain: kern.vec = c("rbfdot","polydot") for( j in 1:length( kern.vec ) ) { formula = paste("ksvm( ind ~ . , data=d.temp[,c(ind_col,dep_cols)], kernel =",kern.vec[j],", prob.model=T )") svm = eval( parse( text=formula ) ) ... } The problem I always seem to have is that in the formula, I need to have quotes around "rbfdot" (for example). But, when I paste the expression together, it removes t...