Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

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

8.457 visualizaciones

Publicado el

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

  • Sé el primero en comentar

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

  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

×