LoginSignup
1
0

More than 5 years have passed since last update.

R factor変換を防止

Posted at

問題

as.data.frame()

をかけると、chracterがすべてfactorになってしまった。

解決方法

#'stringAsFactors = F' のオプション設定をすると、factorに変換されない
as.data.frame( data, stringAsFactors = F )
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0