Re: [R] Looping through a dataframe

2020-07-21 Thread John Kane
It occurs to me a simple table command will do what you say you want but I suspect the real analysis is more complicated dat1 <- data.frame(aa = sample(letters[1:5], 10, replace = TRUE), bb = 1:10) table(dat1$aa) On Tue, 21 Jul 2020 at 14:01, John Kane wrote: > As Ber

Re: [R] Error in mice package when trying to use subset of variables for imputation model

2020-07-21 Thread John Kane
gt; 0, 0, 0, 1, 0, 0, 0, 0, 0), TSHS_30R = c(0, 0, 0, 0, 0, 0, 0, > > 0, 0, 0), TSHS_31R = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), TSHS_32R = c(0, > > 0, 0, 0, 0, 0, 0, 0, 0, 0), TSHS_33R = c(0, 0, 0, 0, 0, 0, 0, > > 0, 0, 0)), row.names = c(NA, -10L), class = c("tbl_df", &q

Re: [R] Arranging ggplot2 objects with ggplotGrob()

2020-07-24 Thread John Kane
roject.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- John Kane Kingston ON Canada [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Arranging ggplot2 objects with ggplotGrob()

2020-07-24 Thread John Kane
ot possible without using one of those two packages? I got the > impression I should be able to use grid.arrange to do so but was not able > to get it to work without disturbing the width alignment above... > > __ > R-help@r-project

Re: [R] Fortune nomination .... Re: Looping through a dataframe

2020-07-24 Thread John Kane
http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- John Kane Kingston ON Canada [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBS

Re: [R] Writing Persian (Arabic) in a data frame

2020-07-28 Thread John Kane
elp@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. > -- John Kane King

Re: [R] ggplot2

2013-07-04 Thread John Kane
I think we need to see some of the original data. See ?dput for how to supply data in a email. We probably don't need all the data, I'd suggest perhaps 100 rows or so. Try dput(head(yourdata, 100)) BTW what is "last"? John Kane Kingston ON Canada > -Origi

Re: [R] ggplot2

2013-07-04 Thread John Kane
27;t know if it would be useful or not without seeing it. Generally seeing the original data is helpful as is seeing your basic code. Have a look at one or the other of these for some suggestions on writing to the R-help list https://github.com/hadley/devtools/wiki/Reproducibility http://sta

Re: [R] save rds as text

2013-07-06 Thread John Kane
You might want to have a look at the xtable package John Kane Kingston ON Canada > -Original Message- > From: ac...@le.ac.uk > Sent: Fri, 5 Jul 2013 03:44:02 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] save rds as text > > I created a table like t

Re: [R] Data Package Query

2013-07-06 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: y_re...@hotmail.com Sent: Fri, 5 Jul 2013 13:35:32 + To: jrkrid...@inbox.com, rolf.tur...@xtra.co.nz, jdnew...@dcn.davis.ca.us Subject: RE: [R] Data Package Query Hello, When I run the below syntax: Trial<-read.table("T

Re: [R] A question on the abline function

2013-07-09 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: jia2...@citi.com > Sent: Mon, 8 Jul 2013 12:45:03 + > To: r-help@r

Re: [R] PCA and gglot2

2013-07-10 Thread John Kane
It looks like you can if I understand properly. Try this dat1 <- data.frame(dat1$scores) dat1$items <- rownames(data1) ggplot(dat1, aes(Comp.1, Comp.2, colour = items)) + geom_point() + theme(legend.position="none") John Kane Kingston ON Canada > -Original Mes

Re: [R] PCA and gglot2

2013-07-10 Thread John Kane
, colour = items)) + geom_point() + theme(legend.position="none") A quick look suggests that this is roughly the same plot as in the example Fig 4 but there the author is using geom_segment to add the lines but I have not looked at it all that carefully. John Kane Kingston O

Re: [R] Sparse matrix no longer sparse (Matrix Package)

2013-07-11 Thread John Kane
then copy and paste the results into your email. So for file "dat1" one would just use dput(dat1) and paste the results into an email. John Kane Kingston ON Canada > -Original Message- > From: hdo...@air.org > Sent: Thu, 11 Jul 2013 09:53:40 + > To: r-help@r

Re: [R] PCA and gglot2

2013-07-11 Thread John Kane
Not sure why the problem. I think I'd need see your actual data and give it a try. If you want to supply your data or a sample of it see ?dput for a convenient way to do so. I see thought that you've found a dedicated ggplot biplot so if may not be worth your while. John Kane K

Re: [R] Sparse matrix no longer sparse (Matrix Package)

2013-07-11 Thread John Kane
ode. > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Doran, Harold > Sent: Thursday, July 11, 2013 11:36 AM > To: 'John Kane'; r-help@r-project.org > Cc: dmba...@gmail.com; maech...@stat.math.eth

Re: [R] Help on np package - how to set the data into a panel format

2013-07-13 Thread John Kane
We really need to see the data, I think. You can use the function dput(), see ?dput dput(filename) will give you a formatted output that you can just copy and paste into an e-mail. An R-help reader can just copy and paste that into R and have an exact copy of your data set. John Kane

Re: [R] Different x-axis scales using c() in latticeExtra

2013-07-20 Thread John Kane
No idea what I happening but does this give what you expect library(gridExtra) preds <- grid.arrange(pred1_plot,pred2_plot, pred3_plot, ncol=3) preds John Kane Kingston ON Canada > -Original Message- > From: stev0...@gmail.com > Sent: Fri, 19 Jul 2013 22:18:47 -0500 &g

Re: [R] How to search for a sequence(and its combination) inside a vector?

2013-07-20 Thread John Kane
Taking Berend's example a bit further, this seems to work If you use str(b) you will see it is a list b <- rle(a) cc <- data.frame(b[[1]], b[[2]]) names(cc) <- c("leng", 'val') dd <- subset(cc, val ==TRUE ) table(dd) John Kane Kingston ON Canada >

Re: [R] How to search for a sequence(and its combination) inside a vector?

2013-07-20 Thread John Kane
TRUE 213 TRUE 233 TRUE 251 TRUE 273 TRUE 291 TRUE John Kane Kingston ON Canada > -Original Message- > From: tmrs...@gmail.com > Sent: Sat, 20 Jul 2013 13:11:47 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] How to search for a sequence(and its comb

Re: [R] How to search for a sequence(and its combination) inside a vector?

2013-07-20 Thread John Kane
My best guess it that you have something like 1 123123 in there somewhere try: which(cc[,1] == 6) and have a look at line 137 Essentially your data does not look exactly like what you think it does. John Kane Kingston ON Canada > -Original Message- > From: tmrs...@gmail.com

Re: [R] HELP R

2013-07-22 Thread John Kane
ake-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: teresama...@hotmail.com > Sent: Mon, 22 Jul 2013 09:11:32 + > To: r-help@r-project.org > Subject: Re: [R] HELP R > > > > > > > > > Hi, I did

Re: [R] Function, that assigns two vectors to each other

2013-07-24 Thread John Kane
and paste the results into the mail. John Kane Kingston ON Canada > -Original Message- > From: gallr...@psychologie.tu-dresden.de > Sent: Wed, 24 Jul 2013 12:25:35 +0200 > To: r-help@r-project.org > Subject: [R] Function, that assigns two vectors to each other > >

Re: [R] Paternity data analysis problem

2013-07-24 Thread John Kane
Please use dput() to supply data and send in text format not html. Thanks John Kane Kingston ON Canada > -Original Message- > From: mrahmankuf...@gmail.com > Sent: Wed, 24 Jul 2013 19:00:42 +0800 > To: r-help@r-project.org, r-help-requ...@r-project.org, > r-help-ow..

Re: [R] Network analysis

2013-07-24 Thread John Kane
but there is a link to the author's code. And it's a fun read. http://kieranhealy.org/blog/archives/2013/06/09/using-metadata-to-find-paul-revere/ John Kane Kingston ON Canada > -Original Message- > From: sundas.java...@imperial.ac.uk > Sent: Wed, 24 Jul 2013 10:18:03 +

Re: [R] help on carrying forward several vectors of rownames

2013-07-26 Thread John Kane
y because 'list' has a special meaning in R and I don't think that is what you mean. if it is, my appologies. Perhaps have a look at https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Re: [R] add different regression lines for groups on ggplot

2013-07-27 Thread John Kane
mp;ei=MfHzUej7FoSergG1_ICYAw&usg=AFQjCNH2b72a6un_xAM-PYxC-sUGU8-xOw&sig2=iBIrl1uhIsJXmPbAh4kUbw&bvm=bv.49784469,d.aWM You may be able to use two smooth statements to do what you want. John Kane Kingston ON Canada > -Original Message- > From: ye...@lbl.gov > Sent: Fri, 26 Jul 201

Re: [R] Extracting Current and Old Date

2013-07-28 Thread John Kane
If I read this correctly: mydates <- as.Date(c("2007-06-22", "2007-05-21", "2004-04-13", "2004-03-11","2004-02-13")) xx <- min(mydates) yy <- max(mydates) yy-xx John Kane Kingston ON Canada > -Original Message- > Fro

Re: [R] Reshape

2013-07-30 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: dominic.r...@gmail.com > Sent: Tue, 30 Jul 2013 15:41:46 +0200 >

Re: [R] Time Series with daily frequency

2013-07-30 Thread John Kane
Who knows? You have not told us what you are actually doing. https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: lcmail4li...@gma

Re: [R] Dot plot similar to StatKey

2013-07-30 Thread John Kane
geom_dotplot() in the ggplot2 package perhaps? ggplot(mtcars, aes(x = mpg)) + geom_dotplot() John Kane Kingston ON Canada > -Original Message- > From: dwarnol...@suddenlink.net > Sent: Mon, 29 Jul 2013 23:21:26 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Dot

Re: [R] cross-correlation with R

2013-07-30 Thread John Kane
We need to know what you actually are doing before we can suggest anything. Have a look at these links : https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Origi

Re: [R] Highlight selected bar in barplot

2013-07-31 Thread John Kane
eat-r-reproducible-example for some suggetions on asking questions and code formatting. John Kane Kingston ON Canada > -Original Message- > From: debrui...@gmail.com > Sent: Wed, 31 Jul 2013 16:57:55 +0200 > To: r-help@r-project.org > Subject: [R] Highlight selected bar in

Re: [R] ggplot2: color histograms by quintile

2013-08-01 Thread John Kane
There is a problem with your example data set. "Series" has only one value so there is no faceting. Also you refer to "trim.index$Rate" . Where is it coming from or is trim.index just another name for "thing" John Kane Kingston ON Canada > -Original

Re: [R] Forest plot with sub group analyses

2013-08-02 Thread John Kane
No attachments came through. Either include the code and the data in the email---see ?dupt for a way to include the data or include the files as .txt files. John Kane Kingston ON Canada > -Original Message- > From: wngich...@gmail.com > Sent: Fri, 2 Aug 2013 10:45:33 +020

Re: [R] Junk mail

2013-08-03 Thread John Kane
https://stat.ethz.ch/mailman/listinfo/r-help Scroll down John Kane Kingston ON Canada > -Original Message- > From: judahscep...@gmail.com > Sent: Sat, 3 Aug 2013 15:32:22 +0100 > To: r-h...@stat.math.ethz.ch > Subject: [R] Junk mail > > Please remove my my e

Re: [R] Internalization of help pages

2013-08-04 Thread John Kane
I tried it in French and there a few hiccups but it's not too bad. Personally I'd like to see the help tranlated into English too.l John Kane Kingston ON Canada > -Original Message- > From: j...@bitwrit.com.au > Sent: Sun, 04 Aug 2013 10:28:42 +1000 > To: tomas.g

Re: [R] Retreiving correct data from combining two datasets

2013-08-05 Thread John Kane
a bit more information. See https://github.com/hadley/devtools/wiki/Reproducibility and/or http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some suggestions on crafting a question for the list. John Kane Kingston ON Canada > -Original Mess

Re: [R] Retreiving correct data from combining two datasets

2013-08-05 Thread John Kane
In Line John Kane Kingston ON Canada > -Original Message- > From: i...@software-solutions.nl > Sent: Mon, 5 Aug 2013 06:57:30 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Retreiving correct data from combining two datasets > > Hi all, > > I have t

Re: [R] can't read a file

2013-08-05 Thread John Kane
No you don't need another format. read.table is the same on any operating system. What is your actual command and what error messages if any? It may be a path problem. John Kane Kingston ON Canada > -Original Message- > From: clemence.germa...@gmail.com > Sent: Mon, 5

Re: [R] odfWeave post processing error

2013-08-07 Thread John Kane
I think we would need to see the odt file. You might want to upload it to some place like www.mediafire.com or www.dropbox.com so that R-help readers can take a look at it. John Kane Kingston ON Canada > -Original Message- > From: cougar...@hotmail.com > Sent: Tue, 6 Au

Re: [R] Change number of rows in console

2013-08-20 Thread John Kane
Really a question for RStudio support and I don't know if this is still true http://support.rstudio.org/help/discussions/questions/724-console-line-limit but I'd also suggest just using sink() and viewing the results in a text editor or word processor. John Kane Kingston

Re: [R] Narrowing values collected from .txt file

2013-08-21 Thread John Kane
John Kane Kingston ON Canada > -Original Message- > From: emor...@usgs.gov > Sent: Wed, 21 Aug 2013 06:50:07 -0700 > To: r-help@r-project.org > Subject: [R] Narrowing values collected from .txt file > > useRs- > > The output generated from a groundwater mo

Re: [R] rcode problem

2013-08-21 Thread John Kane
Your data arrived but no code. The R help list is fussy about what type of files you can attache. For an alternative approach have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Mess

Re: [R] how to combine apply and which or alternative ways to do so

2013-08-24 Thread John Kane
am wrong, and I think I am, would you explain the problem a bit more, perhaps with some small data vectors? John Kane Kingston ON Canada > -Original Message- > From: balguillaume2...@gmail.com > Sent: Fri, 23 Aug 2013 14:37:26 -0700 > To: r-help@r-project.org > Subject: [R]

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
I am misreading something here I think. Why are you graphing against a constant? John Kane Kingston ON Canada > -Original Message- > From: mohan.radhakrish...@polarisft.com > Sent: Tue, 27 Aug 2013 13:28:48 +0530 > To: r-help@r-project.org > Subject: [R] Scale of axis fo

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
have read about double-axis graphs is rather negative. However, I know they are standard in some disciplines. John Kane Kingston ON Canada -Original Message- From: mohan.radhakrish...@polarisft.com Sent: Tue, 27 Aug 2013 17:08:51 +0530 To: jrkrid...@inbox.com Subject: RE: [R] Scale of ax

Re: [R] Naming columns

2013-08-27 Thread John Kane
names(mydatat) <- c("V1","V2","V3") For future reference https://github.com/hadley/devtools/wiki/Reproducibility and/or http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > ---

Re: [R] Pasting excell spreedsheet into notepad for R

2013-08-27 Thread John Kane
If I understand you correctly just import the data into R as a data.frame and then use the unlist() command. John Kane Kingston ON Canada > -Original Message- > From: mban...@partners.org > Sent: Mon, 26 Aug 2013 09:06:12 -0700 (PDT) > To: r-help@r-project.org > Subje

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
raphs one on top of the other , with the top graph having the 'higher' values. However it is a judgement call and also dependent on the discipline. Anyway see the quick and dirty attempt attached to see what I am suggesting. John Kane Kingston ON Canada -Original Me

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
Jim, With those ranges isn't Mohan going to lose discrimination? That's one reason I suggested a two-panel approach. John Kane Kingston ON Canada > -Original Message- > From: j...@bitwrit.com.au > Sent: Tue, 27 Aug 2013 22:36:12 +1000 > To: mohan.radhakrish...@p

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
could be a long night/week. Good luck. John Kane Kingston ON Canada -Original Message- From: mohan.radhakrish...@polarisft.com Sent: Tue, 27 Aug 2013 18:21:45 +0530 To: jrkrid...@inbox.com Subject: RE: [R] Scale of axis for two data sets Thanks. There is one more idea from Jim Lemon whic

Re: [R] find row name with specific value

2013-08-27 Thread John Kane
with data named dat1 match(2, dat1$samp.depth) John Kane Kingston ON Canada > -Original Message- > From: catalinro...@gmail.com > Sent: Tue, 27 Aug 2013 20:24:04 +0300 > To: r-help@r-project.org > Subject: [R] find row name with specific value > > Hello all! >

Re: [R] find row name with specific value

2013-08-27 Thread John Kane
Well I don't see anything that looks like a year but go from this dat1[match(2, dat1$samp.depth),] and pick off what you want I guess John Kane Kingston ON Canada -Original Message- From: catalinro...@gmail.com Sent: Tue, 27 Aug 2013 20:46:27 +0300 To: jrkrid...@inbox.com Subjec

Re: [R] netlogo r-extension loadlibrary() failures

2013-08-28 Thread John Kane
fortune but it's going into my collection of quotes. John Kane Kingston ON Canada FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! __

Re: [R] Few doubts about ANOVA

2013-08-29 Thread John Kane
Looks like school is starting up again. We don't usually help with homework especially at this level. Read a text book John Kane Kingston ON Canada > -Original Message- > From: bal.chan...@gmail.com > Sent: Thu, 29 Aug 2013 15:57:29 +0530 > To: r-help@r-project.org &

Re: [R] Plotting time vs number

2013-08-29 Thread John Kane
Please use dput() to supply data. It's a lot easier for readers to just copy and paste into R. I have no idea of what variables are associated with the columns below. John Kane Kingston ON Canada > -Original Message- > From: mohan.radhakrish...@polarisft.com > Sent: Th

Re: [R] (no subject)

2013-08-30 Thread John Kane
sstat/ Good luck. Oh and R is much nicer than SPSS. Come join us. John Kane Kingston ON Canada > -Original Message- > From: joanasco...@hotmail.com > Sent: Fri, 30 Aug 2013 14:27:37 +0100 > To: r-help@r-project.org > Subject: [R] (no subject) > > good afternoon

Re: [R] strange conversion char to date

2013-08-30 Thread John Kane
Maybe there is some built-in assumption about dating and when to change to the new century. It seems to kick-in at 1968 as.Date("25/04/69", "%d/%m/%y") as.Date("25/04/68", "%d/%m/%y") as.Date("25/04/60", "%d/%m/%y") John K

Re: [R] Validating data type

2013-08-30 Thread John Kane
usually a sample amoutnt will do , so dput(head(mydata, 100) for example will supply 100 rows of data. Below is a example of a data.frame in dput format. Just copy and paste it into R and you will have a new date.frame John Kane Kingston ON Canada ##dput file==

Re: [R] Issue with R libraries

2013-08-31 Thread John Kane
What error messages etc are you getting? What actual commands are you using? sessionInfo? John Kane Kingston ON Canada > -Original Message- > From: prakash.dev-ku...@hp.com > Sent: Sat, 31 Aug 2013 03:35:37 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Issue w

Re: [R] how to generate graphs for multiple regressions

2013-08-31 Thread John Kane
This is not a mailing list for people's homework. John Kane Kingston ON Canada > -Original Message- > From: bal.chan...@gmail.com > Sent: Sat, 31 Aug 2013 12:07:22 +0530 > To: r-help@r-project.org > Subject: [R] how to generate graphs for multiple regressions >

Re: [R] Problem with installing the TRR package

2013-09-04 Thread John Kane
The latest release (2013-05-16, Good Sport) R-3.0.1 so perhaps you need to upgrade to 3.0.1? John Kane Kingston ON Canada > -Original Message- > From: lucien.blanden...@unine.ch > Sent: Wed, 4 Sep 2013 15:05:03 + > To: r-help@r-project.org > Subject: [R] Problem with

Re: [R] Summarizing elements for a data.frame

2012-12-18 Thread John Kane
And yet another way. library(reshape2) names(Dat1) <- c("big","small","nums") dcast(Dat1 , big ~ small, sum) John Kane Kingston ON Canada > -Original Message- > From: bogaso.christo...@gmail.com > Sent: Tue, 18 Dec 2012 20:06:42 +053

Re: [R] how can I import op.gz files with read.csv or otherwise

2012-12-21 Thread John Kane
cleanup in a text editior or perhaps load it into a spreadsheet before you read it into R. I tried the method from the link arun provided and it did not work. It looks like the headers and data are not consistant John Kane Kingston ON Canada > -Original Message- > From: herr

Re: [R] Starting with R

2012-12-30 Thread John Kane
asking it. This makes helping you much easier and you don't get nasty remarks thrown at you. Welcome to the R world John Kane Kingston ON Canada > -Original Message- > From: sid.2311...@gmail.com > Sent: Sun, 30 Dec 2012 17:07:47 +0545 > To: r-help@r-project.org &

Re: [R] a problem for metafor package

2012-12-31 Thread John Kane
The attachement did not come through and we need some idea of what you are doing. Please see https://github.com/hadley/devtools/wiki/Reproducibility for some ideas of what we need. And please read the posting guide John Kane Kingston ON Canada > -Original Message- > From: id

Re: [R] Need help on dataframe

2013-01-05 Thread John Kane
ace = TRUE), nrow= 24)) dd <-rep(c("a","b"), each= 12) xx <- cbind(dd, xx) aggregate(xx[,3:5], list(xx$dd), mean) By the way, when supplying data samples a good way is to use the dput command. Try ?dput for information John Kane Kingston ON Can

Re: [R] Conditional Statistics

2013-01-08 Thread John Kane
ings very differently at times. John Kane Kingston ON Canada > -Original Message- > From: thoms...@email.arizona.edu > Sent: Mon, 7 Jan 2013 19:17:27 -0600 > To: r-help@r-project.org > Subject: [R] Conditional Statistics > > Hello, > > I am a new user of R. I

Re: [R] list of lists to matrix

2013-01-08 Thread John Kane
dput(head(testfile, 100)) will be sufficient. Simpe example: aalist <- list(aa = c(3.0, 2.9, 2.7), bb = c(0.86, 0.76, 0.66), cc= c(0.07, 0.04, 0.04), cc = c("a", "b", "c")) dput(aalist) The attached text file was useful but actual

Re: [R] problems regarding the latest version of the package "BRugs"

2013-01-09 Thread John Kane
I think we a much clearer statement of the problem This link provides some suggestions on how to frame the problem https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: mcmoumi...@gmail.com > Sent: Wed, 9 Jan 2013

Re: [R] Using table to get frequencies of several factors at once

2013-01-11 Thread John Kane
Does something like this do what you want? It returns a list of tables md <- data.frame((matrix(sample(1:5, 100, replace = TRUE),nrow= 10))) str(md) apply(md, 2, table) John Kane Kingston ON Canada > -Original Message- > From: p.mulong...@namibia.pharmaccess.org > S

Re: [R] Extract data

2013-01-11 Thread John Kane
about your installation the faster people may be able to help you. John Kane Kingston ON Canada > -Original Message- > From: shairu...@yahoo.com > Sent: Fri, 11 Jan 2013 01:18:47 -0800 (PST) > To: r-help@r-project.org > Subject: [R] Extract data > > Dear R users,

Re: [R] Insert segment only on particular facets in ggplot

2013-01-25 Thread John Kane
The image came through but no data. I'd suggest using ?dput to send the data. John Kane Kingston ON Canada > -Original Message- > From: janesh.devk...@gmail.com > Sent: Thu, 24 Jan 2013 11:46:53 -0600 > To: r-help@r-project.org > Subject: [R] Insert segment only on

Re: [R] read.csv quotes within fields

2013-01-26 Thread John Kane
Following David's suggestion you might want to have a look at https://confluence.clazzes.org/display/CSVEDIT/CSVEdit+Home . I have not used it but it seems to get good reviews from people I know. John Kane Kingston ON Canada > -Original Message- > From: dwinsem...@comcast

Re: [R] joint probability distribution

2013-01-26 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: eliza_bo...@hotmail.com > Sent: Fri, 25 Jan 2013 18:13:55 + > To: r-help@r-project.org > Subject: [R] joint probabili

Re: [R] remove margin between plot and axis

2013-01-29 Thread John Kane
Something like plot(test,type='h',yaxs='i', ylim = c(0, 60)) ? You would need to figure out what the right values for ylim are. John Kane Kingston ON Canada > -Original Message- > From: inp...@gmail.com > Sent: Tue, 29 Jan 2013 14:51:32 +0200 > To

Re: [R] R plot like candlestick

2013-01-29 Thread John Kane
other possibly useful examples. John Kane Kingston ON Canada > -Original Message- > From: denis.franci...@gmail.com > Sent: Mon, 28 Jan 2013 22:26:02 +0100 > To: r-help@r-project.org > Subject: [R] R plot like candlestick > > Hi all, > I'm new on this list so

Re: [R] Change rows and columns

2013-01-30 Thread John Kane
Please reply with context to the list. Most R-help readers do not use nabble. I don't quite understand your question but do you mean something like ?names? John Kane Kingston ON Canada > -Original Message- > From: matthias.we...@fnt.de > Sent: Tue, 29 Jan 2013 07:41:21 -0

Re: [R] pROC in "R"

2013-01-30 Thread John Kane
I don't see what is happening from your code but you have a typo in the emai if not in your code. It should be library (pROC) John Kane Kingston ON Canada > -Original Message- > From: feth...@yahoo.fr > Sent: Mon, 28 Jan 2013 14:44:50 + (GMT) > To: r-help@r-proj

Re: [R] Sourcing my file does not print command outputs

2013-02-07 Thread John Kane
>From ?source "Note that running code via source differs in a few respects from entering it at the R command line. Since expressions are not executed at the top level, auto-printing is not done. So you will need to include explicit print calls for things you want to be printed&quo

Re: [R] aggregation-type question

2013-02-08 Thread John Kane
I seem to be suffering from the same problem (the Friday one, not the cor one) Have a look at http://stats.stackexchange.com/questions/4040/r-compute-correlation-by-group for something that looks like it will work John Kane Kingston ON Canada > -Original Message- > From: davi

[R] Can not melt data.frame

2013-02-08 Thread John Kane
I realize it's -12C and we're having the next best thing to a blizzard but why can I not melt this data frame. I am missing something terribly obvious but I just don't understand what the error message is saying. John Kane Kingston ON Canada Code

Re: [R] Add text A, B, C and D on multiple ordered plot

2013-02-08 Thread John Kane
Yes there probably is if you would show us what you are doing. Minimal working code helps. https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: fabrice.c...@gmail.com > Sent: Fri, 8 Feb 2013 14:28:17 -0500 >

Re: [R] Add text A, B, C and D on multiple ordered plot

2013-02-08 Thread John Kane
-3, 150, labels ="a") hist(b) text(-4, 150, labels ="b") hist(c) text(-4, 150, labels ="c") hist(d) text(-4, 150, labels ="d") par <- opr John Kane Kingston ON Canada > -Original Message- > From: fabrice.c...@gmail.

Re: [R] compute exponential model with R

2013-02-10 Thread John Kane
We might be able to help if we knew what you are doing. https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: catalinro...@gmail.com > Sent: Sun, 10 Feb 2013 13:16:12 +0200 > To: r-help@r-project.org > Subje

Re: [R] help on plotting series with different x-axis values on a graph with one x-axis

2013-02-10 Thread John Kane
No image. png files seem to make it through so if you save as png it should arrive. Some sample code and data would help Is the data in one data.frame or could you put it into one? If so you might want to try melting the data (see reshape 2 package) and plotting with ggplot2 John Kane

Re: [R] Add text A, B, C and D on multiple ordered plot

2013-02-10 Thread John Kane
It all depends on where you want the text. Did the other two replies that I have seen provide a better solution? If not can you give us some more description of what you want or point to a graph somewhere on the internet so we can get a better idea of what you want? John Kane Kingston ON

Re: [R] Boxplot Issues

2013-02-10 Thread John Kane
Nice boxplot but you forgot to tell us the issues :) John Kane Kingston ON Canada > -Original Message- > From: asir...@gmail.com > Sent: Sat, 9 Feb 2013 08:09:13 -0800 > To: r-help@r-project.org > Subject: [R] Boxplot Issues > > __

Re: [R] match in dependence of 2 columns

2013-02-13 Thread John Kane
?merge If I have not reversed the data sets this should work With data sets called dat1 and dat2 merge(dat1,dat2, all.y = TRUE) John Kane Kingston ON Canada > -Original Message- > From: matthias.we...@fnt.de > Sent: Wed, 13 Feb 2013 06:39:57 -0800 (PST) > To: r-help@r

Re: [R] Plot a Matrix as an Image with ggplot

2013-02-14 Thread John Kane
ly need to post only in text. HTML etc is automatically dropped. John Kane Kingston ON Canada > -Original Message- > From: ala...@yahoo.com > Sent: Thu, 14 Feb 2013 07:15:05 -0800 (PST) > To: r-help@r-project.org > Subject: [R] Plot a Matrix as an Image with ggplot >

Re: [R] stratified analysis

2013-02-14 Thread John Kane
Nothing got through. You need to send everything in text format. John Kane Kingston ON Canada > -Original Message- > From: 98sa...@gmail.com > Sent: Thu, 14 Feb 2013 15:04:24 -0500 > To: r-help@r-project.org > Subject: [R] stratified analysis > > I am having troub

Re: [R] Creating a Double Bar Graph With Provided DataSet

2013-02-16 Thread John Kane
and so on This should get you started. John Kane Kingston ON Canada > -Original Message- > From: dwinsem...@comcast.net > Sent: Sat, 16 Feb 2013 05:57:29 -0800 > To: brianng...@csu.fullerton.edu > Subject: Re: [R] Creating a Double Bar Graph With Provided DataSet > &g

Re: [R] Extracting Numeric Columns from Data Fram

2013-02-16 Thread John Kane
http://stackoverflow.com/questions/5863097/selecting-only-numeric-columns-from-a-data-frame John Kane Kingston ON Canada > -Original Message- > From: bdecicco2...@yahoo.com > Sent: Sat, 16 Feb 2013 10:15:35 -0800 (PST) > To: r-help@r-project.org > Subject: [R] Extracting

Re: [R] Multidimensional correlation matrix question

2013-02-17 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: t...@gurukuli.co.uk > Sent: Sun, 17 Feb 2013 07:50:17 + > To: r-help@r-project.org > Subject: [R] Multidimensional correlation matrix question >

Re: [R] How to do a backward calculation for each record in a dataset

2013-02-17 Thread John Kane
This sounds a bit too much like homework. And in any case https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: asltjoey.rs...@gmail.com > Sent: Sun, 17 Feb 2013 20:10:13 +0700 > To: r-help@r-project.org > S

Re: [R] help with population matrix

2013-02-18 Thread John Kane
Currently your code does not seem to make any sense ===comments in line John Kane Kingston ON Canada > -Original Message- > From: s...@st-andrews.ac.uk > Sent: Mon, 18 Feb 2013 16:09:49 + > To: r-help@r-project.org > Subject: [R] help with population matrix >

Re: [R] introducing jitter in overlapping graphs using ggplots (plotmeans). Also sciplot.

2013-02-19 Thread John Kane
)) will be sufficient. In this case it looks like we would want three dput results, one for each year. John Kane Kingston ON Canada > -Original Message- > From: a...@ecology.su.se > Sent: Tue, 19 Feb 2013 12:38:25 +0100 > To: r-help@r-project.org > Subject: [R] introduc

Re: [R] Converting the data in year month day hour and minutes to date

2013-02-19 Thread John Kane
You need to convert the factor to character. as.Date( as.character(mydata$Date), "%Y-%m-%d") should do it. John Kane Kingston ON Canada > -Original Message- > From: janesh.devk...@gmail.com > Sent: Tue, 19 Feb 2013 11:47:04 -0600 > To: r-help@r-project.org >

Re: [R] Problem with levelplot() in a loop

2013-02-20 Thread John Kane
I think you need a print command in there John Kane Kingston ON Canada > -Original Message- > From: nikhiljo...@gmail.com > Sent: Wed, 20 Feb 2013 16:38:56 -0500 > To: r-help@r-project.org > Subject: [R] Problem with levelplot() in a loop > > Dear R users, &

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