Relative Content

Tag Archive for rcharacterlapply

How to paste a character variable in a lapply function?

I m trying to create a variable containing the value that people have assigned to different words. I created the following sample date to illustrate the issue.
words[1:3] are character vectors containing words, some appear several times, others only once.
value[1:3] are numeric vectors containing a number between 0 and 2.
allwords is a separate vector containing all words appearing in words[1:3].