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.

Rでfor文を用いて複数のdbfファイルを読み込む

Last updated at Posted at 2020-10-15

Rで複数のdbfファイルを読み込むためにfor文を用いました。
for文を使う場合、pasteと文字型に気を付けます。

dbfファイル名は
t0.dbf
t1.dbf
t2.dbf
を想定しています。
出力時にfor文などで作成することができます。

read.r
for( i in 0:2){
  data <- read.dbf(paste("path/t",as,character(i),".dbf",sep=""),as.is = TRUE)
}
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?