Re: [R] Need help with R in Boston area this Friday-Sunday paid gig

2014-09-24 Thread Olivier Crouzet
This list is not here to do your homework... Even if you plan to pay ! Olivier. -- Olivier Crouzet LLING - Laboratoire de Linguistique de Nantes - EA3827 Université de Nantes -Original Message- From: Richard Lerner richa...@uchicago.edu Sender: r-help-bounces@r-project.orgDate: Tue, 23

Re: [R] Median of streaming data

2014-09-24 Thread Rolf Turner
On 24/09/14 17:31, Mohan Radhakrishnan wrote: Hi, I have streaming data(1 TB) that can't fit in memory. Is there a way for me to find the median of these streaming integers assuming I can fit only a small part in memory ? This is about the statistical approach to find the median of a

Re: [R] Median of streaming data

2014-09-24 Thread Martin Maechler
Rolf Turner r.tur...@auckland.ac.nz on Wed, 24 Sep 2014 18:43:34 +1200 writes: On 24/09/14 17:31, Mohan Radhakrishnan wrote: Hi, I have streaming data(1 TB) that can't fit in memory. Is there a way for me to find the median of these streaming integers assuming

Re: [R] taking daily modes from hourly data

2014-09-24 Thread Jim Lemon
On Tue, 23 Sep 2014 01:40:22 PM maria cabello wrote: Dear all, I have a data frame (datos) of hourly wind speed and direction with 4columns (1st date, 2nd hour, 3rd wind speed and 4rth wind direction). I have been able to do the daily mean of the wind speed, but when I try to get the more

Re: [R] Median of streaming data

2014-09-24 Thread Mohan Radhakrishnan
Hi, Are these free ? :-) Thanks, Mohan On Wed, Sep 24, 2014 at 1:46 PM, Martin Maechler maech...@stat.math.ethz.ch wrote: Rolf Turner r.tur...@auckland.ac.nz on Wed, 24 Sep 2014 18:43:34 +1200 writes: On 24/09/14 17:31, Mohan Radhakrishnan wrote: Hi, I

Re: [R] Median of streaming data

2014-09-24 Thread Rolf Turner
On 24/09/14 20:16, Martin Maechler wrote: Rolf Turner r.tur...@auckland.ac.nz on Wed, 24 Sep 2014 18:43:34 +1200 writes: On 24/09/14 17:31, Mohan Radhakrishnan wrote: Hi, I have streaming data(1 TB) that can't fit in memory. Is there a way for me to find the

Re: [R] Median of streaming data

2014-09-24 Thread Martyn Byng
Something else that might be of interest ... Zhang Q and Wang W (2007) A fast algorithm for approximate quantiles in high speed data streams Proceedings of the 19th International Conference on Scientific and Statistical Database Management IEEE Computer Society 29 -Original Message-

Re: [R] Copying tables from R to Excel

2014-09-24 Thread Angel Rodriguez
Dear Ivan, Duncan, David and Roger, Thank you for your answers. Yes, I had typed library(R2HTML) I've typed also: library(mediation) library(sandwich) set.seed(2014) med.fit - glm(estuprimas ~ edad_c + sexo + regalf + deprinf, family=binomial ,data=child65) out.fit - glm(benvii ~

Re: [R] Copying tables from R to Excel

2014-09-24 Thread Duncan Murdoch
On 24/09/2014, 6:32 AM, Angel Rodriguez wrote: Dear Ivan, Duncan, David and Roger, Thank you for your answers. Yes, I had typed library(R2HTML) I've typed also: library(mediation) library(sandwich) set.seed(2014) med.fit - glm(estuprimas ~ edad_c + sexo + regalf + deprinf,

Re: [R] Plotting boundary lines from shapefiles overtop a map of Canada

2014-09-24 Thread Ray Brownrigg
Thanks Bill for picking this up while I was sleeping. An enhancement that I have tested for in the case where the SAR regions are not defined as closed polygons is e.g.: xValue - c(105.0, 120.0, 120.0, 105.0, NA, 110, 119, 106) yValue - c(49.0, 49.0, 60.0, 60.0, NA, 50, 55, 59)

Re: [R] Using factor levels as coordinates with geom_rect

2014-09-24 Thread Loris Bennett
Loris Bennett loris.benn...@fu-berlin.de writes: Hi, With ggplot2 I can use the following to create a rectangle geom_rect(aes(ymin=as.Date(8-Apr-2014, format=%d-%b-%Y), ymax=as.Date(30-Apr-2014, format=%d-%b-%Y), xmin=node002,xmax=node098), where the x

[R] Rép : ANOVA and permutation tests : beware of traps

2014-09-24 Thread Stéphane Adamowicz
Many thanks to J. Wiley and B. Ripley for their quick answers. I suppose that many end users are aware of problems in calculation accuracy with computers. However, I would like to comment that it was not that obvious for me that the data order matters. First, I do not find any clear mention of

[R] Text Mining in Non English Speaking Countries

2014-09-24 Thread ziad.elmously
Hello All, I am interested in conducting text mining in languages other English. My understanding is the following R packages can analyze alternative (to English) languages: 1. topicmodels 2. snowball 3. tm Can anyone confirm? Specifically, I am interested in Hindi and

Re: [R] Rép : ANOVA and permutation tests : beware of traps

2014-09-24 Thread Duncan Murdoch
On 24/09/2014 8:00 AM, Stéphane Adamowicz wrote: Many thanks to J. Wiley and B. Ripley for their quick answers. I suppose that many end users are aware of problems in calculation accuracy with computers. However, I would like to comment that it was not that obvious for me that the data order

Re: [R] Plotting boundary lines from shapefiles overtop a map of Canada

2014-09-24 Thread Alain Dubreuil
Bill and Ray, Thank you to both of you for your input. I am now able to display the lines. Both the polygon and the lines commands that you suggested work. I do have an extra question for you (or anyone else that can help): when I plot the map of Canada, I specify that I want to show from

Re: [R] Optometrists and Ophthalmologists dataset

2014-09-24 Thread John McKown
CAUTION: SARCASM FOLLOWS! I'd like to thank Mr Tony Parker of elided for informing the entire R-HELP community that his company is a strong believer in UCE and hires marketing people who are completely clueless. The list of companies which I know to avoid has increased by one. Good on ya, mate!

Re: [R] Overwriting a procedure

2014-09-24 Thread Steven Yen
Thank you all. Various ideas led to a simple solution. I include an argument in the calling function, i.e., v.transform, default being FALSE. Function fixzx is removed entirely from the package, which is OK by default. The function is called only when v.transform=TRUE: if (v.transform){

Re: [R] Median of streaming data

2014-09-24 Thread Mohan Radhakrishnan
I meant the papers. I hit a paywall. Can we reconstruct the code from the papers ? Thanks, Mohan On Wed, Sep 24, 2014 at 3:59 PM, Martyn Byng martyn.b...@nag.co.uk wrote: Something else that might be of interest ... Zhang Q and Wang W (2007) A fast algorithm for approximate quantiles in

[R] Cluster -- Agnes function

2014-09-24 Thread Sohail Khan
Dear All, I have clustered a patient data set by agnes. I want to extract information for each cluster, I.E. all row ids belonging to each cluster. Thank you. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Help with continuous color plot

2014-09-24 Thread matt
Hi, I have a matrix of data, with the rows representing observations and the columns representing various values that the observation can take on. In other words, each row can be thought of as a sampling of the density function/histogram associated with the range of values for that

Re: [R] Cluster -- Agnes function

2014-09-24 Thread Bart Kastermans
On 24/09/14 16:13, Sohail Khan wrote: Dear All, I have clustered a patient data set by agnes. I want to extract information for each cluster, I.E. all row ids belonging to each cluster. Fascinating, thank you for sharing. Best, Bart __

Re: [R] Cluster -- Agnes function

2014-09-24 Thread David L Carlson
Read the documentation for cutree(). You will have to decide how many clusters you want to use since agnes() provides results for everything from n clusters (where n is the number of observations) to 1 cluster. ?cutree - David L Carlson Department of

Re: [R] Package 'compositions' and R-3.1.0 [UPDATE]

2014-09-24 Thread Rich Shepard
On Wed, 14 May 2014, Prof Brian Ripley wrote: The compositions package has apparently been archived: Yes, but not giving correct results There is a new version, 1.40 released in June that is in CRAN and loads in R-3.1.1. Cannot attest to its correctness, but I'll read all the docs

[R] Masked from package

2014-09-24 Thread Rich Shepard
When a library is loaded messages such as these are displayed: The following object is masked from ‘package:base’: norm The following object is masked from ‘package:NADA’: cor What do I read to understand just what being masked means? Rich

Re: [R] Masked from package

2014-09-24 Thread Ranjan Maitra
Hi Rich, I believe it means that when called, the function norm() in the 'base' and the function cor () in the 'NADA' packages are not going to be used, but rather functions of the same name (norm and cor) in the package that you loaded with your library () function. Same applies to other

Re: [R] Masked from package

2014-09-24 Thread Duncan Murdoch
On 24/09/2014 2:22 PM, Rich Shepard wrote: When a library is loaded messages such as these are displayed: The following object is masked from ‘package:base’: norm The following object is masked from ‘package:NADA’: cor What do I read to understand just what being masked

[R] How do I really, I mean really, unload a package?

2014-09-24 Thread Kevin Wright
Sorry if this is well-known, but I can't find an answer or maybe just don't know how to ask Google the right question. If I run the following code in R (3.1.1), I find that lattice:::xyplot.formula is still available (or maybe just a promise to it ... ???) even though I've used detach and

[R] ubuntu 14.04

2014-09-24 Thread carol white
Hi, Can R be run on ubuntu 14.04 LTS without problem or is there any incompatibility? Thanks Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] How do I really, I mean really, unload a package?

2014-09-24 Thread Kevin Wright
Ah, here is the answer from the man page for ::: ...pkg:::name returns the value of the internal variable name. The namespace will be loaded if it was not loaded before the call, but the package will not be attached to the search path. Kevin On Wed, Sep 24, 2014 at 1:56 PM, Kevin Wright

Re: [R] How do I really, I mean really, unload a package?

2014-09-24 Thread Prof Brian Ripley
On 24/09/2014 19:56, Kevin Wright wrote: Sorry if this is well-known, but I can't find an answer or maybe just don't know how to ask Google the right question. If I run the following code in R (3.1.1), I find that lattice:::xyplot.formula is still available (or maybe just a promise to it ...

Re: [R] Help with continuous color plot

2014-09-24 Thread Federico Lasa
Does this resemble what you're after? library(reshape2) tst - melt(testdataset) library(ggplot2) ggplot(tst, aes(x=Var1, y=Var2, fill=value)) + geom_tile() + scale_fill_gradient2(low=white, high=white, mid=scales::muted(blue), midpoint=0.6148377) On Wed, Sep 24, 2014 at 10:26

Re: [R] How do I really, I mean really, unload a package?

2014-09-24 Thread William Dunlap
Running pkg::func or pkg:::func has the side effect of loading pkg's namespace, if it is not already loaded. Use remove.packages() to remove the package from your machine if you want to make its namespace unloadable. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Sep 24, 2014 at 11:56

Re: [R] Plotting boundary lines from shapefiles overtop a map of Canada

2014-09-24 Thread Ray Brownrigg
Hi Alain: The issue is that map() is too clever and will only plot those map boundaries that fall within the defined limits, and even the myborder option will not override this. What you can do, with somewhat better results, is something like: map(database= worldHires, ylim=c(39, 90),

Re: [R] Masked from package

2014-09-24 Thread Rich Shepard
On Wed, 24 Sep 2014, Ranjan Maitra wrote: I believe it means that when called, the function norm() in the 'base' and the function cor () in the 'NADA' packages are not going to be used, but rather functions of the same name (norm and cor) in the package that you loaded with your library ()

Re: [R] Plotting boundary lines from shapefiles overtop a map of Canada

2014-09-24 Thread Alain Dubreuil
Thanks Ray, that works very well! This is my first venture into the R world, and I'm quite impressed with the community's dedication and helpfulness. Thank you again. Alain -Original Message- From: Ray Brownrigg [mailto:ray.brownr...@ecs.vuw.ac.nz] Sent: September-24-14 3:18 PM To:

Re: [R] Help with continuous color plot

2014-09-24 Thread Federico Lasa
You missed a few things when copying the example, try ggplot(testdataset2, aes(y=factor(Var2),x=value)) + stat_density(aes(fill=..density..), position=identity, geom=tile) + scale_fill_gradientn(colours=brewer.pal(n=8, name=PuBuGn)) needed to add tile geom, and factor the correct variable.

Re: [R] ubuntu 14.04

2014-09-24 Thread Jeff Newmiller
Any incompatibility is a high standard, but I run it just fine on that platform. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#.

Re: [R] How do I really, I mean really, unload a package?

2014-09-24 Thread Kevin Wright
To follow up, my attempt at creating a minimal example went a bit too minimal. What I _think_ actually happened to me is that I loaded two packages with identical-named S3 methods for a generic. Even after unloading the second package, the S3 methods for that package were still registered and

Re: [R] ubuntu 14.04

2014-09-24 Thread Thomas Adams
As do I... On Wednesday, September 24, 2014, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: Any incompatibility is a high standard, but I run it just fine on that platform. --- Jeff NewmillerThe

Re: [R] Help with continuous color plot

2014-09-24 Thread matt
No, I don't think so. And I've wondered if I described the problem clearly, so I put together the following hack, which seems to be what I want : #create a matrix to hold the values corresponding to various percentiles vals-matrix(0,32,21) #for each row in the data, collect info on the

Re: [R] ubuntu 14.04

2014-09-24 Thread Michael Hannon
As others have noted, it does run. You might want to have a look at: http://cran.r-project.org/bin/linux/ubuntu/README Following the instructions there will allow you to get (automatically) an up-to-date version of R. -- Mike On Wed, Sep 24, 2014 at 11:58 AM, carol white

[R] Writing .csv file

2014-09-24 Thread Steven Yen
I use the following command to write data to a .csv file: write.csv(yxz,file=foo.csv) And I get the following in the file, with one column appended to the file: ,fsp,fsec,cincome, 1,0,3,2.25,... 2,0,1,2.75,... 3,1,1,0.625,... Question: is there a way to avoid the first column? Thanks.

Re: [R] Writing .csv file

2014-09-24 Thread Don McKenzie
I believe you need to specify row.names = FALSE See the help for write.table() On Sep 24, 2014, at 2:00 PM, Steven Yen sye...@gmail.com wrote: I use the following command to write data to a .csv file: write.csv(yxz,file=foo.csv) And I get the following in the file, with one column

Re: [R] Writing .csv file

2014-09-24 Thread Bert Gunter
Read the help docs? ( pay attention to the row.names argument) -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 Data is not information. Information is not knowledge. And knowledge is certainly not wisdom. Clifford Stoll On Wed, Sep 24, 2014 at 2:00 PM, Steven Yen

Re: [R] Writing .csv file

2014-09-24 Thread Clint Bowman
?write.csv 2nd line of Usage: example Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360) 407-6815 PO Box 47600FAX:(360) 407-7534

Re: [R] Writing .csv file

2014-09-24 Thread Steven Yen
Wonderful. It worked like charms and I love it! Thank you Don. Steven At 05:06 PM 9/24/2014, Don McKenzie wrote: I believe you need to specify row.names = FALSE See the help for write.table() On Sep 24, 2014, at 2:00 PM, Steven Yen sye...@gmail.com wrote: I use the following command to

Re: [R] Writing .csv file

2014-09-24 Thread John McKown
On Wed, Sep 24, 2014 at 4:00 PM, Steven Yen sye...@gmail.com wrote: I use the following command to write data to a .csv file: write.csv(yxz,file=foo.csv) And I get the following in the file, with one column appended to the file: ,fsp,fsec,cincome, 1,0,3,2.25,... 2,0,1,2.75,...

Re: [R] [RsR] Median of streaming data

2014-09-24 Thread Matias Salibian-Barrera
Martin, There's also the work of a former PhD student in our Dept: http://arxiv.org/pdf/1007.1032.pdf Matias On 24/09/2014 1:16 AM, Martin Maechler wrote: Rolf Turner r.tur...@auckland.ac.nz on Wed, 24 Sep 2014 18:43:34 +1200 writes: On 24/09/14 17:31, Mohan Radhakrishnan

Re: [R] Median of streaming data

2014-09-24 Thread Rolf Turner
On 25/09/14 02:55, Mohan Radhakrishnan wrote: I meant the papers. I hit a paywall. Can we reconstruct the code from the papers ? Shouldn't be too tough; the algorithm (in the Cameron and Turner paper) is actually pretty simple. I intend to code it up again; could not find any trace of the

Re: [R] ubuntu 14.04

2014-09-24 Thread Timothy W. Cook
Works great for me. On Wed, Sep 24, 2014 at 3:58 PM, carol white wht_...@yahoo.com wrote: Hi, Can R be run on ubuntu 14.04 LTS without problem or is there any incompatibility? Thanks Carol [[alternative HTML version deleted]] __

Re: [R] Median of streaming data

2014-09-24 Thread Rolf Turner
On 24/09/14 20:16, Martin Maechler wrote: SNIP 1) has your proposal ever been provided in R? I'd be happy to add it to the robustX (http://cran.ch.r-project.org/web/packages/robustX) or even robustbase (http://cran.ch.r-project.org/web/packages/robustbase) package. SNIP I have

Re: [R] Text Mining in Non English Speaking Countries

2014-09-24 Thread Flavio Barros
I used already with portuguese. No problems. Flavio Barros www.flaviobarros.net http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.flaviobarros.netsn= [image: Facebook] http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fflavio.barros.1650%3Fref%3Dtn_tnmnsn= [image: LinkedIn]