What does the error “arguments imply differing number of rows: x, y” mean?

前端 未结 3 1270
南方客
南方客 2020-12-05 12:55

I\'m trying to create a plot from elements of csv file which looks like this:

h1,h2,h3,h4
a,1,0,1,0
b,1,1,0,1
c,0,0,1,0

I tried the followi

3条回答
  •  无人及你
    2020-12-05 13:46

    I had the same error message so I went googling a bit I managed to fix it with the following code.

    df<-data.frame(words = unlist(words))
    

    words is a character list.

    This just in case somebody else needs the output to be a data frame.

提交回复
热议问题