Re: [R] Retrieve by Id from an R list

2012-02-13 Thread Petr Savicky
On Mon, Feb 13, 2012 at 02:13:41PM +0530, Suranga Kasthurirathne wrote: > Hi everyone, > > I'm using the poLCA module for some analysis work. > Basically, Im using the command >poLCA(f, data=response,nclass=2) > > This returns a poLCA object (a list) > > >From this data, I need to retrieve certa

[R] Retrieve by Id from an R list

2012-02-13 Thread Suranga Kasthurirathne
Hi everyone, I'm using the poLCA module for some analysis work. Basically, Im using the command >poLCA(f, data=response,nclass=2) This returns a poLCA object (a list) >From this data, I need to retrieve certain indexes, such as[[5]] as seen below. [[5]] Pr(1) Pr(2)