Re: [R] r data structures

2012-08-17 Thread Patrick Burns
meDataStructures.htm - On Aug 16, 2012, at 11:49 AM, Schumacher, Jay S wrote: hi, i'm trying to understand r data structures. i see that vectors, matrix, factors and arrays have a "dimension." there seems to be no mention of dimensionality anywhere for l

Re: [R] r data structures

2012-08-16 Thread R. Michael Weylandt
On Thu, Aug 16, 2012 at 5:44 PM, MacQueen, Don wrote: > Whereas for a matrix or data frame, one must supply *two* index values > (even if one of them may be omitted) > mydf[ 1 , 3 ] > mydf[ , 5 ] > > mymat[ 2:5 , ] > mymat[ 3 , 4:6 ] > are valid statements. > Not quite: x <- matr

Re: [R] r data structures

2012-08-16 Thread MacQueen, Don
I don't disagree with Michael, but I would add that to me it also depends. If one thinks in terms of subsetting an object (for objects that can be subsetted) To subset a vector, one supplies *one* value for the index: myvector[3] myvector[ 2:5 ] are valid statements. Similarly for a list m

Re: [R] r data structures

2012-08-16 Thread David Winsemius
s not one that is in accord with "An Introduction to R" or with typical R discourse. -- David. - On Aug 16, 2012, at 11:49 AM, Schumacher, Jay S wrote: hi, i'm trying to understand r data structures. i see that vect

Re: [R] r data structures

2012-08-16 Thread Schumacher, Jay S
quire as to the length of a list, so might, if forced to, admit that lists have one dimension, length. But I do not think it is helpful to think of lists as having dimension. Certainly, lists do not have two dimensions. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627

Re: [R] r data structures

2012-08-16 Thread R. Michael Weylandt
On Thu, Aug 16, 2012 at 4:50 PM, Schumacher, Jay S wrote: > > are these correct/accurate/sensible statements: > > a vector is a one dimensional object. > a matrix is a two dimensional object. > > a list is a one dimensional object. > > i'm working from this web page: > http://www.agr.kul

Re: [R] r data structures

2012-08-16 Thread Schumacher, Jay S
s.htm - On Aug 16, 2012, at 11:49 AM, Schumacher, Jay S wrote: > > > hi, > i'm trying to understand r data structures. i see that vectors, > matrix, factors and arrays have a "dimension." > there seems to be no

Re: [R] r data structures

2012-08-16 Thread MacQueen, Don
rtainly, lists do not have two dimensions. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 8/16/12 11:49 AM, "Schumacher, Jay S" wrote: > > >hi, > i'm trying to understand r data structures.

Re: [R] r data structures

2012-08-16 Thread David Winsemius
On Aug 16, 2012, at 11:49 AM, Schumacher, Jay S wrote: hi, i'm trying to understand r data structures. i see that vectors, matrix, factors and arrays have a "dimension." there seems to be no mention of dimensionality anywhere for lists or dataframes. can i consider l

Re: [R] r data structures

2012-08-16 Thread Steve Lianoglou
Hi, On Thu, Aug 16, 2012 at 2:49 PM, Schumacher, Jay S wrote: > > > hi, > i'm trying to understand r data structures. i see that vectors, matrix, > factors and arrays have a "dimension." Out of curiosity, where do you "see" that vectors and fac

[R] r data structures

2012-08-16 Thread Schumacher, Jay S
hi, i'm trying to understand r data structures. i see that vectors, matrix, factors and arrays have a "dimension." there seems to be no mention of dimensionality anywhere for lists or dataframes. can i consider lists and frames to be of fixed dimension 2?

Re: [R] Methods to explore R data structures

2010-05-28 Thread Timothy Wu
Great, these are valuable tips. Thanks both of you. I appreciate it. :) Timothy [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Methods to explore R data structures

2010-05-27 Thread Greg Snow
age- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Timothy Wu > Sent: Thursday, May 27, 2010 3:14 AM > To: r-help@r-project.org > Subject: [R] Methods to explore R data structures > > Hi, > > I'm very confused about R structu

Re: [R] Methods to explore R data structures

2010-05-27 Thread Martin Morgan
On 05/27/2010 02:13 AM, Timothy Wu wrote: > Hi, > > I'm very confused about R structures and the methods to go with them. > I'm using R for microarray analysis with Bioconductors. Suppose > without reading the documentations, what's the best way to explore a > data structure when you know nothing a

[R] Methods to explore R data structures

2010-05-27 Thread Timothy Wu
Hi, I'm very confused about R structures and the methods to go with them. I'm using R for microarray analysis with Bioconductors. Suppose without reading the documentations, what's the best way to explore a data structure when you know nothing about it? I am currently using is() / class() to see

Re: [R] Data Structures

2008-03-12 Thread Rolf Turner
?list On 13/03/2008, at 3:50 PM, Scott Romans wrote: > Matlab has an aggregate variable called a structure, which consists of > component variables each of which can be of a different data type and > dimension. For example, I can have a single structure Model which > consists of Model.variable1,

Re: [R] Data Structures

2008-03-12 Thread Erik Iverson
Hello - Scott Romans wrote: > Matlab has an aggregate variable called a structure, which consists of > component variables each of which can be of a different data type and > dimension. For example, I can have a single structure Model which > consists of Model.variable1, Model.variable2, and

[R] Data Structures

2008-03-12 Thread Scott Romans
Matlab has an aggregate variable called a structure, which consists of component variables each of which can be of a different data type and dimension. For example, I can have a single structure Model which consists of Model.variable1, Model.variable2, and Model.variable3, where variable1 i