R:我该如何处理“错误:列“”,然后列出列名

时间:2019-02-15 21:41:30

标签: r

我有一个具有约3万行和约450列的数据框。

我想过滤出一个特定的领域。

library(tidyverse)
df %>% filter(name != "")

我收到此错误

Error: Columns `column_one`, `column_two`, `column_three`, 

它持续进行44列。我以前从未见过此错误。

对于它的价值,我通过获取五个CSV并将它们连接到这样的命令中来制作数据框。

library(tidyverse)
library(plyr)

invoicesJoined <- invoices %>% 
                    plyr::join(table_one, by = "joinkey_one", type = "inner") %>% 
                    plyr::join(table_two, by = "joinkey_two", type = "inner") %>% 
                    plyr::join(table_three, by = "joinkey_three", type = "inner") %>% 
                    plyr::join(table_four, by = "joinkey_four", type = "inner") %>% 
                    plyr::join(table_five, by = "joinkey_five", type = "inner")  

0 个答案:

没有答案