Displaying 1 result from an estimated 1 matches for "acrry".
Did you mean:
acr
2009 Dec 04
2
writing 'output.csv' file
Dear R helpers
Suppose
M <- c(1:10) # length(M) = 10
N <- c(25:50) # length(N) = 26
I wish to have an outut file giving M and N. So I have tried
write.csv(data.frame(M, N), 'output.csv', row.names = FALSE)
but I get the following error message
Error in data.frame(M, N) :
arguments imply differing number of rows: 10, 26
How do I modify my write.csv