Displaying 1 result from an estimated 1 matches for "tagdict".
Did you mean:
addict
2011 Feb 28
1
Creating new variables. How do you get them into a data frame?
Hi
I'm an R newbie. I can't seem to add new variables to data frames. Here are
the stages
(1) I import the data using read.csv.
(2) I fix it using fix(data)
(3) I create a new variable using
spos<-tagPOS(stim,language="en",model=NULL,tagdict=NULL).
(tagPOS is a function in the OpenNLP toolkit, which tags a string for part
of speech. "stim" is a variable in the current data frame)
What happens is that the new variable, "spos" is saved as an object, but not
added to the data frame.
Could anyone help me with this?...