What causes this error of incorrect number of dimensions when using describe()?

1k Views Asked by At

I have a dataset, where one column takes values 1-7. It also has some NA fields. This data was imported through an spss file and thus has value labels.

I tried using this function to see the value labels:

describe(df$col)

But it returned this error:

Error in proxy[, ..., drop = FALSE] : incorrect number of dimensions

I am not sure what that means. I thought it might mean that there were too many varying answers, but it's literally just 1-7.

table(df$col) returns:

   1    2    3    4    5    6    7 
1707  214  103   74  297   54   70 

I just want to see what those numbers represent. I worked with the data and I want to see if the labels stayed there despite making changes.

0

There are 0 best solutions below