R: tidytext data frame

From OnnoWiki
Revision as of 09:20, 6 November 2018 by Onnowpurbo (talk | contribs) (Created page with " # text asli # text <- c("Because I could not stop for Death -", "He kindly stopped for me -", "The Carriage held but just Ourselves -", "a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
# text asli
#
text <- c("Because I could not stop for Death -",
          "He kindly stopped for me -",
          "The Carriage held but just Ourselves -",
          "and Immortality")
text
# konversi ke data fame
#
library(dplyr)
text_df <- data_frame(line = 1:4, text = text)
text_df


Pranala Menarik