Re: [R] Loading Intraday Time Series Data

2010-05-16 Thread John Kane
Hi Steve, I "think" what you want to do is get a unique time-date from the first two columns. Try something like this: (changing the file name obviously. mydate should give you a time and date format that you can add to the existing data.frame. mydata <- read.table("C:/rdata/dates.junk.csv

Re: [R] Function that is giving me a headache- any help appreciated (automatic read )

2010-05-18 Thread John Kane
I don't think you can do this precipitation!="NA") have a look at ?is.na --- On Tue, 5/18/10, stephen sefick wrote: > From: stephen sefick > Subject: [R] Function that is giving me a headache- any help appreciated > (automatic read ) > To: r-help@r-project.org > Received: Tuesday, May 18, 20

Re: [R] question about graph

2010-05-22 Thread John Kane
This is not enough information to let us give a good example but perhaps ?lines or ?points might help? Example aa <- 1:5 bb <- 1:5 cc <- c(1.5,2.5,3.5,4.2,4.4) plot(aa,bb) lines(aa,cc,col='red') points(aa,cc, col="blue") --- On Sat, 5/22/10, khaz...@ceremade.dauphine.fr wrote: > From: kha

Re: [R] website address for the pseuso-XLS files

2010-05-25 Thread John Kane
The Prostatic_Neoplasm-miRNAs.DiseaseTargets.xls file seems to be an HTML table and seems to open with no problem in OpenOffice.org Writer/Web. OOo 3.2.0 when opened from within OOOo. At a guess it is some collection of PubMed references. I don't know if that's any use but it's a nice table

Re: [R] (no subject)

2010-06-03 Thread John Kane
It looks like superpose.eb is someone's function and not in a package. https://stat.ethz.ch/pipermail/r-help/2002-November/027299.html --- On Thu, 6/3/10, Rosario Garcia Gil wrote: > From: Rosario Garcia Gil > Subject: [R] (no subject) > To: "r-help@r-project.org" > Received: Thursday, June 3

Re: [R] import text file into R

2010-06-03 Thread John Kane
What does the text look like? --- On Thu, 6/3/10, dhanush wrote: > From: dhanush > Subject: [R] import text file into R > To: r-help@r-project.org > Received: Thursday, June 3, 2010, 7:32 AM > > can anyone tell me how to import a text file in R? the text > file I want to > import is a large

Re: [R] horizontal and vertical line with arrow in a plot

2010-06-04 Thread John Kane
# A very quick example of how to draw an arrow on a graph. plot(1:10) text(2,5, "Point 5 ", cex=.8) arrows(3,5, 4.5, 5) --- On Thu, 6/3/10, Roslina Zakaria wrote: > From: Roslina Zakaria > Subject: [R] horizontal and vertical line with arrow in a plot > To: r-help@r-project.org > Received: Thu

Re: [R] how to use 'points' function to plot two curves with errbar

2010-06-05 Thread John Kane
The first thing we need to know is what "errbar" are you using? There are at least two, on in the Hmisc package and one in sfsmisc. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,reproducible code. I'm not sure what y

Re: [R] variation

2010-06-05 Thread John Kane
?var perhaps --- On Sat, 6/5/10, Adel ESSAFI wrote: > From: Adel ESSAFI > Subject: Re: [R] variation > To: r-help@r-project.org > Received: Saturday, June 5, 2010, 7:57 AM > 2010/6/5 Jannis > > > What exactly do you mean by "variation"? As I > understand it, this term is a > > broad term for

Re: [R] Matrix to Vector

2010-06-05 Thread John Kane
m<-matrix(seq(1,48),nrow=6,byrow=T) as.vector(t(m)) gives me the correct result. Any chance you may have already transformed m ? --- On Sat, 6/5/10, steven mosher wrote: > From: steven mosher > Subject: Re: [R] Matrix to Vector > To: "Henrique Dallazuanna" > Cc: r-help@r-project.org > Rece

Re: [R] for loop incremented by 0.01

2010-06-09 Thread John Kane
Why? See ?seq seq(0,1,.01) --- On Wed, 6/9/10, suman dhara wrote: > From: suman dhara > Subject: [R] for loop incremented by 0.01 > To: r-h...@stat.math.ethz.ch > Received: Wednesday, June 9, 2010, 12:30 PM > Sir, > I want to use a for loop which will be incremented by 0.01 > in 0 to 1. > P

Re: [R] Variable length datafile import problem

2011-02-15 Thread John Kane
Your example does not seem to accurately mirror your data since there are no variable column counts. If the data is not confidential, it might be a good idea to load a sample of it somewhere were list readers can get it and examine the actual file layout. [url=http://www.mediafire.com/][b]Medi

[R] Fw: RE: Variable length datafile import problem

2011-02-17 Thread John Kane
--- On Thu, 2/17/11, John Kane wrote: > From: John Kane > Subject: RE: [R] Variable length datafile import problem > To: "Ingo Reinhold" > Received: Thursday, February 17, 2011, 5:54 AM > Generally most of the gurus are in > this list.  Hopefully someone wi

Re: [R] Variable length datafile import problem

2011-02-20 Thread John Kane
old > Subject: RE: [R] Variable length datafile import problem > To: "John Kane" , "r-help@r-project.org" > > Received: Friday, February 18, 2011, 3:16 AM > Hi John, > > seems there is no easy way. I'll just precondition it with > AWK as des

Re: [R] Console output

2011-02-21 Thread John Kane
I am not aware of one, bu I don`t know that much. You an change the vector to a data.frame but it could introduce complications.:) Example: === vec <- 1:10 df1 <- data.frame(vec) df1

Re: [R] Calculate a mean for several months for several years

2011-02-22 Thread John Kane
--- On Tue, 2/22/11, D Kelly O'Day wrote: > From: D Kelly O'Day > Subject: Re: [R] Calculate a mean for several months for several years > To: r-help@r-project.org > Received: Tuesday, February 22, 2011, 12:21 AM > > Pete > > The original question "I would like to calculate the > average of

[R] Transform a dataset from long to wide using reshape2

2011-02-26 Thread John Kane
I seem to be running into the same problem reported in https://stat.ethz.ch/pipermail/r-help/2010-November/258265.html I cannot seem to transform a dataset from long to wide using reshape2. Clearly I am missing something very simple but a look at the manual and the reshape paper in JSS does not

Re: [R] Transform a dataset from long to wide using reshape2

2011-02-26 Thread John Kane
form a dataset from long to wide using reshape2 > To: "John Kane" > Cc: "R R-help" > Received: Saturday, February 26, 2011, 2:24 PM > John - >     In the dat data frame, there is exactly one > observation > for each Subject/Item combination, so it's clear how

Re: [R] High standard error

2011-03-01 Thread John Kane
Sure why not? You do realize, do you not that no one has the slightest idea of what you are doing? PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- On Tue, 3/1/11, danielepippo wrote: > From

Re: [R] Contingency table in R

2011-03-05 Thread John Kane
Did you get a reply on this? We really need to see your code and some sample data. Have a look at ?dput tko supply some data. At the moment it looks like R is not recognizing the dara set. If ls( libts the dataset, are you using mydara$excat --- On Wed, 3/2/11, Laura Clasemann wrote: > Fr

Re: [R] Reshape, melt and cast query

2011-03-10 Thread John Kane
I think we need a sample of the orginal data or reasonable facsimile to get an idea of what you are doing. Have a look at ?dput as a way to provide the data in a handy format. --- On Thu, 3/10/11, Muzna Alvi wrote: > From: Muzna Alvi > Subject: [R] Reshape, melt and cast query > To: r-help@r-

Re: [R] Rearranging the data

2011-03-10 Thread John Kane
Isn't reshape sun at first :). The not obvious thing is that you don't need to cast anything. All you need is the proper melt command (and a final sort if you want the table you have). = library(reshape) xx = data.frame(country

Re: [R] how to use melt cast commands in R in window7

2011-03-12 Thread John Kane
It may be a stupid question but have you loaded reshape? library(reshape) ?melt --- On Sat, 3/12/11, Deepika wrote: > From: Deepika > Subject: [R] how to use melt cast commands in R in window7 > To: r-help@r-project.org > Received: Saturday, March 12, 2011, 3:45 AM > Hi, > I have installed R

Re: [R] Drawing a circle on an existing graph.

2011-03-12 Thread John Kane
Is this of any use? http://tolstoy.newcastle.edu.au/R/help/06/04/25821.html --- On Sat, 3/12/11, Allan Kamau wrote: > From: Allan Kamau > Subject: [R] Drawing a circle on an existing graph. > To: r-help@r-project.org > Received: Saturday, March 12, 2011, 3:08 AM > I would like to draw a circle

Re: [R] Drawing a circle on an existing graph.

2011-03-12 Thread John Kane
>> ability to plot a > >>>> circle on an already existing graph by > simply providing the > >>>> xy > >>>> coordinates for it's centre and the > radius. > >>>> > >>>> I am also looking for a way to obtain x,y

Re: [R] how to change the margins of a plot area

2011-03-13 Thread John Kane
Hi Maria, I think we need some sample data and code to really be ablo to help. in the meantime have have a look at ?par for general plotting info. --- On Sun, 3/13/11, Lathouri, Maria wrote: > From: Lathouri, Maria > Subject: [R] how to change the margins of a plot area > To: "r-help@r-project

Re: [R] A basic question about reshape2

2011-03-13 Thread John Kane
I am not sure about this but I don't see how a melt command helps. See what z = dcast(x, I ~ V, mean) gives you. --- On Sun, 3/13/11, Jim & Carolyn Watkins wrote: > From: Jim & Carolyn Watkins > Subject: [R] A basic question about reshape2 > To: r-help@r-project.org > Received: Sunday, March

Re: [R] Part of density plot not showing up

2011-03-22 Thread John Kane
Without seeing your code it could be just about anything. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained reproducible code. --- On Mon, 3/21/11, Jim Silverton wrote: > From: Jim Silverton > Subject: Re: [R] Part of

Re: [R] stacked bar plot

2011-03-23 Thread John Kane
--- On Wed, 3/23/11, Greg Snow wrote: > From: Greg Snow > Subject: Re: [R] stacked bar plot > To: "Chandra Salgado Kent" , > "r-help@r-project.org" > Also look at the ggplot2 package, it may do the summing as > part of the plot call and probably does not need the reshape > step. If I'm r

[R] Separators in strptime---needed?

2011-03-23 Thread John Kane
For some reason I thought that I could read some text into dates without a separator? Am I wrong? Examples Works, it appears ccc <- c("2011-04-07", "1989-10-12") x <- strptime(ccc, "%Y-%m-%d") Does not work ddd <- c("20110407", "19891012") y <- strptime(ccc, "%Y%m%d") Does this mean I would

Re: [R] Separators in strptime---needed?

2011-03-23 Thread John Kane
Thanks to David and William. I hate it when a typo is all it is but I am a lousy typist. --- On Wed, 3/23/11, David Wolfskill wrote: > From: David Wolfskill > Subject: Re: [R] Separators in strptime---needed? > To: "John Kane" > Cc: "R R-help" > Received:

Re: [R] R Help

2011-03-27 Thread John Kane
Hi Anita, A bit of sample data would probably help here. Have a look at ?dput for a handy way to supply some data. Also a quick summary of exactly what you are trying to accomplish would be useful. A very cursory reading of the program leaves one wondering why you are creating all those variab

Re: [R] overlaying

2011-03-27 Thread John Kane
--- On Sun, 3/27/11, Bulent Arikan wrote: > From: Bulent Arikan > Subject: [R] overlaying > To: r-help@r-project.org > Received: Sunday, March 27, 2011, 5:45 PM > Dear List, > I am working with a small (3 columns and 9 rows) data > table, which contains > 9 observations, their mean values and

Re: [R] how to do t-test in r for difference of mean

2011-04-02 Thread John Kane
http://www.gardenersown.co.uk/Education/Lectures/R/basics.htm#t_test --- On Thu, 3/31/11, arkajyoti jana wrote: > From: arkajyoti jana > Subject: [R] how to do t-test in r for difference of mean > To: r-help@r-project.org > Received: Thursday, March 31, 2011, 9:07 AM > I am trying to do t-test

Re: [R] Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"

2011-04-03 Thread John Kane
Totally guessing but did you make an earlier call to par() to adjust margins? Otherwise you may want to supply the matrix here for other people to experiment with. See ?dput as probably the best way to do this. --- On Sun, 4/3/11, shahab wrote: > From: shahab > Subject: [R] Error in "color

Re: [R] :HELP

2011-04-03 Thread John Kane
Your message is severely garbled. However a={1,2,3,4,5 6,7,8,9,10} is not going to work since {} is incorrect. you need c() Anyway try this: a=matrix(1:10,ncol=2) sum(a[1:3,1]) sum(a[1:3,2]) --- On Sun, 4/3/11, mustafabinar wrote: > From: mustafabinar > Subject: [R] :HELP > To: r-help@r-p

Re: [R] A fortunes candidate?

2011-04-05 Thread John Kane
Sounds more like an advertisement A bit like the old TV story "Paladin, have gun, will travel". --- On Tue, 4/5/11, Bert Gunter wrote: > From: Bert Gunter > Subject: [R] A fortunes candidate? > To: "David Winsemius" > A fortunes candidate? > On Tue, Apr 5, 2011 at 3:59 PM, David Winsemius

Re: [R] a bug in "write.csv"?

2011-04-08 Thread John Kane
I believe write.csv had been revamped and some options are no longer available. --- On Fri, 4/8/11, Santosh wrote: > From: Santosh > Subject: [R] a bug in "write.csv"? > To: "r-help" > Received: Friday, April 8, 2011, 4:18 PM > Dear Rxperts! > > A simple example where "write.csv" does not see

Re: [R] Question about levels/as.numeric

2011-04-11 Thread John Kane
--- On Sun, 4/10/11, Rolf Turner wrote: > From: Rolf Turner > Subject: Re: [R] Question about levels/as.numeric > To: r-help@r-project.org > Received: Sunday, April 10, 2011, 9:48 PM > On 11/04/11 10:08, Peter Ehlers > wrote: > > > > "Checking" anything with Excel is never much use. > > >

Re: [R] multiple lines on multiple plots

2011-04-12 Thread John Kane
Try this. === x<- 1:10 y<- (1:100)*3 par(mfcol=c(2,1)) plot(x, type="o") plot(y) === --- On Tue, 4/12/11, James Annan wrote: > From: James Annan > Subject: [R] multiple lines on multiple plots > To: r-help@r-project.org > Received: Tuesday, April 12, 2

Re: [R] multiple lines on multiple plots

2011-04-12 Thread John Kane
="blue") --- On Tue, 4/12/11, John Kane wrote: > From: John Kane > Subject: Re: [R] multiple lines on multiple plots > To: r-help@r-project.org, "James Annan" > Received: Tuesday, April 12, 2011, 11:54 AM > Try this. > > === &

Re: [R] Categorical bubble plot

2011-04-14 Thread John Kane
I think using base graphics you would need to use numerical vectors to set the bubble positions. However there is not reason that you could not suppress the axis labeling and apply your own. This code does the first part using circles. There are probably better ways to do it but this should wo

Re: [R] how to get the plot like this by R?

2011-04-16 Thread John Kane
R? To: "John Kane" Received: Saturday, April 16, 2011, 8:36 AM I am sorry for the fault. The figure is posted at http://www.mediafire.com/i/?08b9f4um43vxvw8 (hope this works!). Thank John for the website.   Xipei Wang, Ph.D. student -- Xipei Wang, Ph.D. student Department of Pharma

Re: [R] how to get the plot like this by R?

2011-04-16 Thread John Kane
All that link is doing is taking me to a Windows Live log-in screen. An alternative posting site might be [url=http://www.mediafire.com/][b]Mediafire[/b][/url . --- On Sat, 4/16/11, wangxipei wrote: > From: wangxipei > Subject: [R] how to get the plot like this by R? > To: "r-help" > Recei

Re: [R] adding two colmns of a data frame

2011-04-17 Thread John Kane
You mean like this? mydata <- data.frame(aa=1:5, bb=1:5) mydata[,3] <- mydata[,1] + mydata[,2] mydata --- On Sat, 4/16/11, ozgrerg wrote: > From: ozgrerg > Subject: [R] adding two colmns of a data frame > To: r-help@r-project.org > Received: Saturday, April 16, 2011, 4:22 PM > It seems very sim

Re: [R] Axes Alignment Problem for Multiple Plots

2011-04-19 Thread John Kane
What is Coredata(Z0)? It would be very useful. as the posting guidelines suggest to supply working code and sample data. --- On Tue, 4/19/11, Barbaglia, Guido (ESA) wrote: > From: Barbaglia, Guido (ESA) > Subject: [R] Axes Alignment Problem for Multiple Plots > To: "r-help@r-project.org" > C

Re: [R] Unlist command drops all my column names in the first row and adopts NAs

2011-04-20 Thread John Kane
Why not just data.matrix(UN2010) ? --- On Wed, 4/20/11, Haillie wrote: > From: Haillie > Subject: [R] Unlist command drops all my column names in the first row and > adopts NAs > To: r-help@r-project.org > Received: Wednesday, April 20, 2011, 11:05 AM > Hi Everyone, > > I am having trouble t

Re: [R] Random Relabelling

2011-04-20 Thread John Kane
Can you explain this a bit more. At the moment I don't see what you are trying to achieve. "calculate the mean of the 1000 values at each of the 4000 points" does not seem to make sense. --- On Wed, 4/20/11, kmatthews wrote: > From: kmatthews > Subject: [R] Random Relabelling > To: r-help@r

Re: [R] Two Questions

2011-04-20 Thread John Kane
> From: Stephen P Molnar > Subject: [R] Two Questions > To: "R-help" > Received: Wednesday, April 20, 2011, 9:23 AM > 1.        What is a really good book on > R for a nonprogrammer? Have a look at the books listed on the R website. Books by Peter Dalgaard, Phil Spector, Michael Crawley & Joh

Re: [R] Random Relabelling

2011-04-20 Thread John Kane
n 1:10) { mydata[,i] <- sample(scores, 5, replace=FALSE) } = --- On Wed, 4/20/11, Kevin Matthews wrote: From: Kevin Matthews Subject: Re: [R] Random Relabelling To: "John Kane" Cc: r-help@r-project.org Received: Wednesday, Apri

Re: [R] Random Relabelling

2011-04-23 Thread John Kane
; { > sample(rate, size = n, replace = F) > }) > > ## Look at the matrix > dim(permutations) > head(permutations) > > ## Find the column means > means <- apply(permutations, 1, mean) > means > > > > > > On Wednesday, April 20, 2011 1:56:35 PM

Re: [R] Random Relabelling

2011-04-25 Thread John Kane
mple > > permutations <- apply(permutations, 1, function(x) > > { > > sample(rate, size = n, replace = F) > > }) > > > > ## Look at the matrix > > dim(permutations) > > head(permutations) > > > > ## Find the column means > > means <

Re: [R] Not really off-topic ...

2011-08-04 Thread John Kane
You clearly have some strange ... err, whatever. --- On Thu, 8/4/11, Ted Harding wrote: > From: Ted Harding > Subject: [R] Not really off-topic ... > To: r-h...@stat.math.ethz.ch > Received: Thursday, August 4, 2011, 8:44 PM > Greetings all! > Just arrived via my daily digest of the ALLSTAT li

Re: [R] rowSums problem

2012-06-05 Thread John Kane
as I would have thought that the output would have been a vector. Could exporting the csv files have somehow mixed up the data structure that you are working with? You might want to provide the two data files using the dput() command. John Kane Kingston ON Canada > -Origi

Re: [R] changing axis labels

2012-06-06 Thread John Kane
box() at end of code John Kane Kingston ON Canada > -Original Message- > From: ala...@yahoo.com > Sent: Wed, 6 Jun 2012 00:40:53 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] changing axis labels > > Dear all, > I am making a function for creatin

Re: [R] Combine subsets by factor level

2012-06-06 Thread John Kane
We really should have some sample data (see dput() for a handy way to post some). However have a look at ?reshape, the plyr and reshape packages or perhaps the data.table package. John Kane Kingston ON Canada > -Original Message- > From: libgray3...@gmail.com > Sent: T

Re: [R] ggplot incorrect legend

2012-06-06 Thread John Kane
You are from the jpeg you link as far as I can see.. What exactly is the output that you expect in the legend John Kane Kingston ON Canada > -Original Message- > From: ja...@crosb.ie > Sent: Tue, 5 Jun 2012 20:18:55 -0700 (PDT) > To: r-help@r-project.org > Subj

Re: [R] ggplot incorrect legend

2012-06-06 Thread John Kane
Try making FuelTypeNum into a factor like this: p <- ggplot(data=tempTable, aes(x=Bands8, y=AvailableMWNewFormat, fill=as.factor(FuelTypeNum))) + geom_bar(position="stack", stat="identity")+ coord_flip() p John Kane Kingston ON Canada > -Origin

Re: [R] ggplot2: legend for geom_rug() ..?

2012-06-06 Thread John Kane
What is X2? code not running at the moment John Kane Kingston ON Canada > -Original Message- > From: bsmith030...@gmail.com > Sent: Wed, 6 Jun 2012 11:52:25 -0400 > To: r-help@r-project.org > Subject: [R] ggplot2: legend for geom_rug() ..? > > Hi, > > I

Re: [R] graphic problems with special characters

2012-06-07 Thread John Kane
I think we need some data and code. Would you please provide some sample data (see ?dput for a handy way to provide data) and some working code that demonstrates the problem? John Kane Kingston ON Canada > -Original Message- > From: leray.guilla...@gmail.com > Sent: Thu, 7 Ju

Re: [R] ggplot2: legend for geom_rug() ..?

2012-06-07 Thread John Kane
t;blue", label = "NYC") I thought that one should be able to generate a second legend with an aes(colour=ids) but it does not work. Someone much more knowledgeable than me hopefully will have a better idea. John Kane Kingston ON Canada -Original Message-

Re: [R] any certification for R language

2012-06-08 Thread John Kane
I doubt that there is anythig like certfication in R The same applies for interview questions. For tutorials just google "r statistics tutorial" John Kane Kingston ON Canada > -Original Message- > From: sagarnikam...@gmail.com > Sent: Fri, 8 Jun 2012 02:48:09 -0700

Re: [R] ggplot incorrect legend

2012-06-09 Thread John Kane
h than the ones I randomly picked. library(ggplot2) p <- ggplot(data=tempTable, aes(x=Bands8, y=AvailableMWNewFormat, fill=as.factor(FuelTypeNum))) + geom_bar(position="stack", stat="identity")+ coord_flip() + scale_fill_brewer(palette="Set1", name=&quo

Re: [R] bubbleplot3: R equivalent of the MATLAB function?

2012-06-11 Thread John Kane
What exacrly does it do? Any pointers to relevant plots? John Kane Kingston ON Canada > -Original Message- > From: timothyjosephmur...@gmail.com > Sent: Mon, 11 Jun 2012 10:54:28 -0500 > To: r-help@r-project.org > Subject: [R] bubbleplot3: R equivalent of the MATLAB fun

[R] Attempting to update from R 2.14 to 2.15

2012-06-12 Thread John Kane
UBKEY 06F90DE5381BA480 Ubuntu seems to have happily run through all the other updates with no problem Any suggestions? Thanks John Kane Kingston ON Canada sessionInfo() R version 2.14.1 (2011-12-22) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUME

Re: [R] Attempting to update from R 2.14 to 2.15

2012-06-12 Thread John Kane
6F90DE5381BA480 john@john-K53U:~$ John Kane Kingston ON Canada > -Original Message- > From: nord...@dshs.wa.gov > Sent: Tue, 12 Jun 2012 16:02:55 + > To: jrkrid...@inbox.com, r-help@r-project.org > Subject: RE: [R] Attempting to update from R 2.14 to 2.15 > >

Re: [R] Attempting to update from R 2.14 to 2.15

2012-06-12 Thread John Kane
Thanks arun, Thanks arun . It looked good but no luck. I have updated my /etc/apt/sources.list, apparently installed the gpg code etc thanks to Dan N's pointers by no go. Still the same error message when doing sudo ap-get update. John Kane Kingston ON Canada > -Original

Re: [R] Attempting to update from R 2.14 to 2.15

2012-06-12 Thread John Kane
The problem is that the Ubuntu site still has 2.14 and won't update til something like Ubuntu 12.10 or whatever the next release is. Thanks for all the help. John Kane Kingston ON Canada > -Original Message- > From: nord...@dshs.wa.gov > Sent: Tue, 12 Jun 2012 16:58

Re: [R] Attempting to update from R 2.14 to 2.15

2012-06-12 Thread John Kane
Thanks I have just subscribed. John Kane Kingston ON Canada > -Original Message- > From: nord...@dshs.wa.gov > Sent: Tue, 12 Jun 2012 17:26:02 + > To: jrkrid...@inbox.com, r-help@r-project.org > Subject: RE: [R] Attempting to update from R 2.14 to 2.15 > >&g

Re: [R] How to Group Categorical data in R?

2012-06-13 Thread John Kane
This is not really enough information. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Have you looked at ?unique John Kane Kingston ON Canada > -Original Message- > From: mandec

Re: [R] templated use of aggregate

2012-06-13 Thread John Kane
I think the column is wrong in adf <- aggregate(.~mm[,1], data=mm, sum) Try 2 rather than 1 but this is just a guess since the sample data is not easily useable.. Please supply your sample data using dput(() See ?dput for information. It makes llife much easier for the reader. John K

Re: [R] regarding the function WebCorpus

2012-06-13 Thread John Kane
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. John Kane Kingston ON Canada > -Original Message- > From: raishilpa@gmail.com > Sent: Wed, 13 Jun 2012 05:11:29 -0700 (PDT) >

Re: [R] density plot on a log scale

2012-06-14 Thread John Kane
t, price)) + geom_point(alpha = 1/10) p http://had.co.nz/ggplot2/geom_point.html John Kane Kingston ON Canada > -Original Message- > From: j...@bitwrit.com.au > Sent: Thu, 14 Jun 2012 21:39:36 +1000 > To: field.c...@gmail.com > Subject: Re: [R] density plot on a log s

Re: [R] R matrix help

2012-06-14 Thread John Kane
Why would those figues (dim= 3X4, dim=5X4) be the dimensions? Could not they equally be 4X3 an 4X5 or am I completely misunderstanding the question? John Kane Kingston ON Canada > -Original Message- > From: karthick.laksh...@gmail.com > Sent: Thu, 14 Jun 2012 05:51:24 -0700 (

Re: [R] Time difference between two dates/timing

2012-06-14 Thread John Kane
"%d/%m/%Y %H:%M")) diff(dtime[,1]) John Kane Kingston ON Canada > -Original Message- > From: antony.akk...@ge.com > Sent: Thu, 14 Jun 2012 03:08:25 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Time difference between two dates/timing > > Hi, >

Re: [R] How to save my result with Loops

2012-06-17 Thread John Kane
providing data please use something like dput() Let's say your vector is called vec. You can type dput(vec) and get a data structure that you can copy and paste into your email and which a reader can directly paste into R. John Kane Kingston ON Canada > -Original Message- > F

Re: [R] Apply() on columns

2012-06-19 Thread John Kane
, 34.75, 35.25)), .Names = c("V1", "V2", "V3", "V4", "V5", "V6", "V7", "V8", "V9", "V10"), row.names = c(NA, 6L), class = "data.frame") Presumably V1 is related to V6 somehow? If so what

Re: [R] Conditioned Latin Hypercube Sampling within determined distance

2012-06-20 Thread John Kane
So what have you tried so far? The posting guidelines asks for code and, where possible, data. Have a look at ?dput for a possible way to dupply data. John Kane Kingston ON Canada > -Original Message- > From: shenr...@hotmail.com > Sent: Wed, 20 Jun 2012 07:32:21 -0700 (PDT

Re: [R] Apply() on columns

2012-06-20 Thread John Kane
a grouped boxplot John Kane Kingston ON Canada > -Original Message- > From: f.a.elsendo...@gmail.com > Sent: Tue, 19 Jun 2012 22:25:31 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Apply() on columns > > Hi, > > Yes, the columns are related: V1

Re: [R] Conditioned Latin Hypercube Sampling within determined distance

2012-06-20 Thread John Kane
Sorry that should be 'supply' data John Kane Kingston ON Canada > -Original Message- > From: shenr...@hotmail.com > Sent: Wed, 20 Jun 2012 10:53:52 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Conditioned Latin Hypercube Sampling within determine

Re: [R] binary operators that never return missing values

2012-06-20 Thread John Kane
I'm not sure I got the question but is this something like what you want? x[is.na(x) ] <- "FALSE" x John Kane Kingston ON Canada > -Original Message- > From: ajdam...@gmail.com > Sent: Wed, 20 Jun 2012 16:44:25 -0400 > To: r-help@r-project.org &

Re: [R] Questions about doing analysis based on time

2012-06-22 Thread John Kane
nice. Try this where your file is called "mydata" # just copy the line below and paste into R head(mydata, 100) # Now copy the output and paste it into your wordprocess as a reply to the list and we will have decent data to work with. John Kane Kingston ON Canada > ---

Re: [R] Questions about doing analysis based on time

2012-06-25 Thread John Kane
Arrgh yes I did mean dput(head(mydata, 100)). Thanks for catching it. John Kane Kingston ON Canada > -Original Message- > From: michael.weyla...@gmail.com > Sent: Fri, 22 Jun 2012 14:25:30 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] Questions about doing analysi

Re: [R] graph displays

2012-06-25 Thread John Kane
86L)), .Names = c("X1000s", "X600s", "X500s", "X250s", "X100s", "X50s", "X10s", "X5s", "X3s", "X1s"), class = "data.frame", row.names = c("A", "B", "C")) #th

Re: [R] graph displays

2012-06-26 Thread John Kane
ue, fill= Source )) + geom_bar(position = "dodge") + scale_y_continuous(" Scale Values") + scale_x_discrete("X values") + opts( title = "Graphing Exercise") p

Re: [R] plotting two histograms on one plot with hist function

2012-06-26 Thread John Kane
Why not just plot the two histograms on the same scale in a 2 panel plot? John Kane Kingston ON Canada > -Original Message- > From: mb...@sun.ac.za > Sent: Tue, 26 Jun 2012 15:24:55 +0200 > To: r-help@r-project.org > Subject: [R] plotting two histograms on one plot wit

Re: [R] plotting two histograms on one plot with hist function

2012-06-26 Thread John Kane
Oh, I had not thought of it in those terms. It does make sense now. John Kane Kingston ON Canada -Original Message- From: ke...@math.montana.edu Sent: Tue, 26 Jun 2012 10:57:31 -0600 To: jrkrid...@inbox.com Subject: Re: [R] plotting two histograms on one plot

Re: [R] plotting two histograms on one plot with hist function

2012-06-27 Thread John Kane
legend("topleft", c("Dataset 1","Data set 2"), cex=0.6,bty="n", fill=c("Red","Green")) Thanks again for the help! From: John Kane [mailto:jrkrid...@inbox.com] Sent: 26 June 2012 23:27 To: ilai C

[R] ggplot2 ordering in a faceted dotplot.

2012-06-27 Thread John Kane
1.2-4digest_0.5.2 grid_2.15.0 [5] labeling_0.1 MASS_7.3-18memoise_0.1munsell_0.3 [9] proto_0.3-9.2 RColorBrewer_1.0-5 stringr_0.6tools_2.15.0 John Kane Kingston ON Canada #=

Re: [R] How can I make a list using aggregate function?

2012-06-28 Thread John Kane
data? We really should see some sample data. See ?dput for a way to supply some. John Kane Kingston ON Canada > -Original Message- > From: sureshmallika...@gmail.com > Sent: Thu, 28 Jun 2012 01:58:30 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] How can I ma

Re: [R] qplot and colors (Please Help)

2012-06-28 Thread John Kane
Something like this may do it. http://stackoverflow.com/questions/6919025/how-to-assign-colors-to-categorical-variables-in-ggplot2-that-have-stable-mappin John Kane Kingston ON Canada > -Original Message- > From: david_ly...@yahoo.com > Sent: Wed, 27 Jun 2012 09:07:53 -0700 (

Re: [R] Help

2012-06-29 Thread John Kane
; ) mdata <- melt(mydata) p <- ggplot( mdata , aes(variable, value , colour = variable )) + geom_boxplot() + facet_grid( group ~ .) p == John Kane Kingston ON Canada > -Original Message- > From: hanna

Re: [R] Help

2012-06-30 Thread John Kane
proto_0.3-9.2 RColorBrewer_1.0-5 scales_0.2.1 [13] stringr_0.6 John Kane Kingston ON Canada -Original Message- From: hannah@gmail.com Sent: Fri, 29 Jun 2012 21:31:55 -0400 To: jrkrid...@inbox.com Subject: Re: [R] Help Hi Petr, David and John, Thank

Re: [R] Help

2012-06-30 Thread John Kane
is unattach it( see above|), and then upgrade both reshape2 and ggplot to to the most recent versions and see what happens running the code from my first post. Best of luck. John Kane Kingston ON Canada > -Original Message- > From: hannah@gmail.com > Sent: Sat, 30 Jun

Re: [R] geom_boxplot

2012-07-01 Thread John Kane
e on the internet and search results usually are not too bad. You may also want to subcribe to the ggplot2 group on google groups. Best wishes John Kane Kingston ON Canada > -Original Message- > From: hannah@gmail.com > Sent: Sun, 1 Jul 2012 08:39:20 -0400 > To: r-he

Re: [R] Decrete value check in a matrix

2012-07-02 Thread John Kane
b = c(2.4, 4, 6, 6.7)) ww <- data.frame( is.wholenumber(aa)) cbind(aa, ww) John Kane Kingston ON Canada > -Original Message- > From: antony.akk...@ge.com > Sent: Mon, 2 Jul 2012 03:04:48 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Decrete value check in a ma

Re: [R] ggplot: dodge positions

2012-07-02 Thread John Kane
Can you expand a bit on what is wrong with the dodge option? From what I see it looks lovely witht the points exactly lined with the boxplots for each group but perhaps I don't understand exactly what you want . John Kane Kingston ON Canada > -Original Message- > From

Re: [R] geom_boxplot

2012-07-02 Thread John Kane
Thanks Petr, I suppose this means I have to reread that set of changes again. I think I noticed it and promptly forgot it. John Kane Kingston ON Canada > -Original Message- > From: petr.pi...@precheza.cz > Sent: Mon, 2 Jul 2012 10:41:20 +0200 > To: jrkrid...@inbox.com &

Re: [R] ggplot: dodge positions

2012-07-02 Thread John Kane
have no idea how the x axis points on the boxplot are determined. It may be relatively clear in the code but I don't really have the knowledge to ferret it out. Sorry that I cannot be of more help. John Kane Kingston ON Canada > -Original Message- > From: thorn.tha...

Re: [R] ggplot: dodge positions

2012-07-02 Thread John Kane
stant' whisker for that boxplot. So I looks to me as if in my version of the plot it is what you want. Any change that I can email directly to you and get an attactment through? John Kane Kingston ON Canada > -Original Message- > From: thorn.tha...@rdls.nestle.com > Sent: Mo

<    7   8   9   10   11   12   13   14   15   16   >