Skip to content

Vignette could explain how to turn facebook data into CWB corpus #1

@ablaette

Description

@ablaette

Then this snippet of a potential as.xml() function might be useful:

sprintf(
  '<page party="%s" url="%s" date="%s">\n%s\n</page>',
  tbl$`User Name`, tbl$URL, tbl$date, tbl$Message
) %>%
  paste(collapse = "\n") %>%
  sprintf('<?xml version="1.0" encoding="utf-8"?>\n<collection>%s\n</collection>\n', .) %>%
  read_xml()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions