Fixing a multiple warning “unknown column”

前端 未结 8 2042
你的背包
你的背包 2020-12-12 12:12

I have a persistent multiple warning of \"unknown column\" for all types of commands (e.g., str(x) to installing updates on packages), and not sure how to debug this or fix

8条回答
  •  臣服心动
    2020-12-12 12:45

    Let's say I wanted to select the following column(s)

    best.columns = 'id'
    

    For me the following gave the warning:

    df%>% select_(one_of(best.columns))
    

    While this worked as expected, although, as far as I know dplyr, this should be identical.

    df%>% select_(.dots = best.columns)
    

提交回复
热议问题