[R] info markers from plotgoogMaps

2015-02-15 Thread Janue Miret, Jofre
Anyone Knows why doesn't refresh the data InfoBox (infowindow) from map markers googlempas? There is always the first selection info data. That's happen since last Friday 13th wiht googlempas from plotGoogleMaps. There is any solution please? [[alternative HTML version deleted]]

[R] Noob question re: writing while loops on one line

2015-02-15 Thread Sun Shine
Hi list I'm working through some exercises and did a while loop which raised an issue for me: I can write out the while loop so: count - 0 while(count 10) { print(count) count - count + 1 } And this works fine. Trying to do the same thing all on one line however gives this

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread Sun Shine
Thanks John: understanding it as a line return makes sense! Cheers Sun On 15/02/15 14:59, John Kane wrote: Hi Sun, Can you check the code in the one line command in RStudio? I tied it and got the expected error. Or to put it another way, it should not have run for you :) The semi-colon

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread John Kane
Hi Sun, Can you check the code in the one line command in RStudio? I tied it and got the expected error. Or to put it another way, it should not have run for you :) The semi-colon is funtioning as a line return John Kane Kingston ON Canada -Original Message- From:

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread Duncan Murdoch
On 15/02/2015 10:08 AM, Sun Shine wrote: Thanks John: understanding it as a line return makes sense! But it's not right. This is one statement, and it returns the value 3: 1 + 2 This is an error: 1 + ; 2 The semicolon is a statement separator, not a line return. Duncan Murdoch Cheers

Re: [R] Censoring in R2OpenBUGS

2015-02-15 Thread arnabkm2007
Thank you so much Uwe. It seems working. Thanks Regards, Arnab Arnab Kumar Maity Graduate Teaching Assistant Division of Statistics Northern Illinois University DeKalb, IL 60115 Email: ma...@math.niu.edu Ph: 779-777-3428 On Thu, Feb 12, 2015 at 4:02 PM, Uwe Ligges-3 [via R]

Re: [R] info markers from plotgoogMaps

2015-02-15 Thread John Kane
ttps://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: jjanu...@tv3.cat Sent: Sun, 15 Feb 2015 11:40:39 + To: r-help@r-project.org

Re: [R] my code in Metro_Hastings

2015-02-15 Thread John Kane
No sign of your code Saral. Probably the best way to send it is a .txt file. That usually gets through. R-help is very fussy about what types of files it lets through John Kane Kingston ON Canada -Original Message- From: cute_loo...@hotmail.com Sent: Sat, 14 Feb 2015 20:52:22 +0300

Re: [R] info markers from plotgoogMaps

2015-02-15 Thread Janue Miret, Jofre
this is an exemple: library(plotGoogleMaps) data(meuse) coordinates(meuse)-~x+y # convert to SPDF proj4string(meuse) - CRS('+init=epsg:28992') # Adding Coordinate Referent Sys. # Create web map of Point data m-plotGoogleMaps(meuse,filename='myMap1.htm')

Re: [R] Difference in dates for unique ID

2015-02-15 Thread arun
HI Farnoosh, Not sure I understand the expected output. The difference between the first 2 days is 136 days May be this helps library(data.table) dcast.data.table(setDT(df)[, list(Visit=.N, Diff= as.numeric(abs(diff(as.Date(Date, format='%d-%b-%y') , by = ID],

[R] Creating Volatile Table in Teradata using RODBC

2015-02-15 Thread John Smith
Hi All I'm trying to use R to create a temporary table in Teradata and then add rows from data frame into the temporary volatile table in R Based on the code below (I have changed the SQL slightly), I am able to create the temporary table in my spool space but when I try add the data frame

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread John Kane
Mea culpa, mea culpa John Kane Kingston ON Canada -Original Message- From: john.archie.mck...@gmail.com Sent: Sun, 15 Feb 2015 10:20:39 -0600 To: murdoch.dun...@gmail.com Subject: Re: [R] Noob question re: writing while loops on one line On Sun, Feb 15, 2015 at 9:54 AM, Duncan Murdoch

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-15 Thread John Kane
I was thinking about this last night and decided to try more facetingi in the scatterplot. (No data incuded as it is in your post below.) I have deleted the rest of our converstions as the mailer is refusing to mail this; the error message makes no sence; and so my best guess is that we have

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread John McKown
On Sun, Feb 15, 2015 at 9:54 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 15/02/2015 10:08 AM, Sun Shine wrote: Thanks John: understanding it as a line return makes sense! But it's not right. This is one statement, and it returns the value 3: 1 + 2 This is an error: 1 + ; 2

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread Jeff Newmiller
Best not to be pedantic, John, unless you are going to be right. Please read section 10.3.5 in the R Language Definition document. This is R, not C. --- Jeff NewmillerThe . . Go

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-15 Thread Hörmetjan Yiltiz
Thanks so much, John and Dennis (who did not respond in the mailing list for some reason). I feel quite obliged to keep you thinking about this. I do agree that not using the bar chart with error bars is a better option. And since *condition* is an important ordinal factor for me, it would be

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread John McKown
I guess my C background has messed me up a bit for R. Well, recovering from APL was worse. I lost all sense of hierarchy of operations. On Feb 15, 2015 2:19 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 15/02/2015 11:20 AM, John McKown wrote: On Sun, Feb 15, 2015 at 9:54 AM, Duncan

[R] Picking Best Discriminant Function Variables

2015-02-15 Thread David Moskowitz
Is there a way to have the LDA function give me the best 3 (or 4) predictor variables. When I put in all the variables, LDA uses all the variables, but I would like to know what would be the 3 (or 4) best to use out all the available variables and the coefficients for those. Here is the

[R] package GPseq

2015-02-15 Thread pari hesabi
Hello I am going to estimate the parameters of generalized Poisson model of Consul.   I need to use the function:  generalized -poisson-likelihood(y). can anybody make me sure what the vector y is?    If the amounts of variable is:  (0,1,2,3) ,  and the vector of observed values is: (1,4,7,3).

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread Duncan Murdoch
On 15/02/2015 11:20 AM, John McKown wrote: On Sun, Feb 15, 2015 at 9:54 AM, Duncan Murdoch murdoch.dun...@gmail.com mailto:murdoch.dun...@gmail.comwrote: On 15/02/2015 10:08 AM, Sun Shine wrote: Thanks John: understanding it as a line return makes sense! But it's not right.

[R] peer assessment

2015-02-15 Thread Raja Dey
Dear Sir/Madam,I am currently a student of an online course on R Programming offered by JHU. I finished Week assignment. Peer assessment method is not very clear to me. My questions are as follows: 1. Is it compulsory?2. When it will start and what is the due date for peer assessment for each

[R] Metro_Hastings I wrote my code again

2015-02-15 Thread hms Dreams
Hi again :) I wrote my code here: library(MHadaptive)baysianlog=function (param,data) { alpha=param[1] gam=param[2] delta=param[3] x=data n =length(x)

Re: [R] package GPseq

2015-02-15 Thread pari hesabi
 Hello  I am going to estimate the parameters of generalized Poisson model of Consul. I need to use the function: generalized -poisson-likelihood(y).  can anybody make me sure what the vector y is?  If the amounts of variable is: (0,1,2,3) , and the

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread Jim Lemon
Hi Sun, Try including a semicolon. while(count 10) { print(count); count-count+1 } Jim On Sun, Feb 15, 2015 at 9:20 PM, Sun Shine phaedr...@gmail.com wrote: Hi list I'm working through some exercises and did a while loop which raised an issue for me: I can write out the while loop so:

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread Sun Shine
Brilliant Jim - that does the trick!! I guess then that the semi-colon rule works for any program or function that is being written on one line? Any reason why when writing this out in the RStudio source editor no semi-colon is required, but it is when written in the interactive console?

Re: [R] peer assessment

2015-02-15 Thread Duncan Murdoch
On 15/02/2015 12:16 PM, Raja Dey wrote: Dear Sir/Madam,I am currently a student of an online course on R Programming offered by JHU. I finished Week assignment. Peer assessment method is not very clear to me. My questions are as follows: 1. Is it compulsory?2. When it will start and what is

Re: [R] Difference in dates for unique ID

2015-02-15 Thread farnoosh sheikhi via R-help
That's exactly what I was thinking. Thanks tons. Sent from Yahoo Mail on Android From:arun smartpink...@yahoo.com Date:Sun, Feb 15, 2015 at 2:47 AM Subject:Re: Difference in dates for unique ID HI Farnoosh, Not sure I understand the expected output.� The difference between the first 2 days

Re: [R] help please metro_hastings function

2015-02-15 Thread ARNAB KR MAITY via R-help
Hi, I have used this function before successfully. I could help you if you could provide your code. Thanks Regards,Arnab  From: hms Dreams cute_loo...@hotmail.com To: r-help@r-project.org r-help@r-project.org Sent: Saturday, February 14, 2015 6:27 AM Subject: [R] help please

Re: [R] Pass additional arguments to do.call(grid.arrange, plots)

2015-02-15 Thread David Winsemius
On Feb 15, 2015, at 4:36 PM, Bingzhang Chen wrote: Hi R users, I have a problem on how to pass an extra argument to do. call: The example codes are: # require(ggplot2) plots = lapply(1:5, function(.x) qplot(1:10,rnorm(10),

Re: [R] problems with packages installation

2015-02-15 Thread PIKAL Petr
Hi Jeff -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Friday, February 13, 2015 3:56 PM To: PIKAL Petr; r-help@r-project.org Cc: Richard M. Heiberger Subject: RE: [R] problems with packages installation I agree that the PG muddies the water a bit

[R] Pass additional arguments to do.call(grid.arrange, plots)

2015-02-15 Thread Bingzhang Chen
Hi R users, I have a problem on how to pass an extra argument to do. call: The example codes are: # require(ggplot2) plots = lapply(1:5, function(.x) qplot(1:10,rnorm(10), main=paste(plot,.x))) require(gridExtra) do.call(grid.arrange, plots)

[R] Fwd: Huge memory utilization when using doMC library

2015-02-15 Thread Srikanth Gumma
Hi, I'm the administrator of HPC cluster and one of the user reported that their R job is vary slow. Below is the code that the user provided to me. May I request your suggestion why the code is so slow and utilizing 100% memory? I have installed R version 3.1.2 and RJags_3-14. ## data ##

[R] P-value from Matching

2015-02-15 Thread Rob Wood
Hi all, When using the match command from the matching package, the output reports the treatment effect, standard error, t-statistic and a p-value. Which test is used to generate this p-value, or how us it generated? Thanks, Rob. -- View this message in context: