Skip to content

textfile not picking up document names #221

Description

@conjugateprior

Should textfile pick up document names? In quanteda 0.9.7-17 (CRAN's current version) on R 3.3.0 it does not.

corp <- corpus(textfile("folder/*.txt"))
summary(corp)

Corpus consisting of 12 documents.

   Text Types Tokens Sentences
  text1  2112  17094       798
  text2   522   1896        89
  text3  1379   6439       290
  text4   650   2612       143
  text5   715   2300       125
  text6   400   1206        53
  text7   641   2891       162
  text8   460   1473        71
  text9   413   1256        66
 text10   455   1201        59
 text11  1502   9805       422
 text12   643   2177       106

  ...

It requires a subsequent docnames argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions