Skip to content

Error message with explor() for CA #45

@gabrielparriaux

Description

@gabrielparriaux

Hello,

I perform a CA() (correspondance analysis) on a contingency table of 2 rows and 870 columns. Each column represents one token of my corpus, each row a modality of a variable. Cells contain the count of the token in documents that correspond to the modality of the given variable.

When I use CA() on my contingency table, I get no error message. The object of CA() appears in my Environment in RStudio, but no graph is produced even with option graph = TRUE.

When I execute explor() on the object containing the CA, I get the following message:

Error in `$<-.data.frame`(`*tmp*`, "Count", value = list()) : 
   replacement has 0 rows, data has 2

The strange thing is that when I perform the exact same process with the same data, but other variables with three or more modalities, I have no problem.

Do you have an idea of the origin of the problem?

Thanks a lot,

Gabriel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions