[R] FW: dotplot

2016-02-26 Thread Duncan Mackay
Forgot to send to list -Original Message- From: Duncan Mackay [mailto:dulca...@bigpond.com] Sent: Sunday, 17 May 2015 10:49 To: R Subject: RE: [R] dotplot if this is using lattice panel.dotplot gives the clues The vertical lines are inserted by panel abline. You can make your own

Re: [R] calling R functions from Fortran via RInside?

2016-02-26 Thread Erin Hodgess
Please ignore previous message. I recompiled, and linked. Then things worked. For what it's worth, here are the steps. * g++ testC.cpp -c -I/home/erin/R/x86_64-pc-linux-gnu-library/3.2/RInside/include -I/home/erin/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include -I/usr/share/R/include*g++ -o

[R] calling R functions from Fortran via RInside?

2016-02-26 Thread Erin Hodgess
Hello everyone. Hope you are having a nice weekend. Is it possible to call R functions from a Fortran program, possibly via RInside and Rcpp, please? I tried the following that I saw on stack overflow. Here is the cpp: #include #include void helloR_(int argc, char *argv[], const char

Re: [R] Error : package 'xxx' was built before R 3.0.0: please re-install it

2016-02-26 Thread David Winsemius
> On Feb 26, 2016, at 3:51 PM, Cem Girit wrote: > > Hello, > > > > Here are the steps to the error: > > > > 1. Uninstall R version 2.x.y. > > 2. Install the latest version (3.2.3) of R. > > 3. Copy all my libraries that were not in the new version

Re: [R] Error : package 'xxx' was built before R 3.0.0: please re-install it

2016-02-26 Thread Uwe Ligges
Which mirror are you using? spdep is availabe in binary form for Windows and R-3.2.3 and should be installed without the need for compilation. Best, Uwe Ligges On 27.02.2016 00:51, Cem Girit wrote: Hello, Here are the steps to the error: 1. Uninstall R version 2.x.y. 2.

[R] Error : package 'xxx' was built before R 3.0.0: please re-install it

2016-02-26 Thread Cem Girit
Hello, Here are the steps to the error: 1. Uninstall R version 2.x.y. 2. Install the latest version (3.2.3) of R. 3. Copy all my libraries that were not in the new version into the new R library. 4. Run "> update.packages(checkBuilt=TRUE, ask=FALSE)" under

Re: [R] Annoying startup error message

2016-02-26 Thread Lars Bishop
yes! Thanks! On Fri, Feb 26, 2016 at 12:07 PM, Sarah Goslee wrote: > Perhaps you at one point added it to your .RProfile so the package is > loaded at startup. You can check by starting R from the command line > with > R --vanilla > which doesn't load any of the profile

Re: [R] Annoying startup error message

2016-02-26 Thread Duncan Murdoch
On 26/02/2016 3:36 PM, Lars Bishop wrote: I understand the solution would be to unset my "SPARK_HOME" environment variable. I can do this with Sys.unsetenv() but it does not unset permanently (only in the session). How can I unset permanently? Sys.getenv("SPARK_HOME") [1]

Re: [R] Calculate negative log of the E-Values in R

2016-02-26 Thread John Sorkin
Actually E is not "just a computer way of saying 0". The E represents a power of 10, thus E-1 = 0.1 e-2=0.01; E therefore is not zero. Because computers generally can not perform exact calculations (for reasons including the fact that our number system is base 10 and a computer's is generally

Re: [R] Annoying startup error message

2016-02-26 Thread Lars Bishop
I understand the solution would be to unset my "SPARK_HOME" environment variable. I can do this with Sys.unsetenv() but it does not unset permanently (only in the session). How can I unset permanently? Sys.getenv("SPARK_HOME") [1] "/Users/lars/Downloads/spark-1.6.0-bin-hadoop2.6/bin/spark"

Re: [R] Calculate negative log of the E-Values in R

2016-02-26 Thread peter dalgaard
I do hope that was a joke! -pd > On 26 Feb 2016, at 18:16 , Francesco Romano > wrote: > > Sema, E is just a computer way of saying 0. For the purpose of statistical > analysis, if you can't compute a calculation with E values (i.e. 0), > substitute all E values

Re: [R] PDF form Rstudio

2016-02-26 Thread Alnazer Elbedairy
installed, but you have to install TEXmaker too, it works now, thank you guys On Thu, Feb 25, 2016 at 11:10 PM, Thomas Petzoldt wrote: > Yes, you are right. Sweave depends on Latex too, so its no workaround in > this case. > > Hope it helps, thpe > > Am 26.02.2016 um 06:54

Re: [R] Annoying startup error message

2016-02-26 Thread Duncan Murdoch
On 26/02/2016 12:07 PM, Sarah Goslee wrote: Perhaps you at one point added it to your .RProfile so the package is loaded at startup. You can check by starting R from the command line with R --vanilla which doesn't load any of the profile files.

Re: [R] Annoying startup error message

2016-02-26 Thread Sarah Goslee
Perhaps you at one point added it to your .RProfile so the package is loaded at startup. You can check by starting R from the command line with R --vanilla which doesn't load any of the profile files. https://stat.ethz.ch/R-manual/R-devel/library/base/html/Startup.html Sarah On Fri, Feb 26,

Re: [R] Calculate negative log of the E-Values in R

2016-02-26 Thread Francesco Romano
Sema, E is just a computer way of saying 0. For the purpose of statistical analysis, if you can't compute a calculation with E values (i.e. 0), substitute all E values with a usable constant, say 50. I stumbled across a few websites lately that did this. Frank Romano Ph.D. *Academia.edu*

Re: [R] Calculate negative log of the E-Values in R

2016-02-26 Thread Uwe Ligges
On 26.02.2016 10:53, Sema Atasever wrote: Dear Authorized Sir / Madam, If you don't mind, I want to ask how can i calculate negative log of the E-Values in R. *For Example: * What is the negative log of the 4e-108? what about log(4e-108) ? (although I wonder if this is numerical

[R] Calculate negative log of the E-Values in R

2016-02-26 Thread Sema Atasever
Dear Authorized Sir / Madam, If you don't mind, I want to ask how can i calculate negative log of the E-Values in R. *For Example: * What is the negative log of the 4e-108? I would appreciate if you could advise me some methods. Thanks in advance. [[alternative HTML version deleted]]

[R] rgrass7 problem

2016-02-26 Thread Carolina Arias Muñoz
Hello I am trying to use "readRAST" in GRASS, but I am keep getting the same error: *Error: 'checkCRSArgs' is not an exported object from 'namespace:rgdal'* Probably a problem of the rgdal library? Thank you. *___* *Carolina

Re: [R] Annoying startup error message

2016-02-26 Thread Lars Bishop
Thank you Ulrik. I actually don't want to install SparkR, just don't want to have that error message when R starts. For some reason, R is trying to load the package every time it starts... Thanks Lars. On Fri, Feb 26, 2016 at 11:53 AM, Ulrik Stervbo wrote: > Hi Lars, >

Re: [R] Annoying startup error message

2016-02-26 Thread Ulrik Stervbo
Hi Lars, The error tells you that SparkR is not installed. I believe you can install it like this: library(devtools) install_github("amplab-extras/SparkR-pkg", subdir="pkg") I took it from https://github.com/amplab-extras/SparkR-pkg and I haven't tried it myself. Hope this helps, Ulrik On

[R] Annoying startup error message

2016-02-26 Thread Lars Bishop
Hello, Just installed R version 3.2.3, and I'm getting the error message below every time I start R. I had SparkR installed in the prior version. I googled this problem, but didn;t find anything useful. Any help would be very appreciated. Error in library(SparkR) : there is no package called

Re: [R] distribution freq

2016-02-26 Thread catalin roibu
Thank you very much for your response. But the problem still remained. I obtained my distribution parameters for all diameter data (without lump).I sow that you create the fitted freq using a difference from the neighborhood classes (8-4), but I have a huge interval from 96 fo 4. If I put

Re: [R] distribution freq

2016-02-26 Thread Duncan Murdoch
On 26/02/2016 10:08 AM, catalin roibu wrote: Thank you very much for your response. But the problem still remained. I obtained my distribution parameters for all diameter data (without lump).I sow that you create the fitted freq using a difference from the neighborhood classes (8-4), but I

[R] Fw: adding a column to data frame solving the replacement problem

2016-02-26 Thread hoda rahmati via R-help
On Friday, February 26, 2016 2:17 PM, hoda rahmati wrote: Hi,Thank you for your answer and sorry that I forgot to add the command I used, the command is:mydata$NewColumn <-- mydata$Sequence[mydata$Sequence=="%Seq%tse"and then the Error that I got.what I

Re: [R] Specify order of groups negative binomial (glm.nb)

2016-02-26 Thread Michael Friendly
On 2/25/2016 1:53 PM, Katharine Miller - NOAA Federal wrote: The dependent variable is catch per unit effort (CPUE), and the independent variable is the the tributary (Trib_cat). CPUE is derived from the fish counts divided by the effort, so the response is not a count per se, but I think the

Re: [R] formatting expressoion(paste with line shift

2016-02-26 Thread Duncan Murdoch
On 26/02/2016 7:37 AM, Duncan Murdoch wrote: On 26/02/2016 7:08 AM, Troels Ring wrote: (pHi <- seq(1,8)) #This gets formatted well but I want subscript for 2 in pCO2 plot(pHi,type="s",axes=FALSE,xlab="",lwd=4, main=paste("Theoretical experiment using SID = 0.13 M\n"," ATOT = 0.2 M, pKa =

Re: [R] distribution freq

2016-02-26 Thread Duncan Murdoch
On 26/02/2016 4:09 AM, catalin roibu wrote: I'm working in forestry research and need the fitting distribution for forest structure in relation with diameter. The tree diameter have been lumped into 4 cm diameter classes, forming the diameter experimental distribution. For fitting I used the

Re: [R] formatting expressoion(paste with line shift

2016-02-26 Thread Duncan Murdoch
On 26/02/2016 7:08 AM, Troels Ring wrote: (pHi <- seq(1,8)) #This gets formatted well but I want subscript for 2 in pCO2 plot(pHi,type="s",axes=FALSE,xlab="",lwd=4, main=paste("Theoretical experiment using SID = 0.13 M\n"," ATOT = 0.2 M, pKa = 6.8, and pCO[2] = 40")) #but this gets a very

[R] formatting expressoion(paste with line shift

2016-02-26 Thread Troels Ring
Dear friends - I find it difficult to get formatting right when expressions are made on several lines. Sorry not to find the right documentation. R version 3.2.1 Windows 7 (pHi <- seq(1,8)) #This gets formatted well but I want subscript for 2 in pCO2

Re: [R] Scaling x axis

2016-02-26 Thread Gerrit Draisma
Ha Fabio, With lattice' xyplot you can do - library(lattice) x<-as.Date(rnorm(10)*10,origin="2016-1-1") y<-5+rnorm(10) xyplot(y~x,type="h",scales=list(x=list(at=x,rot=90))) - And yes, labels may overlap, even with rotation. Gerrit. Message: 5 Date: Thu, 25 Feb 2016 12:31:00 +

Re: [R] write.table: adapt end of line

2016-02-26 Thread Ulrik Stervbo
You could also use kable from the Knitr package Best, Ulrik On Fri, 26 Feb 2016 at 11:17 Uwe Ligges wrote: > writeLines(paste(do.call(paste, c(liste, sep=" & ")), "\\hline"), > con = "empf.csv") > > Best, > Uwe Ligges > > > > On 26.02.2016 11:06, Ferri

Re: [R] write.table: adapt end of line

2016-02-26 Thread Uwe Ligges
writeLines(paste(do.call(paste, c(liste, sep=" & ")), "\\hline"), con = "empf.csv") Best, Uwe Ligges On 26.02.2016 11:06, Ferri Leberl wrote: Hi everyone! I want to include a table into LaTeX. I have a fitting environment and don't want to deal with xtable, so only the core of the

[R] write.table: adapt end of line

2016-02-26 Thread Ferri Leberl
Hi everyone!   I want to include a table into LaTeX. I have a fitting environment and don't want to deal with xtable, so only the core of the table should be exported with something like   write.table(liste,"empf.csv",sep="&",quote=FALSE,row.names=F)   What I need is a way to end every row

Re: [R] Get object name inside lapply

2016-02-26 Thread peter dalgaard
On 25 Feb 2016, at 22:43 , Ben Tupper wrote: > Hi, > > Using your example (note I called the list 'z')... > > z <-list(a = seq(1:5), b = seq(10:20)) > > I picture lapply as extracting each element of z like this z[[i]] - the `[[` > extracts the ith value from the

Re: [R] getDLLRegisteredRoutines

2016-02-26 Thread MAURICE Jean - externe
Hi Murdoch, I browsed (read) section 5.4. I have understood that - using PACKAGE= will reduce execution time and it is not a great work (good results for simple work) - R Windows manage a little cache so if I call a routine in a DLL within an R loop, it will be 'fast' - if we have a

Re: [R] getDLLRegisteredRoutines

2016-02-26 Thread MAURICE Jean - externe
I tried pedump : it's ok. Now I am going to try to understand section 5.4 ! Thanks Jean -Message d'origine- De : murdoch.dun...@gmail.com [mailto:murdoch.dun...@gmail.com] Envoyé : jeudi 25 février 2016 16:25 À : MAURICE Jean - externe; r-help@r-project.org Objet : Re: [R]