Learn R Programming

cogmapr (version 0.9.3)

df.quotes.scm.concept: Extract the quotes of a project linked to selected concepts

Description

Extract the quotes of a project linked to selected concepts

Usage

df.quotes.scm.concept(project, units, selected.concept)

Arguments

project

A QDA project, a list as generated by the ProjectCMap function.

units

A string vector giving the names of the units (i.e. classes linked to documents) that will be include in the SCM. It is a second type of filter.

selected.concept

A vector of character/integer value(s), the id(s) of one or many concept(s) of the map

Value

A data frame of relationships and quotes

Details

Extract the quotes of a project linked to selected concepts. Units is a mandatory parameter as this function was initially developed for given the quotes linked to significantly different concepts between groups of documents (i.e. units).

Examples

Run this code
# NOT RUN {
project_name <- "a_new_project"
main_path <- paste0(system.file("testdata", package = "cogmapr"), '/')
my.project <- ProjectCMap(main_path, project_name)

df.quotes.scm.concept(my.project, "Qu<U+00E9>bec", 4)
df.quotes.scm.concept(my.project, "Qu<U+00E9>bec", "2")
# }

Run the code above in your browser using DataLab