R VectorSource()

Jmnote (토론 | 기여)님의 2019년 12월 8일 (일) 16:54 판 (→‎같이 보기)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

R VectorSource()
  • "Create a vector source → 벡터 소스 생성"
library("tm")
docs <- c("This is a text.", "This another one.")
vs <- VectorSource(docs)
vs
## $encoding
## [1] ""
## 
## $length
## [1] 2
## 
## $position
## [1] 0
## 
## $reader
## function (elem, language, id) 
## {
##     if (!is.null(elem$uri)) 
##        id <- basename(elem$uri)
##     PlainTextDocument(elem$content, id = id, language = language)
## }
## <bytecode: 0x00000000211705a0>
## <environment: namespace:tm>
##   
## $content
## [1] "This is a text."   "This another one."
## 
## attr(,"class")
## [1] "VectorSource" "SimpleSource" "Source"

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}