Re: [R] Trying to make code more efficient

2011-06-13 Thread Brian Diggs
On 6/9/2011 12:27 PM, Abraham Mathew wrote: I have a repetative task in R and i'm trying to find a more efficient way to perform the following task. lst<- list(roots = c("car insurance", "auto insurance"), roots2 = c("insurance"), prefix = c("cheap", "budget"), prefi

[R] Trying to make code more efficient

2011-06-09 Thread Abraham Mathew
I have a repetative task in R and i'm trying to find a more efficient way to perform the following task. lst <- list(roots = c("car insurance", "auto insurance"), roots2 = c("insurance"), prefix = c("cheap", "budget"), prefix2 = c("low cost"), suffix = c("quote", "quotes