« [Perl]エラーメッセージ「Can't locate Jcode.pm in @INC (@INC contains: /usr/lib/perl5~」 | トップページ | [R]エラーメッセージ「In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : EOF within quoted string」 »

2014年5月31日 (土)

[R]ファイルを読み込むときのファイルの日本語コードを指定する

fileEncodingオプションを使用する。以下は、file.csvというファイルをシフトJISで読み込む例。

> dtf <- read.csv("file.csv", fileEncoding = "SJIS")

« [Perl]エラーメッセージ「Can't locate Jcode.pm in @INC (@INC contains: /usr/lib/perl5~」 | トップページ | [R]エラーメッセージ「In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : EOF within quoted string」 »

R(数値計算)」カテゴリの記事

コメント

コメントを書く

コメントは記事投稿者が公開するまで表示されません。

(ウェブ上には掲載しません)

« [Perl]エラーメッセージ「Can't locate Jcode.pm in @INC (@INC contains: /usr/lib/perl5~」 | トップページ | [R]エラーメッセージ「In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : EOF within quoted string」 »

無料ブログはココログ

■■

■■■