R: quoting unquoted members in nested list-
Using R, I generate a list that contains certain unquoted elements. Please see at the bottom- it is invalid javascript code. R code (does not work) outq <- lapply (out, function (el){ el <- if( is.factor(el$ann) ){ el$ann <- apply(el$ann, 1, function(e){ e <- paste('"', e, '"', sep="") }) } }) In the R language, How can I ...