Skip to content

Instantly share code, notes, and snippets.

@jacksonpradolima
Created November 24, 2016 19:29
Show Gist options
  • Save jacksonpradolima/2eeac87390268eebb4e57862f076be8a to your computer and use it in GitHub Desktop.
Save jacksonpradolima/2eeac87390268eebb4e57862f076be8a to your computer and use it in GitHub Desktop.
prepare.data.statistical.test <- function(csvName = "teste.csv"){
#read the data
my_data <- read.csv(csvName, sep=";")
#replace the rownames with the instance (problem) names
row.names(my_data) <- my_data$Instance
#remove the Instance column
my_data <- my_data[,!(names(my_data) %in% c("Instance"))]
return(my_data)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment