Skip to contents

List memos

Usage

qda_memos(kind = NULL, source = NULL, code = NULL)

Arguments

kind

Optional filter: one or more of "passage", "document", "code", "project".

source

Optional source id/name: only memos referring to it (passage and document memos).

code

Optional code id/label: only memos of this code.

Value

A tibble: id, kind, title, text_, source_id, source, code_id, code, start, end, passage (the memo'd text for passage memos), created_at, updated_at.

Examples

qda_open(file.path(tempfile(), "example.jellyqda"))
qda_import(system.file("extdata", "interview_01.txt", package = "jellyqda"))
#> # A tibble: 1 × 5
#>      id name             format chars status
#>   <int> <chr>            <chr>  <int> <chr> 
#> 1     1 interview_01.txt txt      856 ok    
qda_code_add("Career path")
qda_code_add("SME", parent = "Career path")
qda_memo_add("Research diary entry")
qda_memo_add("Definition of SME", code = "SME")
qda_memos()
#> # A tibble: 2 × 13
#>      id kind    title text_   source_id source code_id code  start   end passage
#>   <int> <chr>   <chr> <chr>       <int> <chr>    <int> <chr> <int> <int> <chr>  
#> 1     1 project ""    Resear…        NA NA          NA NA       NA    NA NA     
#> 2     2 code    ""    Defini…        NA NA           2 SME      NA    NA NA     
#> # ℹ 2 more variables: created_at <chr>, updated_at <chr>
qda_memos(kind = "code")
#> # A tibble: 1 × 13
#>      id kind  title text_     source_id source code_id code  start   end passage
#>   <int> <chr> <chr> <chr>         <int> <chr>    <int> <chr> <int> <int> <chr>  
#> 1     2 code  ""    Definiti…        NA NA           2 SME      NA    NA NA     
#> # ℹ 2 more variables: created_at <chr>, updated_at <chr>
qda_close()