Re: [R] Unexpected behaviour from read.table

2018-02-05 Thread peter dalgaard
This looks like a bug. Specifically, inside read.table lines <- .External(C_readtablehead, file, nlines, comment.char, blank.lines.skip, quote, sep, skipNul) returns "lines" as [1] "ID\tValue" "=\"Total\"\t1000" [3] "=\"CJ01 \"\t550\n=\"CF0

[R] Package sgd

2018-02-05 Thread Colonel Sanders
Good morning, Is there a package that replaces the sgd package to explore the Gradient Descent (SGD) t echnique ? Best regards, *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ Tony *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* [[alternative HTML version deleted]]

[R] pulling recessions out of a hydrograph

2018-02-05 Thread Janet Choate
Dear R community, I'm hoping someone out there has perhaps done this and can share their code and/or expertise with me. I need to pull recession periods out of a hydrograph - can anyone help me with this? I want to create a subset from streamflow data that consists of just the recession curves -

Re: [R] pulling recessions out of a hydrograph

2018-02-05 Thread stephen sefick
I have done this. I would use zoo for the time series part, and I think I wrote a function using the min max after a period to locate the peak, go to the peak, and calculate the slope 4 hours afterward. If I can locate the code I don't mind sharing, but it is buried on my PhD machine. On Feb 5, 20

Re: [R] Package sgd

2018-02-05 Thread Bert Gunter
1. It might help if you could state more specifically what you want to do. 2. Maybe check here if you haven't already done so: https://cran.r-project.org/web/views/ Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -

Re: [R] Package sgd

2018-02-05 Thread Bert Gunter
A web search on "gradient descent R" also brought up a bunch of stuff. Is any of this what you want? Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

[R] Concatening two maps/shapefiles...

2018-02-05 Thread Nicolas Degallier
Dear All, I'm new with mapping and using shapefiles in R. I use the version: R 3.2.1 GUI 1.66 with Snow Leopard Mac OS (6956) I want to build a map of the countries of Africa, in order to add points of collecting species of beetles, for later publishing. library(maptools) library(mapdata) When

Re: [R] Concatening two maps/shapefiles...

2018-02-05 Thread MacQueen, Don
I would try using the xlim, ylim arguments in your first map() command, and then using the add argument in the second one. See the help page for the map function. This assumes that the map() function you are using comes from the maps package. Otherwise, perhaps you should be using the rgdal pac

Re: [R] Package sgd

2018-02-05 Thread MacQueen, Don
For that matter, a simple within-browser search for "gradient" on the CRAN packages-by-name webpage, finds Gradient Descent for Regression Tasks Holonomic Gradient Method and Gradient Descent Continuous Generalized Gradient Descent And a few more that might or might not be relevant. Plus,

[R] rJava garbage collect

2018-02-05 Thread Benjamin Tyner
Hi Does rJava offer a way to instruct the JVM to perform a garbage collection? Regards Ben __ R-help@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

Re: [R] rJava garbage collect

2018-02-05 Thread Jeff Newmiller
rJava offers a mechanism to call arbitrary methods in Java. Wouldn't you use that mechanism to call whatever you would call if you were programming in Java (e.g. System.gc)? -- Sent from my phone. Please excuse my brevity. On February 5, 2018 7:34:17 PM PST, Benjamin Tyner wrote: >Hi > >Does