Re: [R] Using a function inside a function

2011-06-08 Thread Joshua Wiley
Hi Abraham, Your example runs fine for me. I get this as the newdf object (you should be able to copy and paste into your console): newdf <- structure(list(keyword = structure(c(7L, 3L, 5L, 1L, 8L, 4L, 6L, 2L, 15L, 11L, 13L, 9L, 16L, 12L, 14L, 10L, 20L, 18L, 19L, 17L, 23L, 21L, 24L, 22L, 27L, 25

[R] Using a function inside a function

2011-06-08 Thread Abraham Mathew
I'm trying to run a function inside a function but get an error message. lst <- list(roots = c("car insurance", "auto insurance"), roots2 = c("insurance"), prefix = c("cheap", "budget"), prefix2 = c("low cost"), suffix = c("quote", "quotes"), suffix2 = c("rate", "rates"), suffix3 = c("comparison")