Skip to main content

I am attempting to use the tm package to convert a vector of text strings to a corpus element.

My code looks something like this

Corpus(d1$Yes)

Corpus(d1$Yes)

where d1$Yesd1$Yes is a factor with 124 levels, each containing a text string.

For example, d1$Yes[246] = "So we can get the boat out!"d1$Yes[246] = "So we can get the boat out!"

I'm receiving the following error: "Error: inherits(x, "Source") is not TRUE"

"Error: inherits(x, "Source") is not TRUE"

I'm not sure how to remedy this.

I am attempting to use the tm package to convert a vector of text strings to a corpus element.

My code looks something like this

Corpus(d1$Yes)

where d1$Yes is a factor with 124 levels, each containing a text string.

For example, d1$Yes[246] = "So we can get the boat out!"

I'm receiving the following error: "Error: inherits(x, "Source") is not TRUE"

I'm not sure how to remedy this.

I am attempting to use the tm package to convert a vector of text strings to a corpus element.

My code looks something like this

Corpus(d1$Yes)

where d1$Yes is a factor with 124 levels, each containing a text string.

For example, d1$Yes[246] = "So we can get the boat out!"

I'm receiving the following error:

"Error: inherits(x, "Source") is not TRUE"

I'm not sure how to remedy this.

Source Link
Ivoire
  • 89
  • 1
  • 3

R error using package tm (text-mining)

I am attempting to use the tm package to convert a vector of text strings to a corpus element.

My code looks something like this

Corpus(d1$Yes)

where d1$Yes is a factor with 124 levels, each containing a text string.

For example, d1$Yes[246] = "So we can get the boat out!"

I'm receiving the following error: "Error: inherits(x, "Source") is not TRUE"

I'm not sure how to remedy this.