search for: rectanglar

Displaying 2 results from an estimated 2 matches for "rectanglar".

Did you mean: rectangular
2007 Nov 21
2
Reconstruct array dataset
Hi there I have an interesting problem: My csv file is of array dimensions [12,50], but it was saved the wrong way: there should be only 11 colums. What happens now if I read it into R is that the whole data set is shifted ( in the first row, the last column contains already the first value of the supposed second row and so on...) how can I tell R to switch after 11 read values to the next row,
2007 Nov 23
0
R users in Cyprus
...ne <jrkrideau at yahoo.ca> Subject: Re: [R] Reconstruct array dataset To: marcg <mdgi at gmx.ch>, r-help at stat.math.ethz.ch Message-ID: <585689.608.qm at web32813.mail.mud.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 I seem to be missing something. How can you have a rectanglar data.frame of 12* 50 and convert it into 11 * x? 600/11 is not an integer. However leaving that minor detail aside: Let xx be the data.frame that you have read in: yy <- unlist(xx) zz <- t(matrix(yy, nrow=11)) might work. --- marcg <mdgi at gmx.ch> wrote: > Hi there >...