Re: [R] test of independence

2018-12-20 Thread PIKAL Petr
Hi Did you search CRAN? I got **many** results for test of independence which may or may not provide you with suitable procedures. Cheers Petr > -Original Message- > From: R-help On Behalf Of km > Sent: Thursday, December 20, 2018 8:07 AM > To: r-help@r-project.org > Subject: [R] tes

[R] R 3.5.2 is released

2018-12-20 Thread Peter Dalgaard via R-help
The build system rolled up R-3.5.2.tar.gz (codename "Eggshell Igloo") 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.5.2.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries f

[R] extract hyperplan from e1071 model

2018-12-20 Thread Luigi Marongiu
Dear all, I am using the package e1071 for modeling SVM. I obtain a model from the data and I can plot the results; the plot shows the support vectors (as 'X's) and the shaded areas as it should be. However, I don't like the plot generated from the model and I would like instead to have more contro

[R] [R-pkgs] dbparser: 'DrugBank' Database XML Parser

2018-12-20 Thread mohammed ibrahim via R-packages
Hello, Kindly find this new package for parsing the 'DrugBank' XML database . The parsed data are then returned in a proper 'R' dataframe with the ability to save them in a given database. CRAN:  Vignettes: 

Re: [R] Webshot failed to take snapshot in Ubuntu machine

2018-12-20 Thread Martin Maechler
> Marc Girondot via R-help > on Tue, 18 Dec 2018 13:53:34 +0100 writes: > Hi Christofer, I just try on MacOSX and ubuntu and it > works on both: > For ubuntu: >> Sys.info() >   sysname >

Re: [R] Combine recursive lists in a single list or data frame and write it to file

2018-12-20 Thread Ek Esawi
Thanks again Jim. The links below are for 2 files (papers) i downloaded from Google Scholar for testing. You can use either both or any other pdf files with tables. Thanks again-EK. https://pdfs.semanticscholar.org/50a4/2b8146f08161b1036457fe0d241b6b898974.pdf https://pdfs.semanticscholar.org/50a4

Re: [R] extract hyperplan from e1071 model

2018-12-20 Thread Sarah Goslee
Hi, According to the help for svm, which you probably should have started with, SV contains the support vectors, and index contains the position of the support vectors in the data matrix. As for plotting, plot.svm lets you pass additional options to plot so that you can customize the plot to your

Re: [R] extract hyperplan from e1071 model

2018-12-20 Thread Sarah Goslee
Hi, Please don't forget to copy R-help on your reply - other people are likely to have more insight. My understanding is that you want to replicate the shaded polygons produced by plot.svm on your own plot. That's why I suggested you first try add=TRUE, and if that doesn't work, then look at the

[R] Problem with system() and source on linux

2018-12-20 Thread Agustin Lobo
Hi! I quite often use system() to run other programs from within R, but have just hitted a problem: For a given program, I need to set up its environment, which I normally do with source /home/alobo/OTB-6.6.0-Linux64/otbenv.profile from the terminal. Now, when I try to do the same from within R, I

[R] Reformatting output of Forecasts generated by mlp model

2018-12-20 Thread Paul Bernal
Dear friends, Hope you are doing great. I am using the multiple layer perceptron model (provided in R´s mlp() function for time series forecasting, but I don´t know how to reformat the output forecasts generated. mydata <- dput(datframe$Transits) > dput(datframe$Transits) c(77L, 75L, 85L, 74L, 7

Re: [R] Problem with system() and source on linux

2018-12-20 Thread Sarah Goslee
Hi, I can tell you what the problem is: You're probably running bash at the terminal command line, as I am: [sarahg@localhost]$ echo $0 bash but the R system function uses sh > system("echo $0") sh The bash shell has a source command; the sh shell doesn't. See here for a possible solution: h

Re: [R] Problem with system() and source on linux

2018-12-20 Thread William Dunlap via R-help
Isn't 'source' a csh (tcsh, etc.) command? The sh (bash, etc.) command is a period, but you probably will need to use sh constructs in the file (like VAR=value;exportVAR) instead of csh constructs (like setenv VAR value). Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Dec 20, 2018 at 7:00

Re: [R] Problem with system() and source on linux

2018-12-20 Thread Sarah Goslee
Actually, here's another possibility: system('bash -c "source filename"') On Thu, Dec 20, 2018 at 10:13 AM Sarah Goslee wrote: > > Hi, > > I can tell you what the problem is: > > You're probably running bash at the terminal command line, as I am: > > [sarahg@localhost]$ echo $0 > bash > > but th

Re: [R] Problem with system() and source on linux

2018-12-20 Thread Ivan Krylov
On Thu, 20 Dec 2018 12:00:04 +0100 Agustin Lobo wrote: > For a given program, I need to set up its environment, which I > normally do with source /home/alobo/OTB-6.6.0-Linux64/otbenv.profile > from the terminal. The problem with this approach is that in Unix-like systems, child processes cannot

Re: [R] Problem with system() and source on linux

2018-12-20 Thread Jeff Newmiller
Read the man page for bash... source is built-in to the shell interpreter. You should invoke a single shell instance that first sources the profile and then executes the program... but this has nothing to do with R... this would be true for any program invoking an external program on a POSIX-com

Re: [R] test of independence

2018-12-20 Thread Greg Snow
The basic test of independence for a table based on the Chi-squared distribution can be done using the `chisq.test` function. This is in the stats package which is installed and loaded by default, so you don't need to do anything additional. There is also the `fisher.test` function for Fisher's e

Re: [R] Reformatting output of Forecasts generated by mlp model

2018-12-20 Thread Bert Gunter
The printed output you have shown is meaningless (and maybe mangled, since you posted in HTML): it is the result of a call to a print method for the forecast object. You need to examine that object (e.g. via str()) and/or the print method to see how to extract the data you want in whatever form you