¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

Getting Clean Data

Noel Abastillas Inglés 10 fichas

Fichas del conjunto (10)

  1. 1file.exists("directoryName")Checks if to see if the directory exists
  2. 2setwd("/Users)an absolute path for setting the working directory
  3. 3setwd("../data)relative path that moves up a directory
  4. 4dir.create("directoryName")creates a directory if it doesn't exist
  5. 5if !file.exists("data") {dir.create("data")}this line of code checks if a file exists, and creates one if it doesn't
  6. 6download.file(url, destfile = "", method = "curl")The function to download a function reproducibly
  7. 7listfiles("")shows you the files in the wd
  8. 8dateDownloaded <- date()Use this to record the date of downloaded file incase of updates or changes.
  9. 9Parameters for download.file()file
    header = TRUE if there are headers
    row.name = TRUE if there are row names
    nrows = how many rows you want to read
    quote = You can tell if quoted values, resolves trouble if quotes are in file
    na.strings = the character that means it's a missing value
    skip = how many lines to skip before you start reading
  10. 10read.xlsx()need to use sheetIndex =
    header =
    colIndex = 2:3
    row Index = 1:4

Información

Descripción
Fichas sobre Getting Clean Data, creado por Noel Abastillas el 17/07/2017.
Creado por
Noel Abastillas
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?