Re: [R] Extracting xml data to data frames

2015-04-16 Thread John Kane
No attachment : R-help is rather fussy about the files it will accept. You are probably okay with .txt .pdf, or png but even .csv is likely to get stripped. The best way to supply data is by using dput() . Type ?dput for information or have a look at http://adv-r.had.co.nz/Reproducibility.h

Re: [R] Question with uniroot function

2015-04-16 Thread li li
Thank you. 2015-04-16 12:33 GMT-04:00 William Dunlap : > Use optimize() to find the minimum and feed that value into uniroot(). > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, Apr 16, 2015 at 7:47 AM, li li wrote: > >> Hi Jeff, >> Thanks for the reply. I am aware that the

[R] Extracting xml data to data frames

2015-04-16 Thread Gavin Rudge
Hi Rgonauts, I am trying to parse some xml files of transport data using the TransExchange format (in this case bus routing information) and obtain some data.frames for onward processing for a GIS related task. Ideally I need them in .csv files. Each file (an example is attached) contains up t

[R] "R": Redefine default parameter values for help.start()

2015-04-16 Thread paul
Because of the setup of R in cygwin, help.start() requires the following parameter values: help.start(browser="cygstart",remote=R.home()) Is it possible to make these values the default? I do not want cygstart to be the browser except as a parameter for help.start(). ___

[R] regression of values in one stack with another

2015-04-16 Thread John Wasige
D ​ear community, This is to kindly request for your help. I have an error from regression of values in one stack with another # s1 and s2 have 720 layers; coefficients[2] is the slope ### script rstack1 <- stack(s1,s2) s <- stack('D:/Correlation/rstack.tif') fun <- function(x) { lm(x[1:360] ~

Re: [R] Obfuscate AES password

2015-04-16 Thread Luca Cerone
Thanks Robert, but is not exactly what I need :) I am simply trying to find a way to encrypt some data in a way that doesn't require the user to type any password (if not only the first time) but that is secure enough in a multi-user environment. E.g. I do not want super user to be able to access

[R] vi[m] editing of past commands in R command line

2015-04-16 Thread paul
When I use bash + readline and ~/.inputrc contains "editing-mode vi", I can press "v" to switch to from the command line editing to a full vi session editing of a command. This doesn't seem to happen in R. Is there a configuration setting/file that I can set to get this behaviour? Furthermore

Re: [R] (no subject)

2015-04-16 Thread paul
Duncan Murdoch gmail.com> writes: > The Cygwin release is not supported by us, and is known to be buggy, > because it doesn't handle line endings properly. > > You'll need to talk to the Cygwin folks if you can't reproduce this > in one of our releases available from > cran.r-project.org/bin/windo

Re: [R] "R" help leaves out lines of text

2015-04-16 Thread paul
Duncan Murdoch gmail.com> writes: > The Cygwin release is not supported by us, and is known to be buggy, > because it doesn't handle line endings properly. > > You'll need to talk to the Cygwin folks if you can't reproduce this > in one of our releases available from > cran.r-project.org/bin/windo

[R] Fwd: Using Geographic Information Systems and Remote Sensing to study disease vector habitat

2015-04-16 Thread Giuseppe Amatulli
HI, Apologies for cross-posting: This is a good opportunity for start to learn GIS and Statistical Analysis (R) with open-source software. *Workshop: **Using Geographic Information Systems and Remote Sensing to study disease vector habitat* Biotechonology Research Institute

[R] problem in the ensemblaBMA package of R

2015-04-16 Thread maaba
hello, I'm working in ensembleBMA package of R and i need to use the ensembleBMAgamma0 function to correct my precipitation. How can i change my training period ?. I have to chose a training period for 4 days which contains a 2 days before the specific day and 2 days after the specific day. I don'

Re: [R] Error when loading shared library - stringini()

2015-04-16 Thread arnaud gaboury
On Thu, Apr 16, 2015 at 3:25 PM, arnaud gaboury wrote: > On a Linux 64 bits, R.3.1.2, with tidyr() loaded. > > gabx@hortensia [R] separate(rawStats, 'toto') > Error in dyn.load(file, DLLpath = DLLpath, ...) : > unable to load shared object > '/developement/language/r/library/stringi/libs/string

Re: [R] Question with uniroot function

2015-04-16 Thread William Dunlap
Use optimize() to find the minimum and feed that value into uniroot(). Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Apr 16, 2015 at 7:47 AM, li li wrote: > Hi Jeff, > Thanks for the reply. I am aware that the sign needs to be different at > the ends of the starting interval. > >An

Re: [R] FW: New package apex 1.0.0 released on CRAN

2015-04-16 Thread Bert Gunter
This sounds more appropriate for Bioconductor, if you haven't already submitted/announced it there. Cheers, Bert On Thursday, April 16, 2015, Jombart, Thibaut wrote: > > Dear all, > > (apologies for multiple posting) > > On behalf of the apex development team (E. Paradis, K. Schliep, Z. Kamvar,

[R] FW: New package apex 1.0.0 released on CRAN

2015-04-16 Thread Jombart, Thibaut
Dear all, (apologies for multiple posting) On behalf of the apex development team (E. Paradis, K. Schliep, Z. Kamvar, R. Harris and myself), I am happy to announce that apex has been released on CRAN: http://cran.r-project.org/web/packages/apex/index.html This package provides tools for readin

Re: [R] assign variables to function output

2015-04-16 Thread Sergio Fonda
That's it ! Sorry for writing in a hurry, Merm! Il 16/apr/2015 14:14, "Jim Lemon" ha scritto: > Hi merm, > In case Sergio's message is a little cryptic: > > return_a_list<-function() { > a<-"First item of list" > b<-c(2,4,6,8) > c<-matrix(1:9,nrow=3) > return(list(a,b,c)) > } > > x<-return_a_

Re: [R] "function" as variable name - probably better error message

2015-04-16 Thread peter dalgaard
Actually, to split a few hairs, I think the documentation is essentially correct. Reserved words are not the same as quoted strings. You cannot use them in syntactically the same way that you usually use variable names, as unquoted strings in expressions. They can BE variable names, or more pr

Re: [R] Question with uniroot function

2015-04-16 Thread li li
Hi Jeff, Thanks for the reply. I am aware that the sign needs to be different at the ends of the starting interval. Another question: Is there a way to set the right end point ( (the "upper" argument in the uniroot function below) as the point where the function takes on its minimun, for exa

[R] Error when loading shared library - stringini()

2015-04-16 Thread arnaud gaboury
On a Linux 64 bits, R.3.1.2, with tidyr() loaded. gabx@hortensia [R] separate(rawStats, 'toto') Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/developement/language/r/library/stringi/libs/stringi.so': libicui18n.so.54: cannot open shared object file: No such f

Re: [R] melt function chooses wrong id variable with large datasets

2015-04-16 Thread Jeff Newmiller
Maybe what you really want is the ?stack function. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live:

Re: [R] assign variables to function output

2015-04-16 Thread Jim Lemon
Hi merm, In case Sergio's message is a little cryptic: return_a_list<-function() { a<-"First item of list" b<-c(2,4,6,8) c<-matrix(1:9,nrow=3) return(list(a,b,c)) } x<-return_a_list() x Jim On Thu, Apr 16, 2015 at 7:21 PM, Sergio Fonda wrote: > Collect in a vector or dataframe or list the

Re: [R] melt function chooses wrong id variable with large datasets

2015-04-16 Thread Joachim Audenaert
Thanks, indeed norm should be in the same group as as the months. everything works fine when the number of data is quite small, but with big datasets (15 000 values) things seem to go wrong and I can't explain why. It puts norm as an individual column in stead of in the group of months as it do

Re: [R] melt function chooses wrong id variable with large datasets

2015-04-16 Thread PIKAL Petr
Hi With this dataset I get > dd.m0<-melt(dataset, na.rm=T) Using norm as id variables > head(dd.m0) norm variable value 1 45.8713463281901 januari 38.1 2 24.047250681782984 januari 32.4 3 3.7533684144746324 januari 34.5 4 38.594241119279324 januari 20.7 5 26.391897460120

Re: [R] "function" as variable name - probably better error message

2015-04-16 Thread Duncan Murdoch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 16/04/2015 6:19 AM, Rainer M Krug wrote: > Hi > > The following code works as expected: > > > list(plot="Not any more!") > > , | > plot <- "Not any more!") | [1] "Not any more!" ` > > But for this I get an error: > > , | > functi

Re: [R] "R" help leaves out lines of text

2015-04-16 Thread Duncan Murdoch
On 16/04/2015 12:23 AM, paul wrote: > I am ramping up on the R statistical analysis environment. I find > that the help leaves out entire lines of text. The pager is > /usr/lib/R/bin/pager. I changed it to /bin/less, but I see the same > symptom. The problem shows up both in xterm and mintty.

Re: [R] melt function chooses wrong id variable with large datasets

2015-04-16 Thread Joachim Audenaert
Hello, This is a part of my dataset: structure(list(januari = c(38.1, 32.4, 34.5, 20.7, 21.5, 23.1, 29.7, 36.6, 36.1, 20.6, 20.4, 30.1, 38.7, 41.4, 37, 36, 37, 38, 23, 26.7), februari = c(31.5, 36.2, 38.2, 26.4, 20.9, 21.5, 30.2, 33.4, 32.6, 22.2, 21.7, 30, 35.7, 32.8, 39.3, 25.5, 23, 19.9, 2

[R] R 3.2.0 is released

2015-04-16 Thread Peter Dalgaard
The build system rolled up R-3.2.0.tar.gz (codename "Full of Ingredients") this morning. The list below details the changes in this release. You can get the source code from http://cran.r-project.org/src/base/R-3/R-3.2.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binar

[R] "function" as variable name - probably better error message

2015-04-16 Thread Rainer M Krug
Hi The following code works as expected: list(plot="Not any more!") , | > plot <- "Not any more!") | [1] "Not any more!" ` But for this I get an error: , | > function <- "Not any more!" | Error: unexpected assignment in "function <-" ` The error message is quite cryptic and d

Re: [R] melt function chooses wrong id variable with large datasets

2015-04-16 Thread PIKAL Petr
Hi There is something weird with your data and melt function. AFAIK melt does not use first row as id.variables. What is result of str(dataset) Instead of melt(dataset,id.vars=dataset[1,], na.rm=TRUE) melt expects something like melt(dataset, id.vars=c("norm, "jaar"), na.rm=TRUE) If you wa

[R] melt function chooses wrong id variable with large datasets

2015-04-16 Thread Joachim Audenaert
Hello all, I'm using a large dataset consisting of 2 groups of data, 2 columns in excel with a header (group name) and 15 000 rows of data. I would like like to compare this data, so I transform my dataset with the melt function to get 1 column of data and 1 column of ID variables, then I can

Re: [R] assign variables to function output

2015-04-16 Thread Sergio Fonda
Collect in a vector or dataframe or list the variables of interest and output it. Il 16/apr/2015 10:57, "merm" ha scritto: > Hi! > > So I'm trying as the header suggests to assign the value(s) output by a > function to a variable, say 'y' > > Problem is from what I gather any variables introduced

[R] "R" help leaves out lines of text

2015-04-16 Thread paul
I am ramping up on the R statistical analysis environment. I find that the help leaves out entire lines of text. The pager is /usr/lib/R/bin/pager. I changed it to /bin/less, but I see the same symptom. The problem shows up both in xterm and mintty. The computer is in a locked down environment

[R] Casting components

2015-04-16 Thread Bob
Hello, We are the specialized manufacturer of aluminum casting in China with advantages as follows: 1. All kinds of casting processes: low pressure die casting, sand casting, gravity premanent mold casting to meet your different demand. 2. 17 years experience only dedicated in aluminum castings

[R] assign variables to function output

2015-04-16 Thread merm
Hi! So I'm trying as the header suggests to assign the value(s) output by a function to a variable, say 'y' Problem is from what I gather any variables introduced within the function are contained and the only output I can get is "return(value)" which is awkward to work with. Any suggestions? Ch