Re: [R] scatterplot matrix with ggplot2

2010-01-09 Thread Ista Zahn
__ 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. -- Ista Zahn Graduate student University of Rochester Department

Re: [R] strsplit

2010-06-01 Thread Ista Zahn
Another option is to use the colsplit() function (in the reshape package): testdata - data.frame(sp = c(GenusA_SpeciesC_Tree, GenusA_SpeciesF_Tree, GenusB_SpeciesA_Shrub), stringsAsFactors=FALSE) library(reshape) testdata - cbind(testdata, colsplit(testdata$sp, split=_, names=c(Genus, Species,

Re: [R] Using R with Web services

2010-06-01 Thread Ista Zahn
Hi Marcos, If your server is running Apache I highly recommend looking at RApache (see http://biostat.mc.vanderbilt.edu/rapache/). This will not help with the database connection part though. Best, Ista On Tuesday 01 June 2010 3:05:27 pm marcos carvajalino wrote: Hello list helpers, I'm

Re: [R] Install package automatically if not there?

2010-06-24 Thread Ista Zahn
Hi Ralf, Ralf B ralf.bie...@gmail.com writes: Hi fans, is it possible for a script to check if a library has been installed? I want to automatically install it if it is missing to avoid scripts to crash when running on a new machine... You could do something like if (somepackage %in%

Re: [R] split with list

2010-07-09 Thread Ista Zahn
n.via...@libero.it n.via...@libero.it writes: Hi, Dear List I would like to ask you something concenting a better print of the R output: I have a bit data frame which has the following structure: CFISCALE RAGSOCBANNO VAR1VAR2. 9853312

Re: [R] Better way than an ifelse statement?

2010-01-13 Thread Ista Zahn
://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. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http

Re: [R] Sweave - How to use local objects in code chunks

2010-01-16 Thread Ista Zahn
-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. -- Ista Zahn Graduate student University of Rochester Department of Clinical

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread Ista Zahn
. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ 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

Re: [R] exporting text output to pdf

2010-01-18 Thread Ista Zahn
/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. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org

Re: [R] OT: Software for specific visualisation of data...ideas?

2010-01-19 Thread Ista Zahn
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. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social

[R] Simple effects with Design / rms ols() function

2010-01-21 Thread Ista Zahn
can I find simple effects of UCS for males and for females? Thanks, Ista -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] assigning a file name, or part of, to an object

2010-01-22 Thread Ista Zahn
. __ 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. -- Ista Zahn

Re: [R] testing the fit of a regression and comparing regressn models

2010-01-22 Thread Ista Zahn
. __ 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. -- Ista Zahn Graduate student University of Rochester Department

Re: [R] Title splitting function

2010-01-22 Thread Ista Zahn
://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. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org

[R] reshape package cast() function

2010-01-25 Thread Ista Zahn
1 0.19829479 -0.642097 2 2 0.37971900 -0.642097 3 3 -0.23557248 -0.642097 4 4 0.12969246 -0.642097 5 5 -0.12019995 -0.642097 6 6 0.09744247 -0.642097 7 7 -1.24467558 -0.642097 8 8 1.69505449 -0.642097 9 9 1.60714925 -0.642097 10 10 0.11961170 -0.642097 Thanks, -- Ista Zahn

Re: [R] reshape package cast() function

2010-01-25 Thread Ista Zahn
OK, I think I figured it out (each level of id corresponds to only one level of variable in m.test). Thanks, Ista On Mon, Jan 25, 2010 at 4:59 PM, Ista Zahn iz...@psych.rochester.edu wrote: Hi all, I think I'm cracking up. Please help me understand why I'm getting different results with m.test

Re: [R] Rearranging long dataframe for printing in Sweave (andrecoding a factor)

2010-01-25 Thread Ista Zahn
__ 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. -- Ista Zahn Graduate student University of Rochester Department

Re: [R] Issue using tapply

2010-01-25 Thread Ista Zahn
, self-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Formatting cgroup and factor level labels in Hmisc latex function

2010-01-26 Thread Ista Zahn
-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] reading a string vector

2010-01-26 Thread Ista Zahn
commented, minimal, self-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] problem with odfWeave

2010-01-27 Thread Ista Zahn
]] __ 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. -- Ista Zahn Graduate student University

Re: [R] problem with odfWeave

2010-01-27 Thread Ista Zahn
get rid of these text:soft-page-break/ tags that appeared for no apparent reason ? Is there a way to configure OpenOffice Writer so that he won't put such tags ? Thanks a lot, Joel On Wed, Jan 27, 2010 at 1:54 PM, Ista Zahn istaz...@gmail.com wrote: Hi Joel, Can you paste a minimal

Re: [R] selecting significant predictors from ANOVA result

2010-01-28 Thread Ista Zahn
-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. -- Ista Zahn Graduate student University of Rochester Department

Re: [R] pca in R

2010-01-30 Thread Ista Zahn
]] __ 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. -- Ista Zahn Graduate student University

Re: [R] population variance and sample variance

2010-02-02 Thread Ista Zahn
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https

Re: [R] Splitting up rows in a data frame

2010-02-03 Thread Ista Zahn
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org

Re: [R] population variance and sample variance

2010-02-04 Thread Ista Zahn
variances. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Ista Zahn Sent: Tuesday, February 02, 2010 12:03 PM

Re: [R] coefs from summary.lm of an aov object

2010-02-04 Thread Ista Zahn
, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Reg: Rgraphviz installation

2010-02-05 Thread Ista Zahn
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. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http

Re: [R] What is the equivalent function in R to xyplot in S?

2010-02-08 Thread Ista Zahn
, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Dividing one column of form xx-yy into two columns, xx and yy

2010-02-08 Thread Ista Zahn
-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. -- Ista Zahn Graduate student University of Rochester Department of Clinical

Re: [R] Missing interaction effect in binomial GLMM with lmer

2010-02-09 Thread Ista Zahn
]] __ 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. -- Ista Zahn Graduate student University of Rochester

Re: [R] read numeric values with thousands seperator from csv file

2010-02-11 Thread Ista Zahn
]] __ 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. -- Ista Zahn Graduate

Re: [R] lm function in R

2010-02-13 Thread Ista Zahn
commented, minimal, self-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] error message when downloading packages using the OS X shell

2010-02-15 Thread Ista Zahn
, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] error message when downloading packages using the OS X shell

2010-02-17 Thread Ista Zahn
, Ista Zahn istaz...@gmail.com wrote: Hi Jessica, As far as I know that's the expected behavior (at least it's not OS X-specific: I get the same on OpenSuse 11.2). What happens if you do download.packages(ape, destdir = ~/Desktop/) ? Also, out of curiosity, why are you using download.packages

[R] Package or function for selecting matched pairs?

2010-02-17 Thread Ista Zahn
packages, but they seem to need to know in advance which course is in the treatment condition and which is in the control condition. I'll be grateful for any suggestions. Best, -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org

Re: [R] Package or function for selecting matched pairs?

2010-02-17 Thread Ista Zahn
David, this is very nice. Simple and straightforward. Thank you! -Ista On Wed, Feb 17, 2010 at 10:09 AM, David Winsemius dwinsem...@comcast.net wrote: On Feb 17, 2010, at 8:55 AM, David Winsemius wrote: On Feb 17, 2010, at 8:26 AM, Ista Zahn wrote: Hi all, I am designing a study in which

Re: [R] Question about Title

2010-02-17 Thread Ista Zahn
code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Use of R in clinical trials

2010-02-17 Thread Ista Zahn
-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. -- Ista Zahn Graduate student University of Rochester Department of Clinical

Re: [R] row indexes from logical statment

2010-02-18 Thread Ista Zahn
Hi Stephen, See below. On Thursday 18 February 2010 11:01:25 am stephen sefick wrote: Is there any easy way to pull out the row indexes for a logical matching statment? #example code# foo - data.frame(name=c(rep(A, 25), rep(B, 25),

Re: [R] Subtracting one based on an If

2010-02-18 Thread Ista Zahn
I think you can just use CondoLots[CondoLots 1] - CondoLots[CondoLots 1] -1 -Ista __ 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

Re: [R] retrieve from function

2010-02-19 Thread Ista Zahn
__ 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.

Re: [R] retrieve from function

2010-02-19 Thread Ista Zahn
Hi Robert, You need to modify your function to return a value. Something like x - function(nbr){ y-rnorm(nbr) y1 - mean(y) plot(y) return(y1) } -Ista __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] how to make R plot under Linux

2010-02-19 Thread Ista Zahn
On 02/19/10 xin...@stat.psu.edu wrote: Hi, I am using R in Linux environment. How can i make plot in Linux just like in windows? There shouldn't be much difference, but we're going to need a lot more information. What version of linux, what version of R, what exactly is the problem you are

Re: [R] plot is not keeping the order of variable

2010-02-21 Thread Ista Zahn
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. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social

Re: [R] difference between date and times

2010-02-23 Thread Ista Zahn
commented, minimal, self-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] how to pass external parameters to an R script

2010-02-23 Thread Ista Zahn
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. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology

Re: [R] How to read percentage and currency data?

2010-02-24 Thread Ista Zahn
. __ 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. -- Ista Zahn Graduate student

Re: [R] ggsave in Linux

2010-02-24 Thread Ista Zahn
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R

[R] Novice programing question

2007-10-24 Thread Ista Zahn
around it. Thank you for your patience. -Ista Zahn http://izahn.homedns.org __ 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

Re: [R] Novice programing question

2007-10-24 Thread Ista Zahn
://www.cmis.csiro.au/bill.venables/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] project.org] On Behalf Of Ista Zahn Sent: Thursday, 25 October 2007 11:35 AM To: r-help@r-project.org Subject: [R] Novice programing question Hi all, I apologize for the ignorance

[R] reshape question

2008-02-08 Thread Ista Zahn
I know there are a lot of reshape questions on the mailing list, but I haven't been able to find an answer to this particular issue. I am trying to get a datafame structured like this: sub - rep(1:5) ta1 - rep(1,5) ta2 - rep(2,5) tb1- rep(3,5) tb2 - rep(4,5) DF -

[R] Newbie HLM with lme4 questions

2008-02-13 Thread Ista Zahn
Dear R listers, I know I'm breaking the rules by asking a homework related question-- I hope you'll forgive me. I am a social psychology graduate student, and the only one in my department who uses R. I successfully completed my multiple regression and structural equation modeling courses

[R] qplot (ggplot2) faceting histogram with missing values

2008-03-03 Thread Ista Zahn
Hi, I've run into a difficulty with qplot function (in the ggplot2 package). I can facet histograms even when the faceting variable contains missing values, but only so long as the faceting variable is not a factor. Example: y1 - rnorm(10) x1 - c(rep(1,5), rep(2,4), NA) x2 -

Re: [R] ReShape/cast question - sum of value in table

2009-07-11 Thread Ista Zahn
From: Mark Knecht markkne...@gmail.com To: r-help r-help@r-project.org Date: Fri, 10 Jul 2009 09:07:29 -0700 Subject: Re: [R] ReShape/cast question - sum of value in table On Fri, Jul 10, 2009 at 8:38 AM, Mark Knechtmarkkne...@gmail.com wrote: Hi Mark, You can simplify the code a bit: SNIP  

Re: [R] interacting variables in a formulae in R

2009-07-16 Thread Ista Zahn
Hi Peter, - Forwarded message -- From: Peter Schmidtke pschmid...@mmb.pcb.ub.es To: r-help@r-project.org Date: Wed, 15 Jul 2009 12:27:17 +0200 Subject: [R] interacting variables in a formulae in R Dear R Mailing Subscribers, I just have a question of how R handles

Re: [R] bug with subset and plot?

2009-08-07 Thread Ista Zahn
See http://wiki.r-project.org/rwiki/doku.php?id=tips:data-manip:drop_unused_levels -Ista Hi! I have the following problem that I beleive is a bug: I have a dataframe with one categorical and one numerical vector. The categorical vector has three levels (uc, up and vc). A plot of the

[R] help with colsplit (reshape)

2008-06-13 Thread Ista Zahn
Dear list, I'm trying to figure out how to use the reshape package to reshape data from a wide format to a long format. I have data like this pid - c(1:10) predA - c(-1,-2,-1,-2,-1,-2,-1,-2,-1,-2) predB.1 - c(0,0,0,1,1,0,0,0,1,1) predB.2 - c(2,2,3,3,3,2,2,3,3,3) predC.1 -

Re: [R] help with colsplit (reshape)

2008-06-13 Thread Ista Zahn
Thanks Hadley, with your help I'm getting things figured out. On Jun 13, 2008, at 2:09 PM, hadley wickham wrote: M.Data2 - data.frame(M.Data, colsplit(M.Data$variable, split = \ \., names = c(treatment, time))) which gave: head(M.Data2) pid variable value treatment time 1 1predA-1

[R] R vs SAS and HLM on multilevel analysis- basic question

2008-06-16 Thread Ista Zahn
On Jun 16, 2008, at 6:00 AM, [EMAIL PROTECTED] wrote: From: eugen pircalabelu [EMAIL PROTECTED] Date: June 15, 2008 7:16:09 PM EDT To: R-help [EMAIL PROTECTED] Subject: [R] R vs SAS and HLM on multilevel analysis- basic question Hi R users! I am trying to learn some multilevel analysis,

[R] lmer model building--include random effects?

2008-04-22 Thread Ista Zahn
Hello, This is a follow up question to my previous one http://tolstoy.newcastle.edu.au/R/e4/help/08/02/3600.html I am attempting to model relationship satisfaction (MAT) scores (measurements at 5 time points), using participant (spouseID) and couple id (ID) as grouping variables, and time

Re: [R] lmer model building--include random effects?

2008-04-23 Thread Ista Zahn
On Apr 23, 2008, at 8:56 AM, Douglas Bates wrote: On 4/22/08, Ista Zahn [EMAIL PROTECTED] wrote: Hello, This is a follow up question to my previous one http://tolstoy.newcastle.edu.au/R/e4/help/08/02/3600.html I am attempting to model relationship satisfaction (MAT) scores (measurements

Re: [R] Advise in R- plotting graphs

2008-05-24 Thread Ista Zahn
From: Jason Lee [EMAIL PROTECTED] Date: May 23, 2008 10:06:18 AM EDT To: r-help@r-project.org Subject: [R] Fwd: Advise in R- plotting graphs Hi I tried and it is not what im looking .. I basically issue plot(data$V1,data$V2) as the matrix have the two headers..But essentially what I

Re: [R] Newbie R question PART2

2009-04-29 Thread Ista Zahn
Hi Tena, I recommend rapache for building websites with R. See http://biostat.mc.vanderbilt.edu/rapache/ -Ista -- Forwarded message -- From: Tena Sakai tsa...@gallo.ucsf.edu To: ted.hard...@manchester.ac.uk, r-help@r-project.org Date: Tue, 28 Apr 2009 15:04:53 -0700 Subject:

[R] Help with reshape/reShape and indexing

2009-05-13 Thread Ista Zahn
Hi Dana, -- Forwarded message -- From: Dana Sevak dana.se...@yahoo.com To: r-help@r-project.org Date: Tue, 12 May 2009 23:02:00 -0700 (PDT) Subject: [R] Help with reshape/reShape and indexing Dear R Helpers, I have trouble applying reShape and reshape although I read the

Re: [R] R-help Digest, Vol 75, Issue 28

2009-05-28 Thread Ista Zahn
From: Jeff Newmiller jdnew...@dcn.davis.ca.us To: R Heberto Ghezzo, Dr heberto.ghe...@mcgill.ca Date: Wed, 27 May 2009 09:00:44 -0700 Subject: Re: [R] R in Ubunto R Heberto Ghezzo, Dr wrote:    Hello , I do not know anything abount Ubunto, but I found a Portable Ubunto for Windows

[R] runs.test question

2009-03-12 Thread Ista Zahn
Hi everyone, I have data from an experiment in which human participants were instructed to generate a random sequence of yes/no answers under 4 different conditions. I want to test how successful they were in doing this. More specifically, I want to test the null hypothesis that the 4 conditions

Re: [R] Unable to run smoother in qplot() or ggplot() - complains about knots

2009-03-13 Thread Ista Zahn
From: Christopher David Desjardins cddesjard...@gmail.com To: r-help@r-project.org Date: Thu, 12 Mar 2009 17:37:26 -0500 Subject: [R] Unable to run smoother in qplot() or ggplot() - complains about knots I get the following error when I run qplot() qplot(grade, read,data = hhm.long.m,

Re: [R] Sweave problem, with multicolumn tables from R to LaTeX

2009-04-09 Thread Ista Zahn
Hi Christian, I've been having this problem as well. There are bug reports about this (one of them mine): http://biostat.mc.vanderbilt.edu/trac/Hmisc/ticket/25 http://biostat.mc.vanderbilt.edu/trac/Hmisc/ticket/28 so hopefully the developers are aware of the problem and will address it in the next

[R] strip leading 0's

2009-01-24 Thread Ista Zahn
Dear all, Is there a simple way to strip the leading 0's from R output? For example, I want Data - data.frame(x=rnorm(10), y=x*rnorm(10), z = x+y+rnorm(10)) cor(Data) to give me x y z x 1.000 -.1038904 -.3737842 y -.1038904 1.000 .4414706 z -.3737842

[R] embed in webpage

2009-01-31 Thread Ista Zahn
Hi all, I want to use R to provide participants in psychology experiments with their scores on various measures. I looked around and found several programs designed to do this. I settled on Rpad because it seemed easy to set up and use. I have it working (see

Re: [R] Question on Sweave-Latex and examples in the Sweave Manual

2009-02-01 Thread Ista Zahn
Hi Eugene, I didn't get the attachment, so I'm not sure what error messages you are getting. But I think \usepackage{sweave} should be \usepackage{Sweave} (with a capital S). -Ista -- Forwarded message -- From: eugen pircalabelu eugen_pircalab...@yahoo.com To: R-help

Re: [R] Sweave

2009-02-03 Thread Ista Zahn
I strongly recommend using AucTeX for this. When inside a code chunk emacs behaves just like it does in ess mode, and when not in a code chunk emacs behaves like it usually does when editing LaTeX files in AucTeX. It's pretty great. As for your particular problem, I can't tell what's going on. If

[R] Sweave schunk placement

2009-02-20 Thread Ista Zahn
Dear Professor Leisch + R helpers, For the past few days I have been trying to figure out why the LaTeX endfloat package is not working with Sweave. I figured it out, and it's trivial: The endfloat package requires that \begin{table} and \end{table} commands are on their own line. But Sweave is

Re: [R] Sweave schunk placement

2009-02-20 Thread Ista Zahn
...@stats.uwo.ca wrote: On 2/20/2009 11:08 AM, Ista Zahn wrote: Dear Professor Leisch + R helpers, For the past few days I have been trying to figure out why the LaTeX endfloat package is not working with Sweave. I figured it out, and it's trivial: The endfloat package requires that \begin{table

[R] Understanding Anova (car) output

2009-03-01 Thread Ista Zahn
Dear professor Fox and R helpers, I have a quick question about the Anova function in the car package. When using the default type II SS I get results that I don't understand (see below). library(car) Data - data.frame(y=rnorm(10), x1=factor(c(rep(a,4), rep(b,6))), x2 = factor(c(rep(j, 2), rep(k,

[R] reliability, scale scores in the psych package

2009-03-10 Thread Ista Zahn
Dear Professor Revelle and R-helpers, This is a two-part question: the first part is general, and the second is specific to the psych package. First question: In the past I've constructed composite variables from questionnaire data by using rowMeans(), and then correlating items with the scale

Re: [R] reliability, scale scores in the psych package

2009-03-10 Thread Ista Zahn
snip Second question: I spent some time with the psych package trying to figure out how to use the score.items() function, and it's become clear to me that I don't understand what it's doing. I assumed that setting a key equal to -1 would result in the item being reverse scored, but I get

[R] Contrast SS

2008-11-28 Thread Ista Zahn
Hi all, Hopefully this is an easy question and I've overlooked something simple. I want to present specific contrasts in an ANOVA table. I can of course get the significance tests with summary.lm, but my adviser wants the results in ANOVA format. Here is a minimal example: x -

Re: [R] Contrast SS

2008-11-28 Thread Ista Zahn
Thank you! m.1 - aov(y ~ x) summary(m.1, split = list(x = list(groups 1 and 2 vs group 3 = 1, group 1 vs group 2 = 2))) does what I want. On Fri, Nov 28, 2008 at 12:02 PM, Richard M. Heiberger [EMAIL PROTECTED] wrote: I believe you are looking for the summary.lm() function and its split=

Re: [R] including Sweave tangled code in '.Rnw' document

2008-11-30 Thread Ista Zahn
You could achieve this from the LaTeX side of things using the attachfile package: http://www.ctan.org/tex-archive/macros/latex/contrib/attachfile/ I use this package to attach data files and R code to pdf's generated with Sweave + pdflatex, so that the entire analysis can be reproduced from a

[R] Question about the rgroup option in Hmisc latex function

2008-12-01 Thread Ista Zahn
Is there a way to use the rgroup option without creating horizontal rules separating the groups? For example, say I have the following matrix containing sample sizes, means, and standard deviations, for three groups of male and female participants: descriptives n MeanSD Male 2

[R] character count

2008-12-12 Thread Ista Zahn
Dear list, I have a variable that consists of typed responses. I wish to compute a variable equal to the number of characters in the original variable. For example: x - c(convert this to 32 because it has 32 characters, this one has 22 characters, 12 characters) [Some magic function here] x

Re: [R] character count

2008-12-12 Thread Ista Zahn
Thanks to everyone who responded. This turns out to be amazingly easy. To count characters including spaces: nchar(x) To count characters excluding spaces: nchar(gsub( *,,x)) Thanks! On Fri, Dec 12, 2008 at 11:00 AM, Petr PIKAL petr.pi...@precheza.cz wrote: Hi r-help-boun...@r-project.org

[R] Rpad graphics

2008-12-13 Thread Ista Zahn
I'm not sure this is the appropriate forum--please let me know if I should post somewhere else. I have Rpad version 1.3.0 set up on my webserver. It works, except that graphics are not displayed. They are created (i.e., when I run the example I see that graphics files are created in

Re: [R] Rpad graphics

2008-12-14 Thread Ista Zahn
wrote: Ista Zahn schreef: I'm not sure this is the appropriate forum--please let me know if I should post somewhere else. I have Rpad version 1.3.0 set up on my webserver. It works, except that graphics are not displayed. They are created (i.e., when I run the example I see that graphics

Re: [R] indexing question

2009-01-13 Thread Ista Zahn
From: baptiste auguie ba...@exeter.ac.uk To: Dimitris Rizopoulos d.rizopou...@erasmusmc.nl Date: Tue, 13 Jan 2009 09:38:09 + Subject: Re: [R] indexing question you can also look at subset, my.data.frame - data.frame(a=rnorm(10), b=factor(sample(letters[1:4], 10, replace=T)))

Re: [R] basic sweave question

2009-01-13 Thread Ista Zahn
This doesn't address your original question, but you might want to look at using the Sweash.sh script available from http://lib.stat.cmu.edu/R/CRAN/contrib/extra/scripts/. Download the file, move it to /usr/local/bin (e.g., mv Sweave.sh /usr/local/bin) and make sure it's executable (chmod +x

Re: [R] indexing question

2009-01-13 Thread Ista Zahn
On Tue, Jan 13, 2009 at 9:53 AM, Ista Zahn istaz...@gmail.com wrote: From: baptiste auguie ba...@exeter.ac.uk To: Dimitris Rizopoulos d.rizopou...@erasmusmc.nl Date: Tue, 13 Jan 2009 09:38:09 + Subject: Re: [R] indexing question you can also look at subset

Re: [R] xtable, sweave and resizebox

2009-08-10 Thread Ista Zahn
Hi again, one last annoying thing: how to deal with %, always when I use sweave to get a latex document the % comes as a comment and I cannot have % in my tables, how to sort out this annoying detail? thanks! Regards Welma Hi Welma, You need to escape the % sign, just as you would if you

[R] Off-topic: New website using R

2009-08-18 Thread Ista Zahn
Dear list, Sorry for the off-topic post. I've recently built a website using R and Rapache to process survey and reaction time data. I'm using ggplot2 to generate graphical reports for participants, and thought some of you might be interested in taking a look. I'd appreciate any feedback on the

[R] how to pass user input to a function?

2009-08-25 Thread Ista Zahn
but feels like a hack and results in many temp files### cat('print(mean(', GET$pass.var,'))', file=tmp.R,sep=) source(tmp.R) [1] 15.5 ###this seems promising but I can't figure it out### substitute(mean(x), list(x=GET$pass.var)) mean(b) ###is there a better way?### Thanks! -- Ista Zahn

Re: [R] how to pass user input to a function?

2009-08-25 Thread Ista Zahn
it out### substitute(mean(x), list(x=GET$pass.var)) mean(b) ###is there a better way?### Thanks! -- Ista Zahn Graduate student University of Rochester __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] [Hmisc] Latex to pdf

2009-09-07 Thread Ista Zahn
by setting the file name: latex(x, file=abcThisThat.tex). Hope it helps, Ista snip -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit  http

Re: [R] R-help Digest, Vol 79, Issue 9

2009-09-09 Thread Ista Zahn
From: Carlos Alzola calz...@cox.net To: r-help@r-project.org Date: Tue, 8 Sep 2009 23:19:11 -0400 Subject: [R] SAS vs. R in web application Good evening, I have been asked to investigate the pros and cons of using SAS vs. R in a web application. Either SAS or R would be the engine used to

Re: [R] Spliting columns, strings or reg exp returning substrings

2009-09-26 Thread Ista Zahn
the colsplit function in the reshape package does this really easily. --ista -- Forwarded message -- From: Dry, Jonathan R jonathan@astrazeneca.com To: r-help@R-project.org Date: Fri, 25 Sep 2009 15:01:46 +0100 Subject: [R] Spliting columns, strings or reg exp returning

Re: [R] Ordering categories on a boxplot - a serious trap??

2010-02-25 Thread Ista Zahn
. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ 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] text editors

2010-02-26 Thread Ista Zahn
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org __ R-help@r-project.org mailing list https

Re: [R] sort columns

2010-02-26 Thread Ista Zahn
://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. -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http

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