Re: [R] Factor function

2011-04-25 Thread Ista Zahn
, 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-help

Re: [R] Factor function

2011-04-25 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 guide

Re: [R] factors

2011-05-05 Thread Ista Zahn
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-help@r

Re: [R] Scatter plots, linear regression in ggplot2

2011-08-24 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] Odp: reshape/aggregate

2011-08-31 Thread Ista Zahn
, 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-help

Re: [R] ggplot geom_freqpoly() layers ..?

2011-09-08 Thread Ista Zahn
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] ggplot geom_freqpoly() layers ..?

2011-09-08 Thread Ista Zahn
that make sense? thanks! On Thu, Sep 8, 2011 at 11:26 AM, Ista Zahn iz...@psych.rochester.edu wrote: Hi Brian On Thu, Sep 8, 2011 at 10:30 AM, Brian Smith bsmith030...@gmail.com wrote: Hi, I was trying to overlay/combine two freqpoly plots. The sample code below illustrates

Re: [R] ggplot - class character problem

2011-09-13 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] ggplot - class character problem

2011-09-13 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] texi2dvi problem when compiling incorrect Latex code

2011-10-04 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] texi2dvi problem when compiling incorrect Latex code

2011-10-05 Thread Ista Zahn
at Nabble.com. __ 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

Re: [R] unload a library while testing?

2011-10-05 Thread Ista Zahn
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://stat.ethz.ch/mailman

Re: [R] calling a variable which in turn calls many more variables

2011-10-05 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

Re: [R] ggplot rank stack bar automatically.

2012-02-18 Thread Ista Zahn
Hi, Here is what I get before reordering: http://izahn.homedns.org/tmp/barplotOriginal.png and after reordering: http://izahn.homedns.org/tmp/barplotReordered.png Are you saying you get something different? Or that this is not what you were trying to do? Best, Ista On Friday, February 17,

Re: [R] ggplot rank stack bar automatically.

2012-02-18 Thread Ista Zahn
Hi VD, The plot should not be the same after reordering. Please show us what you did, and what the result was. Best, Ista On Saturday, February 18, 2012 06:22:00 PM vd3000 wrote: Hi, Ista, I found the graph were same as before recording http://izahn.homedns.org/tmp/barplotOriginal.png

Re: [R] ggplot rank stack bar automatically.

2012-02-20 Thread Ista Zahn
Hi, That is not what I get. After running your code I get levels(df.m$Period) [1] 1991-00 1901-10 1981-90 2001-06 1911-20 1881-90 1971-80 [8] 1921-30 1891-00 1961-70 1871-80 1851-60 1951-60 1861-70 [15] 1841-50 1941-50 1831-40 1931-40 1820-30 this is my version info: sessionInfo() R version

Re: [R] R package documentation

2012-02-24 Thread Ista Zahn
Hi, On Friday, February 24, 2012 02:52:32 AM Matyas Sustik wrote: Hi All, I am asking for some clarification on R package documentation. The Writing R extension manual did not make this clear for me the following: 1. How to document a dataset? I know the file format from the doc, but I

Re: [R] How would you program an Adverse Events statistical table using R code?

2012-02-25 Thread Ista Zahn
Hi Robert, I think you might find it helpful to start with http://biostat.mc.vanderbilt.edu/wiki/pub/Main/StatReport/summary.pdf Best, Ista On Friday, February 24, 2012 07:13:10 PM Robert Wilkins wrote: A graph != A table. I'm talking about a page full of summary statistics and advanced

Re: [R] Delete rows from data.frame matching a certain criteria

2012-03-01 Thread Ista Zahn
Hi, On Mar 1, 2012, at 12:38 PM, Sarah Goslee wrote: Hi, On Thu, Mar 1, 2012 at 11:11 AM, mails mails00...@gmail.com wrote: Hello, consider the following data.frame: test - data.frame(n = c(1,2,3,4,5), v = c(6,5,7,5,3), pattern = c(1,1,NA,1,NA)) snip So basically the result

Re: [R] reshaping

2012-03-02 Thread Ista Zahn
Hi, I *think* this is what you want... On Fri, Mar 2, 2012 at 12:29 PM, robgriffin247 robgriffin...@hotmail.com wrote: Hello, I have a large data set which I am trying to get in to a long/narrow format. I have given an example below of how I want my data to look before and after... any ideas

Re: [R] Using ddply within a function by argument transfer

2012-03-04 Thread Ista Zahn
Hi, On Sunday, March 04, 2012 03:28:44 PM Fredrik Karlsson wrote: Hi Joshua, Yes, sorry - I attached an .rda file - maybe it was squashed. Anyway, yes, I agree with you that the function in the present state would not be of very much help to an end user (and your right in thinking that this

Re: [R] gsub: replacing double backslashes with single backslash

2012-03-07 Thread Ista Zahn
On Wed, Mar 7, 2012 at 12:57 PM, Greg Snow 538...@gmail.com wrote: The issue here is the difference between what is contained in a string and what R displays to you. The string produced with the code: tmp - C:\\ only has 3 characters (as David pointed out), the third of which is a

Re: [R] gsub: replacing double backslashes with single backslash

2012-03-08 Thread Ista Zahn
-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ista Zahn Sent: Wednesday, March 07, 2012 6:55 PM To: Greg Snow Cc: r-help@r-project.org; Markus Elze Subject: Re: [R] gsub: replacing double backslashes with single backslash On Wed, Mar 7, 2012 at 12:57 PM, Greg Snow 538

Re: [R] passing xlim to coord_map in ggplot2

2012-03-20 Thread Ista Zahn
Hi Zack, It would help a lot if you can give a reproducible example that generates the error. Best, Ista On Tue, Mar 20, 2012 at 3:05 PM, z2.0 zack.abraham...@gmail.com wrote: This works: michigan - map_data('county', 'michigan') mich_points - data.frame(x = rnorm(n = 200,

Re: [R] Unable to specify order of a factor

2012-03-21 Thread Ista Zahn
Hi Justin, this gives the correct order (8, 16, 32) on my machine: total.density - c(8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32) total.density -

Re: [R] Unable to specify order of a factor

2012-03-21 Thread Ista Zahn
= per.remain)) + facet_grid(total.density ~ prop.ec) + geom_point() Best, Ista - Justin Montemarano Graduate Student Kent State University - Biological Sciences http://www.montegraphia.com On Wed, Mar 21, 2012 at 11:42 AM, Ista Zahn istaz...@gmail.com wrote: Hi Justin, this gives

Re: [R] passing xlim to coord_map in ggplot2

2012-03-21 Thread Ista Zahn
Hi Zack, This works as expected on my machine: tank_trunc - read.csv(http://r.789695.n4.nabble.com/file/n4492267/upton_tank_trunc_nabble.csv;) michigan_map.df - map_data('county', 'michigan') ggplot() + geom_point(aes(lon, lat), data = tank_trunc, na.rm = T) + geom_path(aes(long, lat, group =

Re: [R] output of several results from a function

2012-04-03 Thread Ista Zahn
Hi Johannes, You are on the right track. Just need to use the right line break indicators, and explicitly call print. Like this: tmp - list(A=A123,B=B123) summaryout=function(x,...){ cat(This is output A:\n) print(x$A) cat(This is output B:\n) print(x$B) }

Re: [R] Apply function to every 'nth' element of a vector

2012-04-05 Thread Ista Zahn
Good morning Michael, On Thu, Apr 5, 2012 at 7:01 AM, Michael Bach pha...@gmail.com wrote: Dear R users, how do I e.g. square each second element of a vector with an even number of elements? Or more generally to apply a function to every 'nth' element of a vector. I looked into the apply

Re: [R] Welcome to the R-help mailing list

2010-12-01 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] ggplot2 histograms

2010-12-01 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

Re: [R] Checking for orthogonal contrasts

2010-12-03 Thread Ista Zahn
Hi Steve, The short answer is that there is typically no reason to check (beyond looking to see what contrasts have been defined for the factors in the model; see ?contrasts) because the rules are pretty simple. 1) the design matrix is orthogonal on the row-basis (i.e., the columns sum to zero)

Re: [R] How to get 'R' to talk BACK to other languages / scripts??

2010-12-03 Thread Ista Zahn
/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] How to *completely* stop a script after stop()?

2011-01-15 Thread Ista Zahn
@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 of Clinical

Re: [R] Manipulation

2011-01-17 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] Odp: Relative frequency on a character vector

2011-01-20 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] select a subset from a sample

2011-01-23 Thread Ista Zahn
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://stat.ethz.ch/mailman

Re: [R] how to get variance?

2011-01-23 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 guide http

Re: [R] Counting number of rows with two criteria in dataframe

2011-01-25 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] subsetting based on joint values of critera

2011-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

Re: [R] Predictions with 'missing' variables

2011-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

Re: [R] removing outlier function / dataset update

2011-01-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

[R] Comparison of numeric and character vectors

2012-01-03 Thread Ista Zahn
Hi all, I just discovered that R considers characters to be really big: a 999 [1] TRUE a 9e307 [1] TRUE a 9e308 [1] FALSE and that some characters are literally infinitely big: Z = Inf [1] TRUE although not all: a Inf [1] FALSE This came as a surprise to me (although it is quite

Re: [R] Comparison of numeric and character vectors

2012-01-03 Thread Ista Zahn
digits are lower than characters. You'll also note you get apparently strange behavior like 34 9 if you don't think about things in terms of dictionary orderings. Does that make sense? Michael On Tue, Jan 3, 2012 at 4:56 PM, Ista Zahn istaz...@gmail.com wrote: Hi all, I just discovered

Re: [R] gsub semicolon with double quotation mark

2012-01-24 Thread Ista Zahn
Hi Assa, On Tue, Jan 24, 2012 at 6:30 AM, Assa Yeroslaviz fry...@gmail.com wrote: Hi, I would like to substitute a semicolon with two double quotation marks and a comma inbetween. It suppose to look like that: I have: FBpp0070086;FBpp0099643;FBpp0112915 I would like to have:

Re: [R] gsub semicolon with double quotation mark

2012-01-24 Thread Ista Zahn
Assa On Tue, Jan 24, 2012 at 13:11, Ista Zahn istaz...@gmail.com wrote: Hi Assa, On Tue, Jan 24, 2012 at 6:30 AM, Assa Yeroslaviz fry...@gmail.com wrote: Hi, I would like to substitute a semicolon with two double quotation marks and a comma inbetween. It suppose to look like

Re: [R] Problem with xtable- rescaling a table

2012-02-01 Thread Ista Zahn
Hi, It looks like you need scalebox inside the sidewaystable environment. If you must use scalebox, one solution is to use floating=FALSE when you call print.xtable, and insert the table environment directly in LaTeX, like this: \begin{sidewaystable}[ht] \scalebox{0.7}{

Re: [R] indexing by empty string (was RE: Error in predict.randomForest ... subscript out of bounds with NULL name in X)

2012-02-01 Thread Ista Zahn
Hi Andy, On Tuesday, January 31, 2012 08:44:13 AM Liaw, Andy wrote: I'm not exactly sure if this is a problem with indexing by name; i.e., is the following behavior by design? The problem is that names or dimnames that are empty seem to be treated differently, and one can't index by them:

Re: [R] Problem with xtable- rescaling a table

2012-02-04 Thread Ista Zahn
and the title work, but if I incorporate scalebox in Latex it does not work. If I use the floating=F solution, I can rescale and landscape, but I have troubles having a caption. That's weird. Best, Aurelien 2012/2/1 Ista Zahn istaz...@gmail.com Hi, It looks like you need scalebox inside

Re: [R] Problem with xtable- rescaling a table

2012-02-05 Thread Ista Zahn
4, 2012 at 10:46 PM, Ista Zahn istaz...@gmail.com wrote: Hi Aurelien, You just need to put the \caption outside the scalebox command, like this: \documentclass[11pt]{report} \usepackage{rotating} %\usepackage[counterclockwise]{rotating} \usepackage{graphics} \usepackage{float} \pagestyle

Re: [R] I bet apply has a solution

2012-02-06 Thread Ista Zahn
Hi Josh, How about apply(Data, 1, function(row) sd(row) == 0) ? Best, Ista On Mon, Feb 6, 2012 at 1:34 PM, LCOG1 jr...@lcog.org wrote: Hi all For the data below, I would like to return a logical value indicating differences in the data. #Create data

Re: [R] Reordering levels of a factor when the factor is part of a data frame

2012-02-06 Thread Ista Zahn
Hi Judith, You should use double brackets, like this: df[[variab]]-factor(df[[variab]], levels=c(A2B,B31,C33)) see ?[ for details, noting that the help page assumes that you know data.frames are list-like objects. Best, Ista On Mon, Feb 6, 2012 at 2:03 PM, Judith Flores jur...@yahoo.com

Re: [R] xtable beta testing wanted

2012-02-07 Thread Ista Zahn
Hi Charles, This looks great, I'll try it out later today. Any chance that more automated multicolumn headers will be added in a future version? I know you can do it using the add.to.row argument, but it would be great to have an automated way using something like cgroup and n.cgroup in

Re: [R] width and alignment of Latex table columns

2012-02-09 Thread Ista Zahn
Hi, You can set the width of the columns the same way you would in any other LaTeX table, e.g., by setting align to p{width}. http://www.giss.nasa.gov/tools/latex/ltx-68.html has a good summary of LaTeX tables that you may find helpful. Best, Ista On Thursday, February 09, 2012 10:08:32 AM

Re: [R] factor level for non-existing value

2012-02-09 Thread Ista Zahn
Hi David, On Thursday, February 09, 2012 01:21:48 PM David Studer wrote: Hello everybody! Let's assume I have the following factor with it's levels: a-factor(c(2,3,3,2,4,2,3,2,2,2,3,2,3)) mydata-data.frame(a) #You need to specify levels and labels here, like this: a -

Re: [R] Counting the loop-round of a for-loop

2012-02-12 Thread Ista Zahn
Hi, You can initialize a counter and update it in the loop. An silly example (unrelated to yours because it was not reproducible) of this technique is: x - matrix( , ncol = 2, nrow = 26) n - 0 for(i in letters) { n - n+1 x[n,] - c(i, n) } Best, Ista On Sunday, February 12, 2012

Re: [R] ggplot rank stack bar automatically.

2012-02-16 Thread Ista Zahn
Hi vd, The answer to the first part of your question is reorder. To continue the learnr example: df.m - transform(df.m, Period = reorder(Period, -1*value)) ggplot(df.m, aes(x = Period, y = value/1e+06, fill = Region)) + geom_bar(stat = identity, position = stack) For the second question:

Re: [R] function similar to ddply? + calculations based on previous row

2012-02-16 Thread Ista Zahn
Hi, On Wednesday, February 15, 2012 08:02:44 AM Nerak wrote: Hi all, I was wondering if there is a function kind of similar that splits a dataframe, applies a function to each row and returns in a data frame. I know ddply but this one isn’t useful in this situation. Why not? Sounds like a

Re: [R] Summarising by group

2011-05-09 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] Parantheses highlighting

2011-05-11 Thread Ista Zahn
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://stat.ethz.ch

Re: [R] lm and anova

2011-05-12 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] (no subject)

2011-05-12 Thread Ista Zahn
-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] How to make array of regression objects

2011-05-18 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] identical function names from 2 packages

2011-05-18 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] dealing with sweave.sty and pgfSweave

2011-05-22 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] Adding dash-lines in R tables

2011-05-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

Re: [R] R as.numeric()

2011-05-24 Thread Ista Zahn
, 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-help

Re: [R] JGR/Deducer Installation

2011-05-26 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] ggplot pale colors

2011-05-28 Thread Ista Zahn
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://stat.ethz.ch/mailman

Re: [R] qplot fill and colour not working as expected

2011-06-06 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 guide http

Re: [R] Merge two columns of a data frame

2011-06-06 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] ggplot2 and facet

2011-06-07 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] ggplot2 and facet

2011-06-07 Thread Ista Zahn
(~ runway)     print(pp2) Error in eval(expr, envir, enclos) : object 'error' not found That is _not_ what I suggested. I said pp2 = qplot(time, error, data = times) pp2 + facet_wrap(~ runway) You are missing the data = part. So I am confused. Thanks, Jim On 6/7/2011 4:12 PM, Ista Zahn wrote

Re: [R] The simplest bar graph with ggplot is difficult to realize

2011-06-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] How to suppress factor labels

2011-06-08 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] How to suppress factor labels

2011-06-08 Thread Ista Zahn
, 15,20,25,30,35,40,45,50,55,60))    print(pp2 + geom_boxplot(alpha=.5, color=blue, outlier.colour=green, outlier.size=1)) But this ruins the boxplot--I get one box instead of a box at every minute. On 6/8/2011 3:59 PM, Ista Zahn wrote: Hi James, It's hard for me to see where the problem might be. Please post

Re: [R] ggplot2 avoid automatic color selection

2011-06-10 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

Re: [R] Correlations by subgroups

2011-06-15 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] omitting columns from a data frame

2011-06-20 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] omitting columns from a data frame

2011-06-21 Thread Ista Zahn
://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-help@r-project.org

Re: [R] i want to unsubscribe

2011-06-26 Thread Ista Zahn
://staterythz.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] i want to unsubscribe

2011-06-26 Thread Ista Zahn
-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://stat.ethz.ch

Re: [R] changing graphs in qqplot2

2011-06-26 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] split rbind (cast) dataframe

2013-01-11 Thread Ista Zahn
Hi Johannes, Your example is tricky because the original df1 does not contain id columns that identify each cell in df2. If you want to use the reshape2 package for this I think you have to add a second id variable: df1 - data.frame(col1 = c(A,A,B,B),col2 = c(1:4), col3 = c(1:4))

Re: [R] aggregate data.frame based on column class

2013-01-11 Thread Ista Zahn
Please see in line. On Fri, Jan 11, 2013 at 10:07 AM, Martin Batholdy batho...@googlemail.com wrote: Hi, When using the aggregate function to aggregate a data.frame by one or more grouping variables I often have the problem, that I want the mean for some numeric variables but the unique

Re: [R] Access comonents in lists of lists

2013-01-11 Thread Ista Zahn
lapply(lst, function(x) return(x[[2]])) On Fri, Jan 11, 2013 at 6:40 AM, Bjoern Helm bjoern.h...@tu-dresden.de wrote: Dear R users,I have a list of equally structured lists, how can I access e.g. all 2nd compontents in those sub-lists?An example:lst - list(rep(list(1:3),3), rep(list(4:6),3))

Re: [R] Aquamacs Preferences not showing, windows inaccessible, Scrolling not possible !!!

2013-01-12 Thread Ista Zahn
I think you'll have better luck on the aquamacs help list. To verify that it is an aquamacs problem, you can try a different version of emacs (e.g., http://vgoulet.act.ulaval.ca/en/emacs/) and see if the problem persists. Best, Ista On Sat, Jan 12, 2013 at 4:17 PM, Christian Hoffmann

Re: [R] X11 plot window doesn't show graphic immediately

2013-01-12 Thread Ista Zahn
Hi Alexander, Try changing your type, e.g., X11.options(type=nbcairo). See ?X11 for details, and http://stackoverflow.com/questions/13235100/empty-plot-in-r for reference. Best, Ista On Sat, Jan 12, 2013 at 1:04 PM, Alexander Engelhardt a...@chaotic-neutral.de wrote: Hi r-help, I have a

Re: [R] readHTMLTable (XML package)

2013-01-15 Thread Ista Zahn
Hi Dan, A couple of things: first, I think that file really does not exist (at least I can't open it in my web browser). Second, even if it did, url() cannot download from https, according to the details section of ?url, which points you to RCurl. So, once you verify that you url actually exists

Re: [R] readHTMLTable (XML package)

2013-01-15 Thread Ista Zahn
This is an RCurl FAQ (see http://www.omegahat.org/RCurl/FAQ.html). The quick and dirty way is getURL(https://hr-workforce-analytics.llnl.gov/wf_pi_pop.html;, ssl.verifypeer = FALSE) Best, Ista Thanks. Dan -Original Message- From: Ista Zahn [mailto:istaz...@gmail.com] Sent: Tuesday

Re: [R] How to change levels?

2013-01-16 Thread Ista Zahn
Hi, see ?droplevels and/or the stringsAsFactors section of ?options Best, Ista On Wed, Jan 16, 2013 at 4:56 AM, paladini palad...@beuth-hochschule.de wrote: Hello! I have got a dataframe with 10 columns and 100 rows. The seventh column consists of a lot of country names. When I use

Re: [R] Is it possible to create color ramp legend in spplot for discontinuous data ?

2013-01-19 Thread Ista Zahn
Hi Janesh, I'm going to ask you the same thing you were asked when you posted this question on the r-sig-Geo list: What is data1? Please give us the output of dput(data1), or make another example that we can reproduce. Best, Ista On Sat, Jan 19, 2013 at 7:16 AM, Jd Devkota

Re: [R] how to use ...

2013-01-20 Thread Ista Zahn
On Sun, Jan 20, 2013 at 5:54 PM, John Sorkin jsor...@grecc.umaryland.edu wrote: Why are the help pages not right? The ... construct is a fundamental part of the language syntax. Information about this fundamental construct should be easily available! This strikes me as a bit harsh. The

Re: [R] Very slow in processing the equation in the scatter plot ggplot

2013-01-21 Thread Ista Zahn
Hi, One problem is that you are printing the regression equation multiple times. Compare: system.time({ + p2 - p1 + annotate(x = -0.1, y = 0.5, geom=text, label = lm_eqn(mydata), parse = TRUE) + print(p2) + }) user system elapsed 0.930 0.006 0.976 system.time({ + p3 - p1 +

Re: [R] Simple use of dcast (reshape2 package)

2013-01-22 Thread Ista Zahn
Hi, ID is not the value column. Your casting call should be dcast(aa, ... ~ Target, value.var = Eaten) Best, Ista On Tue, Jan 22, 2013 at 4:23 AM, Patrick Connolly p_conno...@slingshot.co.nz wrote: Suppose I have a small dataframe aa Target Eaten ID 50 TPP 0 1 51 TPP

Re: [R] how to read a df like that and transform it?

2013-01-23 Thread Ista Zahn
I don't really understand this data table, but maybe this modification will give you the idea: dat - read.table(text=father mother num_daughterdaughter 291 39060 NA 275 42190 NA 273 42361 49410 281 41631 49408 274 42261

Re: [R] Recommendation for website to format R code

2013-01-25 Thread Ista Zahn
I still don't understand what you are looking for, but https://gist.github.com/ is similar to pastebin, and it does have R syntax highlighting. Best, Ista On Thu, Jan 24, 2013 at 8:37 PM, C W tmrs...@gmail.com wrote: I ran across this page for C, Java, etc. No R. http://pastebin.com/ It

Re: [R] Adjusted R-squared formula in lm()

2013-01-28 Thread Ista Zahn
Hi Nicole, One nice thing about R is that it is often easy to see the code for many functions. For summary.lm just type the name at the command prompt (no brackets) to see the function definition. There you will find ans$adj.r.squared - 1 - (1 - ans$r.squared) * ((n - df.int)/rdf)

Re: [R] Adding 95% contours around scatterplot points with ggplot2

2013-01-28 Thread Ista Zahn
Hi Nathan, This only fits some of your criteria, but have you looked at ?stat_density2d? Best, Ista On Mon, Jan 28, 2013 at 12:53 PM, Nathan Miller natemille...@gmail.com wrote: Hi all, I have been looking for means of add a contour around some points in a scatterplot as a means of

Re: [R] pROC in R

2013-01-28 Thread Ista Zahn
And what exactly is the problem? Your code produced no errors (or if it did you have not shown them to us...) Best, Ista On Mon, Jan 28, 2013 at 9:44 AM, Fethi BEZOUBIRI feth...@yahoo.fr wrote: Dear, I would like to use pROC software for my study, but I could not uploaded it in R. Could

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