Skip to content

Instantly share code, notes, and snippets.

@uribo
Created July 22, 2014 13:52
Show Gist options
  • Save uribo/db1e27f3d41aa47044f0 to your computer and use it in GitHub Desktop.
Save uribo/db1e27f3d41aa47044f0 to your computer and use it in GitHub Desktop.
read multi cdv files
for (i in year) {
mypath <- file.path(getwd(), paste("H", i, ".csv", sep = ""))
assign(paste("df", i, sep = ""), read.csv(mypath, header = T)) # ダミー変数(df10, df11 ... df23)を作成して各CSVファイルを読み込む
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment