Re: [R] Bayesian network

2013-03-21 Thread John Kane
You might want to start by reading the Bayesian task view at http://probability.ca/cran/ John Kane Kingston ON Canada -Original Message- From: s_zerm...@esi.dz Sent: Thu, 21 Mar 2013 07:06:40 -0700 (PDT) To: r-help@r-project.org Subject: [R] Bayesian network HeLLo, I'm new

Re: [R] How to get the t-stat for arima()?

2013-03-20 Thread John Kane
to pause and reflect if there might be a good reason. I nominate this as a fortune candidate. Seconded John Kane Kingston ON Canada -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla

Re: [R] help pairs

2013-03-20 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibilityhttps://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada -Original Message- From: ingf...@gmail.com Sent: Wed, 20 Mar 2013 18:18:17 + To: r-help@r-project.org Subject: [R] help pairs Hi

Re: [R] summarize dataframe based on multiple cols, not their combinations

2013-03-20 Thread John Kane
Will this do? library(plyr) ddply(my_df, .(a), summarize, mm = mean(dat), number = length(dat)) John Kane Kingston ON Canada -Original Message- From: ashen...@ufl.edu Sent: Wed, 20 Mar 2013 14:57:36 -0500 To: r-help@r-project.org Subject: [R] summarize dataframe based

Re: [R] Data manipulation

2013-03-15 Thread John Kane
some sample data. John Kane Kingston ON Canada -Original Message- From: ii54...@msn.com Sent: Fri, 15 Mar 2013 12:40:54 + To: r-help@r-project.org Subject: [R] Data manipulation Hello all, I would appreciate your thoughts on a seemingly simple problem. I have

Re: [R] reviewer comment

2013-03-15 Thread John Kane
No idea of what sentence. R-help strips any html and only provides a text message so all formatting has been lost. I think the question is not really an R-help question but if you resubmit the post you need to show the sentence in question in another way. John Kane Kingston ON Canada

Re: [R] Writing a hyperlink to a csv file

2013-03-15 Thread John Kane
Well you can write it there but it won't do anything until read into some software that can interpret it as a url. A csv file is just plain text. John Kane Kingston ON Canada -Original Message- From: bsmith030...@gmail.com Sent: Fri, 15 Mar 2013 07:53:02 -0400 To: r-help@r

Re: [R] Data manipulation

2013-03-15 Thread John Kane
3 1 4 4 I see that you have two combinations of Class and X with no entries. Is this what you wanted to show in W? If so, it is not immediately apparent how to go about this. John Kane Kingston ON Canada -Original Message- From: ii54...@msn.com Sent: Fri, 15 Mar 2013 13

Re: [R] Data manipulation

2013-03-15 Thread John Kane
Nice. That does look like it. IOANNA? John Kane Kingston ON Canada -Original Message- From: nbla...@ispm.unibe.ch Sent: Fri, 15 Mar 2013 14:27:03 +0100 To: ii54...@msn.com, r-help@r-project.org Subject: Re: [R] Data manipulation Is this what you want to do? D2 - expand.grid

Re: [R] reviewer comment

2013-03-15 Thread John Kane
I think this is more a question for something like Cross Validated but you may well get a hint or two here. Unfortunately while I vaguely see what the reviewer is getting at I certainly don't know enough to help. John Kane Kingston ON Canada -Original Message

Re: [R] Reassign values based on multiple conditions

2013-03-15 Thread John Kane
)) will be sufficient. Sorry I'm not more helpful John Kane Kingston ON Canada -Original Message- From: cat.e.co...@gmail.com Sent: Fri, 15 Mar 2013 12:46:13 +0800 To: r-help@r-project.org Subject: [R] Reassign values based on multiple conditions Hi all, I have a simple data

Re: [R] seeking tip to keep first of multiple observations per ID

2013-03-15 Thread John Kane
particularly at answer number 3 which uses the data.table package and which looks like it may do what you want. John Kane Kingston ON Canada -Original Message- From: jsdroys...@bellsouth.net Sent: Fri, 15 Mar 2013 12:06:05 -0400 To: r-help@r-project.org Subject: [R] seeking tip

Re: [R] column and line graphs in R

2013-03-14 Thread John Kane
, 6L, 11L, 5L, 8L, 13L, 16L, 15L, 2L), freq = c(17L, 14L, 7L, 13L, 19L, 5L, 3L, 20L, 9L, 10L )), .Names = c(abond, freq), row.names = c(NA, -10L), class = data.frame) plot(dat1$abond, col = red) lines(dat1$freq, col= blue) John Kane Kingston

Re: [R] column and line graphs in R

2013-03-14 Thread John Kane
in advance, -- Gian On 14 March 2013 14:51, John Kane jrkrid...@inbox.com wrote: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example You really need to read the posting guide and supply some sample data at the very least. Here is about as simple

Re: [R] date time manipulation- R 2.15.1 windows 7

2013-03-14 Thread John Kane
A good place to start might be http://www.jstatsoft.org/v40/i03/paper for the lubridate package or have a look at the zoo package John Kane Kingston ON Canada -Original Message- From: yash.kaja...@gmail.com Sent: Thu, 14 Mar 2013 19:15:00 +0530 To: r-help@r-project.org Subject: [R

Re: [R] merge function to combine two tables

2013-03-14 Thread John Kane
Below , in line John Kane Kingston ON Canada -Original Message- From: michael.eisenr...@gmx.ch Sent: Thu, 14 Mar 2013 11:51:49 +0100 To: r-help@r-project.org Subject: [R] merge function to combine two tables Dear R-help members I would be grateful if anyone could help me

Re: [R] plotting

2013-03-14 Thread John Kane
Also going from memory Michael's ggplot should almost work but I think yo need to change symbol = id in the aes statement to geom_point(aes(shape = id)) although it may work in the first aes() statement. John Kane Kingston ON Canada -Original Message- From: michael.weyla

Re: [R] plotting

2013-03-14 Thread John Kane
in the first aes statement. library(ggplot2) p - ggplot(dta , aes(time, value, shape = as.factor(id) , colour =as.factor(group ))) + geom_point() p John Kane Kingston ON Canada -Original Message- From: dcarl...@tamu.edu Sent: Thu, 14 Mar 2013 11:23:18 -0500

Re: [R] NLS results different from Excel -- Tricky fortunes nomination

2013-03-14 Thread John Kane
No , but please RSVP if you disagree with me. John Kane Kingston ON Canada -Original Message- From: cl...@ecy.wa.gov Sent: Thu, 14 Mar 2013 09:28:46 -0700 (PDT) To: gunter.ber...@gene.com Subject: Re: [R] NLS results different from Excel -- Tricky fortunes nomination

Re: [R] different color indicates difference magnitude

2013-03-13 Thread John Kane
The R-help list strips most attachements other than text (and perhaps pngs? ) to deduce the risk of virus or malware being recieved. You could try parking the file on something like medifire and providing a link here. John Kane Kingston ON Canada -Original Message- From: laomen

Re: [R] How to read a *.csv file in R?

2013-03-13 Thread John Kane
If that is a text file I'd guess that the seperator is a tab. I don's see why you used NULL as R should just read in the file with NA's for empty values. You might want to try : heisenberg - read.csv(file=comprice.csv,head=TRUE,sep=\t) John Kane Kingston ON Canada -Original Message

Re: [R] different color indicates difference magnitude

2013-03-13 Thread John Kane
Thanks David. The clarification helps. I had forgotten that pdfs would get through. Howeve the file got to me, I suspect because I am listed in the To line under my actual email address. I suspect that only meng and I recieved it and the rest of the list did not. John Kane Kingston

Re: [R] Read Content from URL to XML format

2013-03-08 Thread John Kane
It works for me. Or at least I got something to download. What is another matter. I am just trying to learn how to do this and really don't have any good advice. Perhaps the site was down or overloaded? Any firewalls to worry about at your end? John Kane Kingston ON Canada -Original

Re: [R] create bar chart with different totals in a bar

2013-03-08 Thread John Kane
. It is not particularly clear what you want to do. You apparently have four entries in the matrix and say that you want to have three bars. How do you want to handle the 11425 value since it has diffference cats? John Kane Kingston ON Canada -Original Message- From: matthias.we...@fnt.de

Re: [R] create bar chart with different totals in a bar

2013-03-08 Thread John Kane
= c(1, 2, 1, 2)), .Names = c(x, abnr2, time, cat), row.names = c(NA, -4L), class = data.frame) dd1 - data.frame(table( dd$cat, dd$abnr2)) ggplot(dd1, aes(Var2, Freq, fill = Var1)) + geom_bar() John Kane Kingston ON Canada -Original

Re: [R] ggplot2: modifying line width and background fill color for stat_smooth()

2013-03-08 Thread John Kane
= 0.02, width = 0)) + stat_smooth(method = glm, family = binomial, formula = y ~ poly(x,2), alpha = 0.1, size=2, aes(fill = GENDER)) John Kane Kingston ON Canada -Original Message- From: frien...@yorku.ca Sent: Fri, 08 Mar 2013 11:36:36 -0500 To: r-help@r

Re: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?

2013-03-07 Thread John Kane
Looking good. I think the function in this post is what you want. It worked on your code for me. http://stackoverflow.com/questions/13297155/add-floating-axis-labels-in-facet-wrap-plot . John Kane Kingston ON Canada -Original Message- From: a...@ecology.su.se Sent: Thu, 07 Mar

Re: [R] Read Content from URL to XML format

2013-03-07 Thread John Kane
Perhaps http://stackoverflow.com/questions/1395528/scraping-html-tables-into-r-data-frames-using-the-xml-package may be of help John Kane Kingston ON Canada -Original Message- From: antony.akk...@ge.com Sent: Wed, 6 Mar 2013 19:23:24 -0800 (PST) To: r-help@r-project.org Subject

Re: [R] ggpliot2: reordering of factors in facets facet.grid(). Reordering of factor on x-axis no problem.

2013-03-07 Thread John Kane
If I try facet_wrap(~factor1, ncol = 2) I get no faceting at all. Strange. John Kane Kingston ON Canada -Original Message- From: istaz...@gmail.com Sent: Thu, 7 Mar 2013 12:14:01 -0500 To: a...@ecology.su.se Subject: Re: [R] ggpliot2: reordering of factors in facets facet.grid

Re: [R] Copying a dataframe

2013-03-07 Thread John Kane
With the orginal data.frame being df1 df2 - data.frame(matrix(rep(NA, nrow(df1)*ncol(df1)), nrow = nrow(df1)))df2 - data.frame(matrix(rep(NA, nrow(df1)*ncol(df1)), nrow = nrow(df1))) John Kane Kingston ON Canada -Original Message- From: sahanasrinivasan...@gmail.com Sent: Thu, 7

Re: [R] ggpliot2: reordering of factors in facets facet.grid(). Reordering of factor on x-axis no problem.

2013-03-07 Thread John Kane
command to work until I rebooted RStudio and now this. I have no idea of how to track down what's happening but at least you've made me aware of it. Thanks John Kane Kingston ON Canada -Original Message- From: a...@ecology.su.se Sent: Thu, 07 Mar 2013 19:32:21 +0100

Re: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?

2013-03-06 Thread John Kane
, linetype = factor1) p1 John Kane Kingston ON Canada -Original Message- From: a...@ecology.su.se Sent: Wed, 06 Mar 2013 13:32:42 +0100 To: r-help@r-project.org Subject: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use

Re: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?

2013-03-06 Thread John Kane
Placing a legend. z - ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) + geom_point() z + theme(legend.position = c(.5, .5)) Currently this does not appear to work in RStudio but seems fine if I use gedit or if I run R in a terminal session. John Kane Kingston ON Canada

Re: [R] Graph from Glantz

2013-03-06 Thread John Kane
No link and/ no attached file. The list tends to strip most attachments to reduce virus attacks. John Kane Kingston ON Canada -Original Message- From: angeloscozzare...@tiscali.it Sent: Wed, 6 Mar 2013 19:53:18 +0100 To: r-help@r-project.org Subject: [R] Graph from Glantz Hi

Re: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?

2013-03-06 Thread John Kane
Replying to my own post RStudio is doing this fine once I had rebooted R. I must have had some strange stuff loaded that I had not realised was there. John Kane Kingston ON Canada -Original Message- From: jrkrid...@inbox.com Sent: Wed, 6 Mar 2013 11:16:28 -0800

Re: [R] How to plot 2 continous variables on double y-axis with 2 factors: ggplot2, gplot, lattice, sciplot?

2013-03-01 Thread John Kane
) # reset par # See ?text, ?par and ?mtext for more information. ##=## John Kane Kingston ON Canada -Original Message- From: a...@ecology.su.se Sent: Fri, 01 Mar 2013 11:53:31 +0100 To: jrkrid...@inbox.com Subject: RE: [R] How to plot 2 continous

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
that you specifed below ddply (dataread , .(Sector, FISCALYEAR), summarise, WROE=wavg(ROE, MKTCAP))) I think we need a bit more information. John Kane Kingston ON Canada -Original Message- From: anandpu...@gmail.com Sent: Fri, 1 Mar 2013 11:01:42 -0500 To: r-help@r-project.org

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
, FISCALYEAR), summarise,WROE=wavg(ROE, MKTCAP)) Have you left out a equation that calculates MKTCAP? John Kane Kingston ON Canada -Original Message- From: anandpu...@gmail.com Sent: Fri, 1 Mar 2013 13:53:44 -0500 To: jrkrid...@inbox.com Subject: Re: [R] Conditional Weighted Average

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
Thanks for the data . You have an undefined variable in the ddply statement. There is no MKTCAP in the data.frame. You also have one two many ) in the statement. I think it should read: ddply (dat1 , .(Sector, FISCALYEAR), summarise, WROE=wavg(ROE, MKTCAP)) John Kane Kingston ON Canada

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
See my last post which crossed yours. John Kane Kingston ON Canada -Original Message- From: anandpu...@gmail.com Sent: Fri, 1 Mar 2013 14:33:17 -0500 To: jrkrid...@inbox.com Subject: Re: [R] Conditional Weighted Average (ddply or any other function) oops - it should be MKT, I

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
Is there any chance you meant ddply (dat1 , .(Sector, FISCALYEAR), summarise, WROE=wavg(ROE, MKT)) ?? It gives a result but I have no idea if it makes sense. John Kane Kingston ON Canada -Original Message- From: anandpu...@gmail.com Sent: Fri, 1 Mar 2013 14:13:37 -0500 To: r-help

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
combinations and does not with others and let some experts have a look at it. To my untutored eye you look like you're okay but I am not an expert by any means. Sorry not to be of more help John Kane Kingston ON Canada -Original Message- From: anandpu...@gmail.com Sent: Fri, 1 Mar 2013 15

Re: [R] How to plot 2 continous variables on double y-axis with 2 factors: ggplot2, gplot, lattice, sciplot?

2013-02-28 Thread John Kane
It is not at all clear to me exactly what you want but ggplot2 does not allow double-y graphs. However does this suggest anything useful? http://grokbase.com/t/r/r-help/104yxg1q38/r-plotting-multiple-cis John Kane Kingston ON Canada -Original Message- From: a...@ecology.su.se Sent

Re: [R] Climate Spatial plot

2013-02-23 Thread John Kane
The server removed any attached files It is better to put everything in the actual email. https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada -Original Message- From: berega...@gmail.com Sent: Sat, 23 Feb 2013 02:40:29 +0300 To: r-help@r

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, I am trying to print heatmaps

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] introducing jitter in overlapping graphs

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 Subject: [R] Converting the data

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 Hi guys, I am

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 Hello, I previously sent

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 Subject: [R] How to do

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

2013-02-16 Thread John Kane
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 On Feb 15, 2013, at 11:31 PM, Brian

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 Numeric Columns from

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

2013-02-14 Thread John Kane
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 Dear all, I am trying to plot

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 trouble doing a stratified

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-project.org

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 Subject: [R] compute

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

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 __ R-help@r

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: david.cars

[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 and aata below

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 To: r-help@r

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

2013-02-08 Thread John Kane
=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.com Sent: Fri, 8 Feb 2013 14:42:10 -0500 To: jrkrid...@inbox.com Subject: Re: [R] Add

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 John Kane Kingston

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 -0800 (PST) To: r

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-project.org Subject: [R

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: kri...@ymail.com Subject: Re: [R

Re: [R] R plot like candlestick

2013-01-29 Thread John Kane
of 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 I greet all. My question is: does

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.net Sent

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 probability distribution Dear

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 particular facets

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 Sent: Fri, 11 Jan

Re: [R] Extract data

2013-01-11 Thread John Kane
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, I just join this forum a few minutes ago. My

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 08:55:25

Re: [R] Conditional Statistics

2013-01-08 Thread John Kane
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 am coming from SAS and do statistics on stock

Re: [R] list of lists to matrix

2013-01-08 Thread John Kane
(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 or example data is much better. John Kane Kingston

Re: [R] Need help on dataframe

2013-01-05 Thread John Kane
), 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 Canada -Original Message

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: idliuxud

Re: [R] Starting with R

2012-12-30 Thread John Kane
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 Subject: [R] Starting with R I have

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

2012-12-21 Thread John Kane
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: herrdittm...@yahoo.co.uk Sent: Fri, 21 Dec

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 +0530 To: r-help@r-project.org Subject: [R] Summarizing

Re: [R] looping through spatial points and getting counts of spatial points in spatial grid in R

2012-12-17 Thread John Kane
. Usually, dput(head(testfile, 100)) will be sufficient. John Kane Kingston ON Canada -Original Message- From: waggyma...@yahoo.com Sent: Sun, 16 Dec 2012 23:07:54 -0800 (PST) To: r-help@r-project.org Subject: [R] looping through spatial points and getting counts of spatial points

Re: [R] More efficient use of reshape?

2012-12-14 Thread John Kane
reshape2_1.2.1 ggplot2_0.9.3 loaded via a namespace (and not attached): [1] colorspace_1.2-0 dichromat_1.2-4 digest_0.6.0 gtable_0.1.2 labeling_0.1 [6] MASS_7.3-22 munsell_0.4 proto_0.3-9.2tools_2.15.2 John Kane Kingston ON Canada -Original

Re: [R] xlsx file read in R

2012-12-03 Thread John Kane
http://cran.r-project.org/doc/manuals/R-data.html John Kane Kingston ON Canada -Original Message- From: nicome...@gmail.com Sent: Mon, 3 Dec 2012 13:59:18 +0100 To: r-help@r-project.org Subject: [R] xlsx file read in R Dear all, How can I read .xlsx files in R Regards Nico

Re: [R] Getting all possible contingency tables

2012-12-01 Thread John Kane
Are you basically asking for all possible permutations of the table? If so see ?permn in the combinat package. John Kane Kingston ON Canada -Original Message- From: bogaso.christo...@gmail.com Sent: Sat, 01 Dec 2012 18:10:15 +0545 To: r-help@r-project.org Subject: [R] Getting all

Re: [R] How to built a pivot table of value

2012-12-01 Thread John Kane
One way, using the plyr package would be: library(plyr) dcast(base, p ~ q) John Kane Kingston ON Canada -Original Message- From: ce.kay...@yahoo.fr Sent: Sat, 1 Dec 2012 04:37:02 -0800 (PST) To: r-help@r-project.org Subject: [R] How to built a pivot table of value Hi R

Re: [R] Getting all possible contingency tables

2012-12-01 Thread John Kane
R can usually do almost anything but if the function exists I am not aware of it. Sorry. I did misunderstand what you were doing. John Kane Kingston ON Canada -Original Message- From: bogaso.christo...@gmail.com Sent: Sat, 01 Dec 2012 19:33:09 +0545 To: jrkrid...@inbox.com

Re: [R] How to built a pivot table of value

2012-12-01 Thread John Kane
Blast, you're right. I tend to load both at the same time and confused the two. It should be reshape2 John Kane Kingston ON Canada -Original Message- From: b...@xs4all.nl Sent: Sat, 1 Dec 2012 15:20:13 +0100 To: jrkrid...@inbox.com Subject: Re: [R] How to built a pivot table

Re: [R] Nightingale’s Rose chart-any suggestion?

2012-11-30 Thread John Kane
I think this does it. require(reshape2) df1 - melt(DF, id=month) ggplot(df1, aes(x = month, y = value, fill = variable)) + theme_bw() + geom_bar(stat = identity) + coord_polar() John Kane Kingston ON Canada -Original Message- From: henry.helsi...@gmail.com

Re: [R] error, R commends cannot show the expected output

2012-11-29 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: dtustud...@hotmail.com Sent: Wed, 28 Nov 2012 18:38:46 -0700 To: michael.weyla...@gmail.com Subject: Re: [R] error, R commends cannot show

Re: [R] Order function

2012-11-29 Thread John Kane
a specific question. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: linda_...@hotmail.co.uk Sent: Wed, 28 Nov 2012 08:49:42 -0800 (PST) To: r-help@r-project.org Subject: Re: [R] Order

Re: [R] output data by date?

2012-11-28 Thread John Kane
in the list can be found at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: kath.re...@gmail.com Sent: Wed, 28 Nov 2012 13:13:32 +0100 To: r-help@r-project.org Subject: [R] output data

Re: [R] R strange behaviour when building huge concatenation

2012-11-28 Thread John Kane
for comparison. Thank you to all you Cheers, Angelo 2012/11/27 John Kane [via R] ml-node+s789695n4651040...@n4.nabble.com I am currently getting the very strange results that if I paste your orginal data from your first message into my R terminal I get the same errors you do

Re: [R] Order function

2012-11-28 Thread John Kane
I'd just create a vector of appropriate length and cbind it to the data frame or whatever. John Kane Kingston ON Canada -Original Message- From: linda_...@hotmail.co.uk Sent: Tue, 27 Nov 2012 12:47:15 -0800 (PST) To: r-help@r-project.org Subject: [R] Order function I have a set

Re: [R] error of runing R in R 2.15.2 w/o graphes generated

2012-11-27 Thread John Kane
It works for me. See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some suggestions on how to report the problem in more detail. Your sessionInfo() is probably an absolute necessity here. Good luck John Kane Kingston ON Canada -Original

Re: [R] R strange behaviour when building huge concatenation

2012-11-27 Thread John Kane
No idea. It seems fine to me. Perhaps a bit more information would be useful expecially your sessionInfo() See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some suggestions on forming questions. John Kane Kingston ON Canada -Original

Re: [R] R strange behaviour when building huge concatenation

2012-11-27 Thread John Kane
or read.csv. I'm sorry that I cannot be of more help. Perhaps one of the R gurus can comment on the possible buffer problem. John Kane Kingston ON Canada -Original Message- From: angelo...@gmail.com Sent: Tue, 27 Nov 2012 07:04:13 -0800 (PST) To: r-help@r-project.org Subject: Re: [R] R

Re: [R] Finding values in one column and

2012-11-27 Thread John Kane
Have a look at ?merge John Kane Kingston ON Canada -Original Message- From: steven.ran...@gmail.com Sent: Tue, 27 Nov 2012 15:17:58 -0700 To: r-help@r-project.org Subject: [R] Finding values in one column and All - I have a data frame data.a IDvalueA valueB 6 12

Re: [R] Finding values in one column and

2012-11-27 Thread John Kane
Come to think of it the plyr package and the data.table packages also offer similar tools. For large merges (joins) I think the data.table package is much faster. John Kane Kingston ON Canada -Original Message- From: steven.ran...@gmail.com Sent: Tue, 27 Nov 2012 15:28:57 -0700

Re: [R] RExcel, ROOo and LibreOffice inquiry

2012-11-26 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: landronim...@gmail.com Sent: Sun, 25 Nov 2012 15:02:16 +0100 To: jrkrid...@inbox.com Subject: Re: [R] RExcel, ROOo and LibreOffice inquiry On Sun, Nov 25, 2012 at 2:38 PM, John Kane jrkrid...@inbox.com wrote: Can you supply

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