Skip to content

IntroToTextAnalytics_Part4 Script Error #4

@tierraymar

Description

@tierraymar

In IntroToTextAnalytics_Part4

Setup the feature data frame with labels.

train.tokens.df <- cbind(Label = train$Label, data.frame(train.tokens.dfm))

R says:
Warning message:
'as.data.frame.dfm' is deprecated.
Use 'convert(x, to = "data.frame")' instead.
See help("Deprecated")

What would be the fix for this?
I actually found it:
train.tokens.df <- cbind(Label = train$Label, as.data.frame(train.tokens.dfm))

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions