0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ファイルの文字コードを指定して読み込む方法

Posted at

この記事ではR version 3.6.1、tidyverseパッケージを使っています。

コード

read.csv(
  "data.csv",
  fileEncording = "utf-8" ##文字コードの指定("Shift_JIS"など)
  )

補足

Rstudioではデフォルトの文字コードを指定できます。
上のメニューの中の"File"内でファイルを文字コードを指定して読み込んだり、保存したりできます。

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?