[R] resizing data
smartpink111 at yahoo.com
Sat Jan 26 00:18:08 CET 2013
----- Original Message -----
From: emorway <emorway at usgs.gov>
To: r-help at r-project.org
Sent: Friday, January 25, 2013 5:29 PM
Subject: Re: [R] resizing data
I played around with your example on the smaller dataset, and it seemed like
it was doing what I wanted. However, applying it to the larger problem, I
didn't get a resized 2D dataset that preserved the order I was hoping for.
Hopefully the following illustrates the larger problem:
# Now set the 70,000th element to 1 to find out where it ends up?
# Iterating on columns first, then rows, the 70,000th element is
# at index [10000,7]
It should be:
If it was transposed:
#  376 546
# Does 1 appear at index [129,112] as I expect
# (128 complete rows x 546 cols = 69888 + 112 = 70,000) thus, row 129, col
#  0
# No, so where is it?
#  123293
Where is that?
View this message in context: http://r.789695.n4.nabble.com/resizing-data-tp4656653p4656662.html
Sent from the R help mailing list archive at Nabble.com.
R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help