[R] Referencing a component of a large object (Error: slot NULL)

2015-08-28 Thread Andrea Lamont
reproducible code, however, I obtain this object through the package 'mi' and is computationally intensive. I'm not sure if it makes it easier for folks. Let me know. Any ideas? -- Andrea Lamont, PhD Post-Doctoral Fellow University of South Carolina Columbia, SC 29208 *Please consider

[R] Referencing a component of a large object (Error: slot NULL)

2015-08-28 Thread Andrea Lamont
I am running a simulation and need to refer to a matrix of parameters from a large object. Here is a snippet of the object structure itself: Formal class 'mi' [package mi] with 3 slots ..@ call : language .local(y = y, n.chains = ..2, max.minutes = 2) ..@ data :List of 100

[R] set.cor/mat.regress

2015-01-07 Thread Andrea Lamont
not being bound. I tried other options like square=FALSE to no avail. It seems like such a straightforward function, I'm not sure what I'm doing wrong. Any help is appreciated. Thanks Andrea -- Andrea Lamont, PhD Post-Doctoral Fellow University of South Carolina Columbia, SC 29208 *Please

[R] ifelse, apply, if

2013-11-27 Thread Andrea Lamont
this efficiently? Thanks, Andrea -- Andrea Lamont, MA Clinical-Community Psychology University of South Carolina Barnwell College Columbia, SC 29208 Please consider the environment before printing this email. CONFIDENTIAL: This transmission is intended for the use of the individual(s) or entity

[R] if, apply, ifelse

2013-11-27 Thread Andrea Lamont
Hello: This seems like an obvious question, but I am having trouble answering it. I am new to R, so I apologize if its too simple to be posting. I have searched for solutions to no avail. I have data that I am trying to set up for further analysis (training data). What I need is 12 groups based

Re: [R] FW: Transposing the output of 'table'

2013-10-06 Thread Andrea Lamont
and provide commented, minimal, self-contained, reproducible code. -- Andrea Lamont, MA Clinical-Community Psychology University of South Carolina Barnwell College Columbia, SC 29208 Please consider the environment before printing this email. CONFIDENTIAL: This transmission is intended for the use

[R] pulling out coefficients

2013-09-23 Thread Andrea Lamont
. Thoughts on how to use a loop to call coefficients? Thanks, -- Andrea Lamont, MA Clinical-Community Psychology University of South Carolina Barnwell College Columbia, SC 29208 Please consider the environment before printing this email. CONFIDENTIAL: This transmission is intended for the use

[R] multiple core

2013-08-20 Thread Andrea Lamont
that there is a multicore and parallel package, but I am not understanding how to use these packages. Is there a straightforward way to tell R to use more than one processor? In my search, I found this: Sys.setenv(MC_CORES=12) but am unsure what it does... Thanks! Andrea -- Andrea Lamont, MA Clinical-Community

Re: [R] flexible approach to subsetting data

2013-07-24 Thread Andrea Lamont
of Anthropology Texas AM University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of David Winsemius Sent: Tuesday, July 23, 2013 1:12 PM To: David Winsemius Cc: R help; Andrea Lamont

Re: [R] flexible approach to subsetting data

2013-07-24 Thread Andrea Lamont
] On Behalf Of David Winsemius Sent: Tuesday, July 23, 2013 1:12 PM To: David Winsemius Cc: R help; Andrea Lamont Subject: Re: [R] flexible approach to subsetting data On Jul 23, 2013, at 10:49 AM, David Winsemius wrote: On Jul 23, 2013, at 10:01 AM, Adams, Jean wrote: Check out the reshape

[R] flexible approach to subsetting data

2013-07-23 Thread Andrea Lamont
and edits each time 'm' changes. Is there a flexible way to approach this? I'm inclined to use a for loop, but know that 1) this is generally inefficient and 2) am having trouble with the coding regardless. Any suggestions are appreciated. Thanks, Andrea -- Andrea Lamont, MA Clinical-Community