Re: [R] data.fram zero's

2009-04-09 Thread Dimitris Rizopoulos
well, you can first create a matrix and then turn into a data frame, e.g., mat <- matrix(0, 5, 10) as.data.frame(mat) I hope it helps. Best, Dimitris Duijvesteijn, Naomi wrote: Hi all, A simple question which I don’t seem to be able to solve: I want to make a data.frame of 36

[R] data.fram zero's

2009-04-09 Thread Duijvesteijn, Naomi
Hi all, A simple question which I don’t seem to be able to solve: I want to make a data.frame of 360 rows and 94228 column with only zero’s without having to type all these zero’s ;-) What is the easiest method? Thanks, Naomi Disclaimer: De inf