How to pass extra argument to the function argument of do.call in R

前端 未结 3 1650
北恋
北恋 2021-02-06 21:29

I\'d like to pass argument (stringsAsFactors=FALSE) to rbind in do.call. But the following doesn\'t work:

data <- do.ca         


        
3条回答
  •  囚心锁ツ
    2021-02-06 22:19

    Alternatively, you can set stringsAsFactors to FALSE globally using options:

    options(stringsAsFactors=FALSE)
    

    Setting this at the top of the script will enforce this throughout the script. You could even add to .Rprofile to set this option for the all the R sessions you open.

提交回复
热议问题