search for: yourbigdf

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

2010 Nov 02
1
splitting First 10 words in a string
...and if you understand how it works then you should be able to get something done and then make it more elegant. First, I simplify the problem by separating out the "sentence" column. You can do this with your data frame by simply doing this MySentence <-data.frame(sentence=yourbigDF$Opis,stringsAsFactors=FALSE) so I take your original data.frame (yourbigDF) and I just create a copy of that one column $Opis Later we can merge the two back together after I add 10 columns for the words Lets make some dummy data with just 10 rows sentence<- "thi...