Tag: cleaning

  • R Commands for Cleaning Data

    This post is notes from the Coursera Data Analysis Course. Here are some R commands that might serve helpful for cleaning data. String Replacement sub() replace the first occurrence gsub() replaces all occurrences Quantitative Variables in Ranges cut(data$col, seq(0,100, by=10)) breaks the data up by the range it falls into, in this example: whether the…