Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Ashim Kapoor
Dear Sir, Thank you. Best Regards, Ashim On Wed, Jun 22, 2016 at 10:47 AM, Fox, John wrote: > Dear Ashim, > > > -Original Message- > > From: Ashim Kapoor [mailto:ashimkap...@gmail.com] > > Sent: June 21, 2016 10:10 PM > > To: Fox, John > > Cc: Marc Schwartz ; R-help > > Subject: Re:

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Fox, John
Dear Ashim, > -Original Message- > From: Ashim Kapoor [mailto:ashimkap...@gmail.com] > Sent: June 21, 2016 10:10 PM > To: Fox, John > Cc: Marc Schwartz ; R-help > Subject: Re: [R] [FORGED] Ask function missing in package car > > Dear Sir, > > > Many thanks for your reply. May I ask,wa

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Ashim Kapoor
Dear Sir, Many thanks for your reply. May I ask,was it replaced by another similar function? It seems interesting enough to have a function like that. Best Regards, Ashim On Wed, Jun 22, 2016 at 10:35 AM, Fox, John wrote: > Dear Ashim and Marc, > > Sorry to chime in late. As Marc suggests, the

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Fox, John
Dear Ashim and Marc, Sorry to chime in late. As Marc suggests, the Ask() function went the way of the dodo before the second edition of the book (coauthored with Sandy Weisberg, and retitled "An R Companion to Applied Regression") was published. Best, John - John

Re: [R] filtering data by the time stamp

2016-06-21 Thread Jeff Newmiller
This is normal. R is a (mostly) functional language, which means functions normally don't have side effects like changing input data. Try saving the result of your function calls in a new object. -- Sent from my phone. Please excuse my brevity. On June 21, 2016 3:57:54 PM PDT, Alice Domalik <

[R] filtering data by the time stamp

2016-06-21 Thread Alice Domalik
Hi List, I'm working with some bird GPS tracking data, and I would like to exclude points based on the time stamp. Some background information- the GPS loggers track each bird for just over 24 hours, starting in the evening, and continuing through the night and the following day. What I would

Re: [R] Fwd: Matrix Constraints in R Optim

2016-06-21 Thread Priyank Dwivedi
Thank you Jeff. It seems to definitely solve it but the "total_error" is very high. Around 399. I also tried with the method = "L-BFGS-B". Still the error is around 399. How can we reduce it? Priyank On 21 June 2016 at 12:18, Jeff Newmiller wrote: > The size of this request is a bit big for this

Re: [R] About the parameters of rotationMatrix

2016-06-21 Thread Atte Tenkanen
Oh, thanks... ;-) Atte 21.6.2016, 17.30, Duncan Murdoch kirjoitti: for(i in 1: 10) { a2=i*0.1; b2=i*0.2; c2=i*0.3 print(c(a2,b2,c2)) UserMatrix = rotationMatrix(pi/4,a2,b2,c2) print(UserMatrix) } __ R-help@r-project.org maili

[R] Spatial Durbin (mixed) Model Inquery

2016-06-21 Thread Pham,Chi
Hi, I am trying to run a Spatial Durbin Model but I need to incorporate a robust standard error in it since the data have heteroskedasticity, I don’t know how to return the results with robust standard error. One other thing I would like to do is to also return the Direct and Indirect effects wi

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Ashim Kapoor
Dear Mark, Many thanks. Best Regards, Ashim On Wed, Jun 22, 2016 at 7:45 AM, Marc Schwartz wrote: > According to the NEWS file for the package: > > https://cran.r-project.org/web/packages/car/NEWS > > the Ask() function was removed in car version 2.0-0, which was released on > 2010-07-26. So

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Marc Schwartz
According to the NEWS file for the package: https://cran.r-project.org/web/packages/car/NEWS the Ask() function was removed in car version 2.0-0, which was released on 2010-07-26. So it has been gone for about 6 years. The version of car that is used in the documentation that you are using is

[R] Ask function missing in package car

2016-06-21 Thread Ashim Kapoor
Dear All, my details:- > sessionInfo() R version 3.3.0 (2016-05-03) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 15.10 locale: [1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN [4] LC_COLLATE=en_IN LC_MONETARY=en_INLC_MESSAGES=en_IN [7] LC_PAPER=en_IN LC

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Ashim Kapoor
I am reading the book An R and S plus companion to Applied Regression and I found this function there. Googling gave me the link [1]. 1. http://svitsrv25.epfl.ch/R-doc/library/car/html/Ask.html On Wed, Jun 22, 2016 at 6:57 AM, Rolf Turner wrote: > On 22/06/16 13:06, Ashim Kapoor wrote: > >> De

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Rolf Turner
On 22/06/16 13:06, Ashim Kapoor wrote: Dear All, my details:- sessionInfo() R version 3.3.0 (2016-05-03) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 15.10 locale: [1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN [4] LC_COLLATE=en_IN LC_MONETARY=en_INLC_ME

Re: [R] Extract character strings from a vector

2016-06-21 Thread David Winsemius
> On Jun 21, 2016, at 3:09 PM, William Dunlap via R-help > wrote: > > You could remove all non-digits from the strings with >> gsub("[^[:digit:]]+", "", x) > [1] "0122" "" "" "89963" "1" "8" > and then count the number of characters remaining with nchar >> x[nchar(gsub("[^[:dig

Re: [R] Extract character strings from a vector

2016-06-21 Thread William Dunlap via R-help
You could remove all non-digits from the strings with > gsub("[^[:digit:]]+", "", x) [1] "0122" "" "" "89963" "1" "8" and then count the number of characters remaining with nchar > x[nchar(gsub("[^[:digit:]]+", "", x)) <= 1] [1] "RTG" "GF TYHH" "KFTR1" "RT 8" Or you

[R] Extract character strings from a vector

2016-06-21 Thread Marine Regis
Hello, I have a vector x of character strings: x <- c("LM0122","RTG", "GF TYHH", "HJN 89963", "KFTR1","RT 8") >From this vector, how can I extract the following character strings (i.e., >which contain 0 or 1 numeric value) [1] "RTG" "GF TYHH" "KFTR1" "RT 8" Thank you v

Re: [R] Fwd: Matrix Constraints in R Optim

2016-06-21 Thread Jeff Newmiller
Not my problem. You are the one applying constraints. -- Sent from my phone. Please excuse my brevity. On June 21, 2016 1:13:35 PM PDT, Priyank Dwivedi wrote: >Thank you Jeff. >It seems to definitely solve it but the "total_error" is very high. >Around 399. >I also tried with the method = "L-BF

Re: [R] Y in Kohonen xyf function

2016-06-21 Thread ch.elahe via R-help
On Friday, June 17, 2016 12:21 AM, K. Elo wrote: Hi again! According to '?xyf', the function is expecting following parameters: (1) data = a matrix, with each row representing an object. So, please ensure that your data is a matrix (2) Y = property that is to be modelled. In case of class

Re: [R] Fwd: Matrix Constraints in R Optim

2016-06-21 Thread Jeff Newmiller
The size of this request is a bit big for this list. I think you need the constrOptim function to achieve this constraint. See reproducible example below (no contributed packages needed): #- my.data.matrix.inj <- structure(c(284.6624, 284.6743, 284.6771, 284.6746, 284.6664, 284.6516, 284

[R] Rcpp on R 3.2.4 compile problem Linux

2016-06-21 Thread stephen sefick
I am trying to install Rcpp to a local library on an HPC. I am having problems. I can provide any relevant information. Thank you in advance for the help. install.packages("Rcpp", repos=*) *=a couple of different repos; all give the same errors Relevant Cutout of errors (note I have replaced my h

Re: [R] check broken links in a column

2016-06-21 Thread Duncan Murdoch
On 21/06/2016 10:42 AM, Jenny Vander Pluym - NOAA Federal wrote: Hello all, I am having trouble finding code that will check links in a table, not all of the links on a specific web page. I have csv files that include links to images which are stored on the web. I have over 1,000 of them to che

Re: [R] check broken links in a column

2016-06-21 Thread Ulrik Stervbo
I don't know about R for this but how about wget: http://www.createdbypete.com/articles/simple-way-to-find-broken-links-with-wget/ You could store the list of links in a file and additionally use the -i flag. HTH Ulrik On Tue, 21 Jun 2016 at 16:47 Jenny Vander Pluym - NOAA Federal < jenny.vander

[R] check broken links in a column

2016-06-21 Thread Jenny Vander Pluym - NOAA Federal
Hello all, I am having trouble finding code that will check links in a table, not all of the links on a specific web page. I have csv files that include links to images which are stored on the web. I have over 1,000 of them to check. I see things for curl, but that appears to be specific to pull

Re: [R] About the parameters of rotationMatrix

2016-06-21 Thread Duncan Murdoch
On 21/06/2016 6:50 AM, Atte Tenkanen wrote: Hi, Why does this not work? The values inside the rotationMatrix() doesn't seem to change: library(rgl) for(i in 1: 10) { a2=i*0.1; b2=i*0.2; c2=i*0.3 print(c(a2,b2,c2)) UserMatrix = rotationMatrix(pi/4,a2,b2,c2) print(UserMat

[R] About the parameters of rotationMatrix

2016-06-21 Thread Atte Tenkanen
Hi, Why does this not work? The values inside the rotationMatrix() doesn't seem to change: library(rgl) for(i in 1: 10) { a2=i*0.1; b2=i*0.2; c2=i*0.3 print(c(a2,b2,c2)) UserMatrix = rotationMatrix(pi/4,a2,b2,c2) print(UserMatrix) } Yours, Atte Tenkanen

[R] Effect size measures for GLM

2016-06-21 Thread Gianfranco Lovison
Is there a library for (friendly) calculation of effect size measures for Generalized Linear Models? I have found "compute.es", but it seems to be suitable only for Linear Models. A library taking a glm object and computing partial R^2-type statistics, appropriate for GLMs, would be enough, but I

[R] duplicate labels in Bar chart geom_text()

2016-06-21 Thread ch.elahe via R-help
Hi all, how should I avoid duplicate labels in geom_text for bar chart? in the bar chart below I have name of one country repeated several times on my bars, I only want COUNTRY to be shown above each bar: ggplot(df,aes(factor(Variable1),y=Variable2,fill=Variable3))+geom_bar(stat='identity')

Re: [R] import of data set and warning from R CMD check

2016-06-21 Thread Thierry Onkelinx
Dear Pascal, You could try to use data(CO2, package = "datasets") instead of data(CO2) Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070

Re: [R] Data aggregation

2016-06-21 Thread ruipbarradas
Hello, Try the following. dat <- read.csv(text = " Regime, Industry, Cost 10, 01, 370 11, 01, 400 10, 02, 200 10, 01, 500 11, 02, 60 10, 02, 30 ") dat res <- aggregate(Cost ~ Industry + Regime, data = dat, sum) res <- res[order(res$Industry), ] res And see the help page ?aggregate Hope this

[R] R 3.3.1 is released

2016-06-21 Thread Peter Dalgaard
The build system rolled up R-3.3.1.tar.gz (codename "Bug in Your Hair") 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.3.1.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries

Re: [R] Data aggregation

2016-06-21 Thread PIKAL Petr
Hi And if you are reading tapply help page, you can also notice ?aggregate which maybe could suit better. Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bert > Gunter > Sent: Tuesday, June 21, 2016 7:18 AM > To: Paolo Letizia > Cc: R