Some basics for data processing in R