Skip to content

Instantly share code, notes, and snippets.

@mrchypark
Created April 15, 2017 12:29
Show Gist options
  • Save mrchypark/e5e8814db44dba19696c618bc0e52652 to your computer and use it in GitHub Desktop.
Save mrchypark/e5e8814db44dba19696c618bc0e52652 to your computer and use it in GitHub Desktop.
# 샘플 데이터를 만듬
testData <- data.frame(LET=sample(LETTERS,1000,replace = T),
NUM=sample(1:10,1000,replace = T),
stringsAsFactors = F)
# 데이터를 확인함
head(testData,100)
# 정렬된 데이터를 확인함
head(data[order(data$LET,data$NUM),])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment