[R] Placing brackets around the values in a data frame

2011-07-27 Thread Abraham Mathew
Lets say I have the following data frame. df = data.frame(word = c(David, James, Sara, Jamie, Jon)) df I was trying to place brackets , [ ] , around each string. I'll be exporting it with write.table and quotes=FALSE, so it will eventually look like: [David] [James] [Sara] Can anyone

Re: [R] Placing brackets around the values in a data frame

2011-07-27 Thread Uwe Ligges
On 27.07.2011 20:00, Abraham Mathew wrote: Lets say I have the following data frame. df = data.frame(word = c(David, James, Sara, Jamie, Jon)) df I was trying to place brackets , [ ] , around each string. I'll be exporting it with write.table and quotes=FALSE, so it will eventually look

Re: [R] Placing brackets around the values in a data frame

2011-07-27 Thread David Winsemius
On Jul 27, 2011, at 2:00 PM, Abraham Mathew wrote: Lets say I have the following data frame. df = data.frame(word = c(David, James, Sara, Jamie, Jon)) df I was trying to place brackets , [ ] , around each string. I'll be exporting it with write.table and quotes=FALSE, so it will eventually