Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Osaka.R #4                                  @phosphor m                           2010    12   2@phosphor m              O...
12345@phosphor m              Osaka.R #4
twitter: @phosphor m     Osaka.R@phosphor m               Osaka.R #4
R     R     R@phosphor m              Osaka.R #4
R          R              R                         R     OS@phosphor m                  Osaka.R #4
@phosphor m              Osaka.R #4
“   ”“C”                        “Users”           “masahiro“@phosphor m              Osaka.R #4
C:                      .csv      “C”                        “     ”       “        .csv”                                 ...
R    C:/           /                .csv    C:                              .csv                                          ...
01   11   34              01@phosphor m                   Osaka.R #4
11                                “   ”@phosphor m                   Osaka.R #4
csv                 Windows        Shift JIS Mac         UTF-8                      Shift JIS UTF-8    2              UTF-...
d1 <- read.csv("C:           .csv")R@phosphor m              Osaka.R #4
d1 <- read.csv("C:         .csv")@phosphor m              Osaka.R #4
d1 <- read.csv("C:/        /   .csv")@phosphor m              Osaka.R #4
d1 <- read.csv("C:/        /                               .csv")@phosphor m              Osaka.R #4
setwd("C:/     ")d1 <- read.csv("           .csv")@phosphor m              Osaka.R #4
Windows     Shift@phosphor m              Osaka.R #4
csv      d1 <- read.csv("C:/             /       .csv")      d1 <- read.csv("C:/             /       .csv", header = FALSE...
d1 <- read.delim("C:/           /   .txt")                                     read.delim              read.csv@phosphor m...
d1 <- read.delim("C:/           /   .txt")                                     read.delim              read.csv@phosphor m...
R                        csv     Excel              csv                              foreign@phosphor m                Osa...
library(foreign)d1 <- read.spss("C:/     /        .sav",                to.data.frame = TRUE, use.missings = TRUE)# SPSS# ...
csVwrite.csv(d1, file = "C:/      /      .csv",          na = "NA", row.names=FALSE)                       data.frame     ...
library(foreign)write.dta(d1, "C:/      /        .dta")write.foreign(d1, datafile = "C:/       /          .csv",          ...
Windows          Shift JIS   UTF-8                          csv@phosphor m                  Osaka.R #4
Nächste SlideShare
Wird geladen in …5
×

はじめてでもわかるデータ入出力

8.457 Aufrufe

Veröffentlicht am

Osaka.R #4(2010/12/02)の発表資料

  • Als Erste(r) kommentieren

はじめてでもわかるデータ入出力

  1. 1. Osaka.R #4 @phosphor m 2010 12 2@phosphor m Osaka.R #4
  2. 2. 12345@phosphor m Osaka.R #4
  3. 3. twitter: @phosphor m Osaka.R@phosphor m Osaka.R #4
  4. 4. R R R@phosphor m Osaka.R #4
  5. 5. R R R R OS@phosphor m Osaka.R #4
  6. 6. @phosphor m Osaka.R #4
  7. 7. “ ”“C” “Users” “masahiro“@phosphor m Osaka.R #4
  8. 8. C: .csv “C” “ ” “ .csv” Windows ¥ mac / Windows@phosphor m Osaka.R #4
  9. 9. R C:/ / .csv C: .csv 2 2 “C: .csv” @phosphor m Osaka.R #4
  10. 10. 01 11 34 01@phosphor m Osaka.R #4
  11. 11. 11 “ ”@phosphor m Osaka.R #4
  12. 12. csv Windows Shift JIS Mac UTF-8 Shift JIS UTF-8 2 UTF-8 Shift JIS Windows TeraPad Mac CotEditor@phosphor m Osaka.R #4
  13. 13. d1 <- read.csv("C: .csv")R@phosphor m Osaka.R #4
  14. 14. d1 <- read.csv("C: .csv")@phosphor m Osaka.R #4
  15. 15. d1 <- read.csv("C:/ / .csv")@phosphor m Osaka.R #4
  16. 16. d1 <- read.csv("C:/ / .csv")@phosphor m Osaka.R #4
  17. 17. setwd("C:/ ")d1 <- read.csv(" .csv")@phosphor m Osaka.R #4
  18. 18. Windows Shift@phosphor m Osaka.R #4
  19. 19. csv d1 <- read.csv("C:/ / .csv") d1 <- read.csv("C:/ / .csv", header = FALSE) d1 <- read.csv("C:/ / .csv", na.strings = "NA") csv 1 header=FALSE header=TRUE na.strings NA @phosphor m Osaka.R #4
  20. 20. d1 <- read.delim("C:/ / .txt") read.delim read.csv@phosphor m Osaka.R #4
  21. 21. d1 <- read.delim("C:/ / .txt") read.delim read.csv@phosphor m Osaka.R #4
  22. 22. R csv Excel csv foreign@phosphor m Osaka.R #4
  23. 23. library(foreign)d1 <- read.spss("C:/ / .sav", to.data.frame = TRUE, use.missings = TRUE)# SPSS# to.data.frame data.frame# use.missingsd1 <- read.dta("C:/ / .dta")# statad1 <- read.xport("C:/ / .stx")# SAS@phosphor m Osaka.R #4
  24. 24. csVwrite.csv(d1, file = "C:/ / .csv", na = "NA", row.names=FALSE) data.frame na NA row.names=FALSE@phosphor m Osaka.R #4
  25. 25. library(foreign)write.dta(d1, "C:/ / .dta")write.foreign(d1, datafile = "C:/ / .csv", codefile = "C:/ / .sps", package = "SPSS") stata write.dta write.foreign csv + datafile csv codefile package ”SPSS” ”Stata” ”SAS” write.csv@phosphor m Osaka.R #4
  26. 26. Windows Shift JIS UTF-8 csv@phosphor m Osaka.R #4

×