[R] difference

2016-10-27 Thread Ashta
Hi all, I want to calculate the difference between successive row values to the first row value within year. How do I get that? Here isthe sample of data Year Num 200125 200175 2001 150 200230 200285 200295 Desired output Year Num diff 200125 0 2001

Re: [R] Significance of Svyrepdesign Object Warning

2016-10-27 Thread Courtney Benjamin
​Thank you; I will do so. Courtney Benjamin Broome-Tioga BOCES Automotive Technology II Teacher Located at Gault Toyota Doctoral Candidate-Educational Theory & Practice State University of New York at Binghamton cbenj...@btboces.org 607-763-8633 __

Re: [R] Significance of Svyrepdesign Object Warning

2016-10-27 Thread William Dunlap via R-help
For, now I would just use na.action=na.omit instead of na.exclude. My comments were mainly for the package author. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Oct 27, 2016 at 5:53 PM, Courtney Benjamin wrote: > Hello Mr. Dunlap, > > I have gone back and re-read the responses to my que

Re: [R] Significance of Svyrepdesign Object Warning

2016-10-27 Thread Courtney Benjamin
Hello Mr. Dunlap, I have gone back and re-read the responses to my question. I am interested in trying to apply your recommendation so I am doing things correctly; however I am not sure how to go about doing it within my code. It appears that you are digging quite deeply into R where I am not

Re: [R] Reg. Error: could not find function "lsei" in limSolve library

2016-10-27 Thread David Winsemius
> On Oct 27, 2016, at 7:12 AM, arunkumar.govindar...@hsbc.co.in wrote: > > Hi, > > I tried to load package from local zip folder in R logic and it worked. > >> utils:::menuInstallLocal() > package ‘limSolve’ successfully unpacked and MD5 sums checked > > when tried to load.. it says, > >> loc

Re: [R] Finding starting values for the parameters using nls() or nls2()

2016-10-27 Thread dave fournier
> >> On Oct 25, 2016, at 9:29 AM, dave fournier wrote: >> >> >> >> Unfortunately this problem does not appear to be well posed. >> >>Retention = (b0*Area^(th+1))^b >> >> If b0, th, and b are the parameter only the product (th+1)*b is determined. >> >> This comes from noting that powers sa

[R] Reg. Error: could not find function "lsei" in limSolve library

2016-10-27 Thread arunkumar . govindaraju
Hi, I tried to load package from local zip folder in R logic and it worked. > utils:::menuInstallLocal() package ‘limSolve’ successfully unpacked and MD5 sums checked when tried to load.. it says, > local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE) + if(nchar(pkg))

[R] How to create a list of trellis objects for grid.arrange()

2016-10-27 Thread Agustin Lobo
Given require(raster) require(sp) require(gridExtra) f <- system.file("external/test.grd", package="raster") r <- raster(f) p1 <- spplot(r) p2 <- spplot(r) I would like to plot the equivalent to grid.arrange(p1,p2,ncol=1,nrow=2) but keeping the trellis objects p1 and p2 within one single object

Re: [R] How to put below code in Automator in iOS

2016-10-27 Thread Sarah Goslee
You should probably ask this on the Mac R-help list, since it's not a general R question and that's where you are likely to find people who know the answer: https://stat.ethz.ch/mailman/listinfo/r-sig-mac Sarah On Thu, Oct 27, 2016 at 11:05 AM, Christofer Bogaso wrote: > Hi, > > I have a piece o

Re: [R] How to put below code in Automator in iOS

2016-10-27 Thread S Ellison
>From 'An introduction to R' in the html help system: "If you just want to run a file foo.R of R commands, the recommended way is to use R CMD BATCH foo.R. " There is also a short section on 'Invoking R under OS X' in the 'Introduction to R'; it may help. S Ellison > -Original Message-

[R] How to put below code in Automator in iOS

2016-10-27 Thread Christofer Bogaso
Hi, I have a piece of code available here http://mcu.edu.tw/~chenmh/teaching/project/r/reference/RTclTkExamples/radiobuttons.html Now I put that code in a .R file and then created an .app file in Mac using Automator as explained below https://www.r-bloggers.com/how-to-source-an-r-script-automat

Re: [R] [FORGED] [FORGED] lattice: control panel extent on device

2016-10-27 Thread Ben Tupper
Hi, I had not noticed the difference, but now that I can see them side-by-side it's obvious. I see that I shouldn't have taken out those modifications you had originally set up. They were sort of like extra those extra parts you find after assembling a new gizmo - "Nah, I don't need those thi

Re: [R] age old problem with rJava

2016-10-27 Thread Jeff Newmiller
The very act of using sudo for this kind of activity creates files that you can only access by using sudo (bad permissions), thereby perpetuating your difficulties. You should be able to limit yourself to only using sudo for installing OS packages (apt-get) which is designed to yield appropriate

[R] age old problem with rJava

2016-10-27 Thread Jim Maas
I've installed oracle java 8, at least think I have and tried many things but still getting this error. For some reason if I run R as sudo, then the library rJava loads just fine, but not as user. Any suggestions most welcome. Ubuntu 16.04 linux, R 3.3.1 64-bit Thanks J > library(rJava) Erro

Re: [R] interpretation of plot.svm graph

2016-10-27 Thread Indhira, Anusha
Thanks for letting me know.Please find the image file in below link https://github.com/anushar/bleed-analysis/blob/master/svm_classification_plot.jpeg Thanks -Original Message- From: Jim Lemon [mailto:drjimle...@gmail.com] Sent: 26 October 2016 23:37 To: Indhira, Anusha Cc: r-help@r-proje

Re: [R] PROBLEM: correspondence analysis with vegan

2016-10-27 Thread PIKAL Petr
Hi Julia Do not be too much distracted by Bert's comments. I also do not have formal statistical background but R usually keeps me on track as clever people designed its functions and made big effort in providing concise help. Together with this help list it can give you pretty good base for yo