【发布时间】:2020-10-21 20:48:28
【问题描述】:
我想将 R 中的表函数应用于我的所有列。
我想查看我的目标和所有其他列的分布。这是一个例子:
table(df$target, df$variable1)
我有 500 列。我怎样才能为我的所有 500 列做到这一点?
table(df$target, df$variable1),
table(df$target, df$variable2),
table(df$target, df$variable3)
不一一写? (申请?)
【问题讨论】:
标签: r output distribution target