小编Rya*_*ing的帖子

pivot_longer with multiple classes causes error ("No common type")

I am running pivot_longer on multiple columns (i.e. two character columns and one numeric). I am encountering an error related to the class mismatch.

I have investigated the documentation for any "force" options and did not see any arguments within pivot_longer to specify the class to use -- or to allow the function auto-detect the most general class.

Are there any parameters within pivot_longer to avoid this error? Or do you need to convert the columns to a single class …

r tidyr

4
推荐指数
3
解决办法
264
查看次数

标签 统计

r ×1

tidyr ×1