So here's my problem:
I have a bunch of data about sound production and where the emphasis falls in a word. What I'm trying to do is determine if the difference between production on stressed and unstressed syllables is significant. The problem is that when I try to use the cor() function, the data sets aren't the same length. I have about 500 instances of stressed syllables, but only 400 of unstressed syllables. I'm very new to r, but here's the code I've attempted:
data <- read.csv('D:/blaaah/Stressed.csv', header=TRUE)
var1 <- data$intdiff
data <- read.csv('D:/blaaah/Unstressed.csv', header=TRUE)
var2 <- data$intdiff
cor(var1, var2)
Of course, I get an error because the data sets are different lengths. So how do I check for significance between the sets without having them be the same length?
Thanks a bunch!
P.S. Just ask if my question isn't clear. I'm afraid I sometimes assume everyone knows what I'm doing...