Learn R Programming

quanteda (version 1.3.13)

read_dict_liwc: Import a LIWC-formatted dictionary

Description

Import a LIWC-formatted dictionary

Usage

read_dict_liwc(path, encoding = "auto")

Arguments

path

a path to LIWC-formatted dictionary file

encoding

encoding of a dictionary file

Examples

Run this code
# NOT RUN {
quanteda:::read_dict_liwc('/home/kohei/Documents/Dictionary/LIWC/LIWC2007_English.dic')
quanteda:::read_dict_liwc('/home/kohei/Documents/Dictionary/LIWC/LIWC2015_English.dic')

dictionary(file = "~/Dropbox/QUANTESS/dictionaries/LIWC/LIWC2007_English.dic")      # WORKS
dictionary(file = "/home/kohei/Documents/Dictionary/LIWC/LIWC2015_English.dic") # WORKS
dictionary(file = "~/Dropbox/QUANTESS/dictionaries/LIWC/LIWC2015_English_Flat.dic") # WORKS
dictionary(file = "~/Dropbox/QUANTESS/dictionaries/LIWC/LIWC2001_English.dic")       # FAILS
dictionary(file = "~/Dropbox/QUANTESS/dictionaries/LIWC/LIWC2007_English080730.dic") # FAILS
# }

Run the code above in your browser using DataLab