Re: [R] R2HTML giving NULL in output

2011-10-19 Thread Joshua Wiley
, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Applying function with separate dataframe (calibration file) supplying some inputs

2011-10-19 Thread Joshua Wiley
and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r

Re: [R] Sparse covariance estimation (via glasso) shrinking to a nonzero constant

2011-10-18 Thread Joshua Wiley
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group

Re: [R] Latex question

2011-10-17 Thread Joshua Wiley
, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list

Re: [R] need help in pausing a script

2011-10-16 Thread Joshua Wiley
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting

Re: [R] Editor for RD file?

2011-10-16 Thread Joshua Wiley
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer

Re: [R] Suppressing the Intercept in lm() when using a dataframe for the model

2011-10-16 Thread Joshua Wiley
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D

Re: [R] SLOW split() function

2011-10-13 Thread Joshua Wiley
mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical

Re: [R] strsplit question

2011-10-12 Thread Joshua Wiley
and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r

Re: [R] Using a for loop

2011-10-12 Thread Joshua Wiley
-project.org/posting-guide.html ^^^ link to the posting guide I mentioned and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group

Re: [R] goofy class question

2011-10-12 Thread Joshua Wiley
. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] strange behavior with R.dll

2011-10-12 Thread Joshua Wiley
I regularly have the R.dll removed. AFAI can tell, it depends partly on how aggressive a heuristic level you have chosen, in part I think related to the number of users. In any case you can restore it and set a rule to have it ignored. I suppose you could tell symantec, but it's never been

Re: [R] strange behavior with R.dll

2011-10-12 Thread Joshua Wiley
On Oct 12, 2011, at 17:23, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 11-10-12 7:54 PM, Joshua Wiley wrote: I regularly have the R.dll removed. AFAI can tell, it depends partly on how aggressive a heuristic level you have chosen, in part I think related to the number of users

Re: [R] SLOW split() function

2011-10-11 Thread Joshua Wiley
and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r

Re: [R] SLOW split() function

2011-10-11 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https

Re: [R] multicore by(), like mclapply?

2011-10-10 Thread Joshua Wiley
. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] multicore by(), like mclapply?

2011-10-10 Thread Joshua Wiley
I could be waay off base here, but my concern about presplitting the data is that you will have your data, and a second copy of our data that is something like a list where each element contains the portion of the data for that split. Good speed wise, bad memory wise. My hope with the

Re: [R] sapply(pred,cor,y=resp)

2011-10-09 Thread Joshua Wiley
, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] convert apply to lappy

2011-10-09 Thread Joshua Wiley
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University

Re: [R] SPlus to R

2011-10-05 Thread Joshua Wiley
. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Efficient way to do a merge in R

2011-10-04 Thread Joshua Wiley
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer

Re: [R] Best method to add unit information to dataframe ?

2011-10-03 Thread Joshua Wiley
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting

Re: [R] How to format R superscript 2 followed by = value

2011-10-02 Thread Joshua Wiley
-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II

Re: [R] function recode within sapply

2011-10-02 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] Poor performance of Optim

2011-10-01 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] getting list of data.frame names

2011-10-01 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] Supporting R/Membership

2011-09-26 Thread Joshua Wiley
as trustworthy are the developers, which gets right back to R core dealing with administration. On Sun, Sep 25, 2011 at 4:50 PM, Ben Bolker bbol...@gmail.com wrote: Spencer Graves spencer.graves at structuremonitoring.com writes: On 9/25/2011 9:57 AM, Berend Hasselman wrote: Joshua Wiley-2

[R] Supporting R/Membership

2011-09-24 Thread Joshua Wiley
on this for well over a year and kept putting it off. If this is something that useRs and the R Foundation would be interested in, I would be happy to help work on setting something up and maintaining it. Cheers, Josh -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS

Re: [R] Tobit Fixed Effects

2011-09-24 Thread Joshua Wiley
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer

Re: [R] two ecdf in the same figure

2011-09-24 Thread Joshua Wiley
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles

Re: [R] Tobit Fixed Effects

2011-09-24 Thread Joshua Wiley
! Felipe Nunes CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Sat, Sep 24, 2011 at 3:38 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Can you fit a simpler model successfully?  I would play around with all your RHS variables to try to see

Re: [R] How to turn a LaTeX Sweave file (Rnw) into .HTML/.odf/.docx? (under windows)

2011-09-22 Thread Joshua Wiley
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer

Re: [R] Extracting a a chunk of text from a pdf file

2011-09-18 Thread Joshua Wiley
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student

Re: [R] Add png image outside plot borders

2011-09-18 Thread Joshua Wiley
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D

Re: [R] Add png image outside plot borders

2011-09-18 Thread Joshua Wiley
() says that the corner values have to be within the plot region. As I said before, I want the logo to be down on the level of my copyright text, outside the plot region. Thanks! On Sun, Sep 18, 2011 at 1:26 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi Amelia, Can you give an example

Re: [R] Referring to an object by a variable containing its name: 6 failures

2011-09-17 Thread Joshua Wiley
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group

Re: [R] completing missing samples

2011-09-17 Thread Joshua Wiley
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley

Re: [R] completing missing samples

2011-09-17 Thread Joshua Wiley
On Sat, Sep 17, 2011 at 1:43 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi Eran, You have already gotten some suggestions from Michael, but I think that Rich is correct to question the rational.  Any mechanism you choose to replace the missing values will impose its structure on the data

Re: [R] R shell line width

2011-09-16 Thread Joshua Wiley
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health

Re: [R] Tobit Fixed Effects

2011-09-15 Thread Joshua Wiley
, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Reading R Code aloud

2011-09-14 Thread Joshua Wiley
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University

Re: [R] Matrix multiplication gives different results some of the times (NaN)

2011-09-13 Thread Joshua Wiley
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R

Re: [R] Possible to access a USB volume by name in windows

2011-09-07 Thread Joshua Wiley
familiar with them. Cheers, Josh On Sep 7, 2011, at 8:30, Gene Leynes gleyne...@gmail.com wrote: Thank you. This is a nice trick, and it works fine for my needs. It's surprising that there isn't a simple way to get to the drive name. On Tue, Sep 6, 2011 at 10:41 PM, Joshua Wiley jwiley.ps

Re: [R] Searching the console

2011-09-07 Thread Joshua Wiley
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] Possible to access a USB volume by name in windows

2011-09-06 Thread Joshua Wiley
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS

Re: [R] sd help

2011-09-03 Thread Joshua Wiley
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting

Re: [R] Evaluate an expresion comming from string

2011-08-31 Thread Joshua Wiley
) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer

Re: [R] Plotting multiple vectors in one window?

2011-08-30 Thread Joshua Wiley
-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Generating a sequence of diagonal matrices

2011-08-30 Thread Joshua Wiley
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] read.table: deciding automatically between two colClasses values

2011-08-28 Thread Joshua Wiley
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles

Re: [R] Comparing skewness of two distributions

2011-08-26 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] dummy variables from factors

2011-08-23 Thread Joshua Wiley
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group

Re: [R] Sweave doesn't work

2011-08-22 Thread Joshua Wiley
-57790 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua

Re: [R] Two-levels labels on x-axis?

2011-08-22 Thread Joshua Wiley
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer

Re: [R] How can I do these simulations with R code

2011-08-22 Thread Joshua Wiley
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting

Re: [R] GLM question

2011-08-22 Thread Joshua Wiley
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] Raw epoch time from XTS

2011-08-21 Thread Joshua Wiley
is probably the best solution. Thanks! -- Noah Silverman UCLA Department of Statistics 8117 Math Sciences Building Los Angeles, CA 90095 On Aug 20, 2011, at 1:03 AM, Joshua Wiley wrote: Hi Noah, This is one of those cases where following the posting guide (particularly the minimal

Re: [R] Sweave doesn't work

2011-08-21 Thread Joshua Wiley
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group

Re: [R] Changing data scales

2011-08-21 Thread Joshua Wiley
-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II

Re: [R] Raw epoch time from XTS

2011-08-20 Thread Joshua Wiley
. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] extract variables from model formula

2011-08-17 Thread Joshua Wiley
~ factor(cyl)+I(mpg^2), data = mtcars) nd-get_all_vars(m,data=mtcars) is what you are after. cheers. Am 17.08.2011 04:27, schrieb Joshua Wiley: Hi All, I am writing a function to predict values based on a model.  It works fine as long as the formula just uses regular variable names.  I am

[R] extract variables from model formula

2011-08-16 Thread Joshua Wiley
object? My best idea right now is to use a regular expression to strip away everything before and after (). This would break down for things like I(cyl^2), though. Any ideas or thoughts would be welcome. Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS

Re: [R] A small nag

2011-08-14 Thread Joshua Wiley
commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org

Re: [R] A small nag

2011-08-14 Thread Joshua Wiley
=== On Mon, Aug 15, 2011 at 12:09 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi Chintanu, Do you want the correlation of columns 3:10 of file with the y vector or do you want a correlation matrix of all variables? ## correlation between cols 3:10 and y sapply(file[1:47231, 3:10

Re: [R] predict() function on a list made up of a system of equations

2011-08-14 Thread Joshua Wiley
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] A small nag

2011-08-14 Thread Joshua Wiley
of a simulation or something. I have a sense that a smidge of clever work with matrices could avoid the apply() call, but its not jumping out at me. Cheers! Josh Thanks, Chintanu === On Mon, Aug 15, 2011 at 1:12 PM, Joshua Wiley

Re: [R] A small nag

2011-08-14 Thread Joshua Wiley
available that can be used to check whether a variable is vector, matrix or dataframe ? is.vector() is.matrix() is.data.frame() HTH, Josh Thank you. regards, Chintanu = On Mon, Aug 15, 2011 at 2:03 PM, Joshua Wiley jwiley.ps

Re: [R] degrees of freedom does not appear in the summary lmer :(

2011-08-13 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] compiling r from source on Windows 7 (64 bit)

2011-08-13 Thread Joshua Wiley
, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https

Re: [R] seeking advice about rounding error and %%

2011-08-13 Thread Joshua Wiley
, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list

Re: [R] Using get() or similar function to access more than one element in a vector

2011-08-13 Thread Joshua Wiley
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University

Re: [R] select from matrix

2011-08-08 Thread Joshua Wiley
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California

Re: [R] If find x, then y, else do nothing

2011-08-08 Thread Joshua Wiley
) foo - function(x) {  if (any(grepl(4, x))) {    x - recode(x, 2 = 1; 4 = 2)  }  return(x) } ## do it dat$test - with(dat, ave(Slide1_RESP, Subject, FUN = foo)) On Fri, Aug 5, 2011 at 4:56 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: On Fri, Aug 5, 2011 at 2:34 PM, Edward Patzelt patze

Re: [R] FW: Help on reshape2 data frame rearrangement

2011-08-08 Thread Joshua Wiley
commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r

Re: [R] If find x, then y, else do nothing

2011-08-08 Thread Joshua Wiley
datasets methods base other attached packages: [1] car_2.0-10 nnet_7.3-1 MASS_7.3-11 Hmisc_3.8-3 survival_2.36-5 RODBC_1.3-2 loaded via a namespace (and not attached): [1] cluster_1.13.3 grid_2.12.2 lattice_0.19-17 tools_2.12.2 On Mon, Aug 8, 2011 at 10:43 AM, Joshua Wiley

Re: [R] merging lists within lists via time stamp

2011-08-08 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] If find x, then y, else do nothing

2011-08-08 Thread Joshua Wiley
originally had 1 2. dat$respalt - with(dat, ave(Slide1_RESP, factor(grid), FUN = foo)) head(dat$respalt,20 + ) [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 On Mon, Aug 8, 2011 at 11:14 AM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hmm, well I suppose it technically does touch in some

Re: [R] Display a DataFrame in a data grid

2011-08-08 Thread Joshua Wiley
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University

Re: [R] Var-Cov matrix from LMER function

2011-08-08 Thread Joshua Wiley
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group

Re: [R] If find x, then y, else do nothing

2011-08-08 Thread Joshua Wiley
NA's.  Only 35 out of 17,000 trials, but could this screw up the function? unique(blah$resp) [1] 2 1 NA 4 On Mon, Aug 8, 2011 at 11:46 AM, Joshua Wiley jwiley.ps...@gmail.com wrote: These are shots in the dark, but you could try: running it in a clean R session with only the necessary

Re: [R] How to extract sublist from a list?

2011-08-07 Thread Joshua Wiley
these a little bit? What does '[[' means? Thanks a lot, Richard Joshua Wiley-2 wrote: On Thu, Aug 4, 2011 at 12:12 AM, Ashim Kapoor lt;ashimkap...@gmail.comgt; wrote: How would we do this problem looping over seq(1:2) ? Because this goes to an email list serv, it is good practice

Re: [R] Printing data frame with million rows

2011-08-07 Thread Joshua Wiley
, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Removing funny characters from a column of a data frame

2011-08-07 Thread Joshua Wiley
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https

Re: [R] trouble with uninstall

2011-08-07 Thread Joshua Wiley
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] reshape::rename package unable to install !?!

2011-08-07 Thread Joshua Wiley
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] Creating a scatterplot with sequential dates on x-axis?

2011-08-07 Thread Joshua Wiley
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] Help on reshape2 data frame rearrangement

2011-08-07 Thread Joshua Wiley
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https

Re: [R] 2 questions on matrix manipulation in R

2011-08-07 Thread Joshua Wiley
-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https

Re: [R] Installing R-Packages from zipp file

2011-08-06 Thread Joshua Wiley
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] multcomp::glht() doesn't work for an incomplete factorial using aov()?

2011-08-06 Thread Joshua Wiley
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles

Re: [R] row*matrix

2011-08-06 Thread Joshua Wiley
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r

Re: [R] Exporting ALL generated results (long list) from R

2011-08-06 Thread Joshua Wiley
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California

Re: [R] Limited number of principal components in PCA

2011-08-05 Thread Joshua Wiley
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los

Re: [R] Loop: noob question

2011-08-05 Thread Joshua Wiley
of the other books I recommended (except Data Manipulation with R) are written by people who also develop and maintain R Core or substantial R packages (i.e., they are experts in what they are talking about). Cheers, Josh -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS

Re: [R] If find x, then y, else do nothing

2011-08-05 Thread Joshua Wiley
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology

Re: [R] If find x, then y, else do nothing

2011-08-05 Thread Joshua Wiley
foo - function(x) { if (any(grepl(4, x))) { x - recode(x, 2 = 1; 4 = 2) } return(x) } ## do it dat$altval - with(dat, ave(val, subject, FUN = foo)) Cheers, Josh On Fri, Aug 5, 2011 at 4:25 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi Edward, You can try something like

Re: [R] jagged array (matrices of different dimensions)

2011-08-05 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com

Re: [R] Possible bug of QR decomposition in package Matrix

2011-08-04 Thread Joshua Wiley
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https

Re: [R] How to extract sublist from a list?

2011-08-04 Thread Joshua Wiley
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group

Re: [R] How to extract sublist from a list?

2011-08-04 Thread Joshua Wiley
On Thu, Aug 4, 2011 at 1:40 AM, Ashim Kapoor ashimkap...@gmail.com wrote: On Thu, Aug 4, 2011 at 1:02 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: On Thu, Aug 4, 2011 at 12:12 AM, Ashim Kapoor ashimkap...@gmail.com wrote: How would we do this problem looping over seq(1:2) ? Because

<    1   2   3   4   5   6   7   8   9   10   >