This is what I've been doing it it creates really long column and row labels. I'm been trying to the cor(x, method =c(.....)) but I can't seem to make it work. I've put quotes around all my variables, I've put in data.frame(....) with everything below in it. Nothing's working.
As you can clearly see, Final_Project_Data is the csv document title but I don't want it in matrix labels. Is there a way to create a correlation matrix without "Final Project Data "Variable Label" or it's just my variable label?
What I've put below is as simple and as clean as I can make my script too.
Maybe you’ve already sorted this out, but it’s good to understand the difference between:
dataframe$variable1, dataframe$variable2 supplies separate vectors that happen to have been pulled from dataframe, but may as well have come from anywhere
and
dataframe[, c("variable1", "variable2")] supplies a data frame, filtered to include only the variable1 and variable2 columns
Lots of us start out just mashing the buttons and hoping for the best! (I certainly did ) A good reference for learning the basics can really help. This thread has a ton of good resources:
(Despite the original topic, many of the suggestions are suitable for people with all sorts of previous experience levels)