r - 将数据框转换为语料库时,如何将行标签保留在数据框中?
问题描述
我的数据框
Column1 | Comment
Row1 is labeled A Some comments added
Row2 is labeled B Some comments added here
Row3 is labeled C Some comments added here as well
这是我设置语料库的时候
corpus = Corpus(VectorSource(df$Comment))
我的结果删除了“Row1 已标记”、“Row2 已标记”,而是变为 1、2、3 等等。我希望它保留我分配的行标签。
解决方案
推荐阅读
- javascript - 如何从动态组合框中显示表格?
- html - 构建一个 3 列 2 行的弹性网格布局,第一项跨越两行
- android - 如何用`MPChartAndroid`解决以下图表问题?
- javascript - 带有居中徽标的自定义 Bootstrap 导航栏
- java - 杰克逊:使用 [Ljava.lang.Double 的 InvalidDefinitionException
- java - 使用 iText 创建带有重复标题的表格
- git - Git: how to update branch made by merge-base
- tfs - 基于 TFS2017 的持续集成构建
- asp.net - 如果方法在 ASP.NET 中找到并返回视图,则进行单元测试
- ios - 在 Objective c 中集成摘要式身份验证