Re: [R] how to read a local JSON file

2015-06-07 Thread Prof Brian Ripley
On 07/06/2015 08:10, Berend Hasselman wrote: On 07-06-2015, at 07:50, Ye Lin ye...@lbl.gov wrote: Hi All, I downloaded a data file from dropbox and its in JSON format. here is my code: library(RJSONIO) data - fromJSON(file='C:/Users/Downloads/sample.json') Lines -

Re: [R] Arrays of variable dimensionality

2015-05-30 Thread Prof Brian Ripley
On 30/05/2015 11:29, WRAY NICHOLAS wrote: Hello folks Supposing I have a multidimensional array in an R prog, say a 4D array. I want the coordinate quantities to be read off from a vector. The values in the vector (vec) are generated by a function. It is not clear what you want to do.

Re: [R] Problem with particular file in XML package?

2015-05-28 Thread Prof Brian Ripley
This really should have been sent to the package maintainer. But that the zip file is corrupt has been reported several times, and does not block installation for anyone else, so your (plural) diagnosis is wrong. On 28/05/2015 03:56, Gen wrote: I have been attempting to install the R

Re: [R] Remove entry with sensitive information from history

2015-05-27 Thread Prof Brian Ripley
On 27/05/2015 09:17, Luca Cerone wrote: Hi David, thanks, but the function has to work from an R shell, I have no graphical server in my remote machines. My suggestion was going to be to use readline() to read the passwords. Ideally one would use a custom reader from stdin which did not echo,

Re: [R] Simulating a time series with a given spectrum

2015-05-27 Thread Prof Brian Ripley
On 27/05/2015 16:54, Roy Mendelssohn - NOAA Federal wrote: Hi All: Is there a routine in R that allows me to simulate a time series that has a given spectrum? I have looked at the R Time Series Task view, and have done a web search also, including an article to appear in the handbook of

Re: [R] X11 font problem

2015-05-27 Thread Prof Brian Ripley
On 27/05/2015 02:12, Renato Rivera wrote: Hi I have this problem and do not know how to solve it, I'm new to R R version 2.15.0 (2012-03-30) That is a very old version of R: the posting guide asked you to update before posting. Copyright (C) 2012 The R Foundation for Statistical Computing

Re: [R] Selective package installation

2015-05-18 Thread Prof Brian Ripley
On 18/05/2015 08:14, Partha Sinha wrote: I am using Win 7, 32 bit and R 3.2.0 I want to install few packages via script. The script should first check if the package is already installed (I dont want update).If the package is already there , then it would go to the next package in my list. How

Re: [R] R MSI Installer

2015-04-24 Thread Prof Brian Ripley
On 24/04/2015 01:22, billy am wrote: Hi Everyone , Is there a place where I can download msi installer for latest version of R? I believe not: certainly not an official one. Consult the manual as to how to build one if you really need one. Thanks Billy [[alternative HTML

Re: [R] rgdal installation with two versions of GDAL

2015-04-22 Thread Prof Brian Ripley
On 22/04/2015 05:43, Rob Skelly wrote: Hello, I am using GDAL 2.0 for most of my work, but rgdal depends on GDAL 2. I have built and installed GDAL 1.11.2 in /opt/gdal-1.11.2, and rgdal compiles and installs into R, using the following command: sudo R CMD INSTALL

Re: [R] erv.inv NOT FOUND

2015-04-20 Thread Prof Brian Ripley
On 20/04/2015 13:15, CHIRIBOGA Xavier wrote: Dear members, in this case Error: could not find function erf.inv Anyone knows the package? See ?pnorm for a definition of erfinv, which also exists in package pracma. 'erf.inv' is not in any of the packages I have installed (which includes all

Re: [R] Finding which seed resulted in a specific sample

2015-04-13 Thread Prof Brian Ripley
On 13/04/2015 10:12, Isabel Natario wrote: Hello! I was wanting to find out which random seed could generate the characters in the word love, for example, when I sample with replacement from the vector of the letters. So I've written the code below: seed=0 set.seed=0

Re: [R] Can't load CARET package, on Mac OS X (latest), on R version 3.1.2 (2014-10-31)

2015-04-12 Thread Prof Brian Ripley
Several issues 1) The problem is with minqa, not caret (let alone CARET: R is case-sensitive). 2) As the posting guide says, update your R before posting. 3) We are missing the 'at a minimum' information, the output of sessionInfo(). You have not told us how you installed R, but my guess

Re: [R] C compilation error (unknown type R_xlen_t) when installing Rmpi package

2015-04-08 Thread Prof Brian Ripley
On 08/04/2015 16:00, Sebastian L wrote: Hi, I am trying to use the parallel computing cluster of our university. To that end, I would like to install the Rmpi package on the cluster. The R version currently installed on the cluster is This was a matter for the R-devel list as it involves

Re: [R] R crashes upon changing directories, loading files, etc.

2015-04-06 Thread Prof Brian Ripley
It seems this is not R but R.app (the separate project providing an OS X console: see the 'R Installation and Administration' manual). If so, the only appropriate list is R-sig-Mac (see the posting guide). On 06/04/2015 19:14, Nicole Ford wrote: Hello, I am experiencing an issue,

Re: [R] read.table with a memory connection

2015-04-01 Thread Prof Brian Ripley
On 01/04/2015 09:52, Thomas wrote: Hi, Is there a way to create memory connections in R which are valid connections to read.table (and associated function)? By saying memory connection I refer to something like a connection created from a simple character object (of length 1) - instead of

Re: [R] change language at console

2015-04-01 Thread Prof Brian Ripley
On 01/04/2015 15:14, Alaios via R-help wrote: Hi all,I am a linux R user and my default R environemnt (after writing R in linux console) returns the error messages in German (I am not the system adminitstrator and I can not change system settings). I know that the English package is also

Re: [R] basic help with as.Date()

2015-03-26 Thread Prof Brian Ripley
On 26/03/2015 21:11, Simon Kiss wrote: Hi there: normally I’m quite comfortable with as.Date(). But this data set is causing problems. The core of the data frame looks like the sample data frame below, but my attempt to convert df$mydate to a date object returns only NA. Can anyone provide a

Re: [R] the making of _R_ eBooks

2015-03-23 Thread Prof Brian Ripley
On 23/03/2015 08:50, Dr. Wolfgang Lindner wrote: Dear list members, I like the look and feel of the eBook versions of the R manuals very much. So I would like to generate eBooks (teaching material etc) in that look. Q1: is there a description how the _R_ ebooks have been produced? Q2: which

Re: [R] Optimization to fit data to custom density distribution

2015-03-21 Thread Prof Brian Ripley
in the examples. this needs an approach using optim()? However I am so far unfamiliar with these packages. So any suggestion ist welcome. :) There are examples of that in MASS (the book), chapter 16. /Johannes On Sat, Mar 21, 2015 at 2:16 PM, Prof Brian Ripley rip...@stats.ox.ac.uk

Re: [R] Optimization to fit data to custom density distribution

2015-03-21 Thread Prof Brian Ripley
One way using the standard R distribution: library(MASS) ?fitdistr No optimization is needed to fit a normal distribution, though. On 21/03/2015 13:05, Johannes Radinger wrote: Hi, I am looking for a way to fit data (vector of values) to a density function using an optimization (ordinary

Re: [R] lqs function for S-estimator

2015-03-18 Thread Prof Brian Ripley
On 18/03/2015 15:38, peter dalgaard wrote: On 18 Mar 2015, at 15:11 , Annalisa Orenti annalisaore...@libero.it wrote: Dear R-Users, I need to fit a regression by means of S-estimator, but I found an inconsistency in lqs function in MASS package. When recalling coefficient estimates two

Re: [R] Unsupported Fortran 90 compiler or Fortran 90

2015-03-16 Thread Prof Brian Ripley
On 16/03/2015 10:38, Srikanth Gumma wrote: Hi, I'm trying to install diveRsity package in our R installation. however it always fails with the error message Unsupported Fortran 90 compiler or Fortran 90. Below is the full output. Appreciate any help. Ask the maintainer of the package

Re: [R] iconv() replaces invalid characters with instead of (two spaces instead of one) on unix?

2015-03-14 Thread Prof Brian Ripley
On 14/03/2015 11:07, Anthony Damico wrote: hello, i am trying to replace non-ASCII characters in a character string with a single space. the iconv() function works as i expect it to on windows, but on unix, non-ASCII characters are getting replaced with two spaces instead of one. i suppose i

Re: [R] Relation of BLAS and LAPACK

2015-03-12 Thread Prof Brian Ripley
On 12/03/2015 13:43, Tomáš Greif wrote: How BLAS and LAPACK are related, does R need both? Both. I am trying to understsand different BLAS options in R and I am quite not sure if LAPACK is part of BLAS, or separate library or something else. Based on http://www.netlib.org/lapack/ it looks

Re: [R] end of string in a character class in grep

2015-03-11 Thread Prof Brian Ripley
On 11/03/2015 10:31, Bob O'Hara wrote: Hi! I'm trying to persuade R's regular expressions to do what I want. I This is not R's regular expressions , but the world's regular expressions. have a vector of strings which are names of variables, some of which are elements of strings. I want to

Re: [R] How to access https page

2015-03-10 Thread Prof Brian Ripley
On 09/03/2015 22:39, Hui Du wrote: Hi All, I am trying to parse some information from website, say, a linkedin page. The linkedin url was url = http://www.linkedin.com/in/huidu; I had no problem to use readLines and XML package to collect the information I need. However, that url became

Re: [R] R/3.1.3 source installation

2015-03-09 Thread Prof Brian Ripley
This is the wrong list: see the posting guide. As it is about compiled code, R-help is quite inappropriate, and as it is Mac-specific, post to R-sig-mac. The issue appears to be that you did not follow the R-admin manual and used the wrong Fortran compiler: gfortran-4.2.3 is documented for

Re: [R] polr: initial value in 'vmmin' is not finite

2015-03-08 Thread Prof Brian Ripley
If you did as the posting guide asked and not send HTML your message might actually be readable. But I see no sign of the 'commented, minimal, self-contained, reproducible' example. The issue is most likely the starting values. See ?polr for how to specify others (and it sounds like you can

Re: [R] error message: ReadItem: unknown type 64, perhaps written by later version of R

2015-03-06 Thread Prof Brian Ripley
On 05/03/2015 20:34, Franckx Laurent wrote: Dear all I get the following error message when I try to load one specific RData object in R: Error: ReadItem: unknown type 64, perhaps written by later version of R The error message is odd because (a) this RData object was created just

Re: [R] Firefox not showing R help.

2015-03-02 Thread Prof Brian Ripley
On 01/03/2015 17:21, Duncan Murdoch wrote: On 01/03/2015 10:13 AM, Ista Zahn wrote: I think this might be due to the removal of the -remote option in firefox. Some discussion and details are available at https://lists.gnu.org/archive/html/emacs-orgmode/2015-02/msg00946.html Yes, that's it. R

Re: [R] Packages not installing on XP

2015-02-24 Thread Prof Brian Ripley
On 24/02/2015 10:52, S Ellison wrote: I have an installation problem; on installing MethComp either from repository or local zip file on Win XP (!) I get Warning: unable to move temporary installation 'C:\Program Files\R\R-3.1.2\library\filefbc44fe1354\MethComp' to ‘C:\Program

Re: [R] RMySQL Installation Error

2015-02-22 Thread Prof Brian Ripley
On 22/02/2015 17:07, avinash barnwal wrote: Hi List, I am trying to install RMySQL on Windows 7(64 Bit) with R Version 2.15.1 on RStudio. I have also followed the steps mentioned on the different web sources and finally drilled down to following steps: Hmm, those are not the correct

Re: [R] Running command had status 1 in R

2015-02-22 Thread Prof Brian Ripley
On 22/02/2015 15:46, Ben Bolker wrote: Fatemeh a f.alimadadi at gmail.com writes: Hi all, I am running a software which is shinybased within R : it gives me this error: Warning: running command 'octave -qf octave/muxMultisliceCommunity.m' had status 1 I was wondering if anyone could help

Re: [R] creating a distinct zip file

2015-02-20 Thread Prof Brian Ripley
On 21/02/2015 07:31, Jeff Newmiller wrote: On Windows it builds a zip file. If you are on Linux, you might [1] need [2]. [1] https://stat.ethz.ch/pipermail/r-help/2005-January/063596.html [2] http://cran.r-project.org/doc/contributed/cross-build.pdf But the first is from 2005 and the second

Re: [R] problems with packages installation

2015-02-16 Thread Prof Brian Ripley
On 16/02/2015 07:49, PIKAL Petr wrote: Hi Jeff -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Friday, February 13, 2015 3:56 PM To: PIKAL Petr; r-help@r-project.org Cc: Richard M. Heiberger Subject: RE: [R] problems with packages installation I agree

Re: [R] Sorting Surv objects

2015-02-12 Thread Prof Brian Ripley
On 12/02/2015 16:26, Professor Bickis wrote: It seems that Surv objects do not sort correctly. This seems to be a bug. Anyone else found this? This is presumably about Surv() from package survival, not mentioned. There was a bug, corrected in R-devel (and I will port to R-patched before

Re: [R] prediction intervals for robust regression

2015-02-11 Thread Prof Brian Ripley
On 11/02/2015 19:38, Bert Gunter wrote: Presumably you've checked out: http://cran.r-project.org/web/views/Robust.html If you can estimate the variance of parameter estimates, betahat, then you can estimate the variance of a predicted value, X betahat; add the estimated variance of individuals

Re: [R] oracle connection through proxy authentication

2015-02-10 Thread Prof Brian Ripley
On 10/02/2015 17:41, LaurentB wrote: Hi, Due to a new company policy, I need to connect to an oracle database throw a proxy authentication (http://docs.oracle.com/cd/B19306_01/java.102/b14355/proxya.htm#JJDBC2) but I can't find the solution. Until now, I used the RODBC package but it seems

Re: [R] Terminating a program using R

2015-02-10 Thread Prof Brian Ripley
On 10/02/2015 07:55, Ssuhanchen wrote: Hi I would like to query that if it is possible for R to terminate a program such as notepad, word, etc.? If yes, what kind of function should I use? The POSIX way to do this is to use 'kill', so try ??kill in your R process or use system() to call your

Re: [R] NA when trying to calculate AIC value for DLNM

2015-02-09 Thread Prof Brian Ripley
On 09/02/2015 14:28, Malgosia Lubczynska wrote: Dear all, I am trying to run a sensitivity analysis for a DLNM combined with a case crossover design and select the best parameters based on AIC values for different model set-ups. model - glm(mortality ~ cb.temp + ns(soo, 7*7) + dow,

Re: [R] Rhive installation problem in Windows RStudio

2015-02-05 Thread Prof Brian Ripley
On 05/02/2015 09:30, Pascal Oettli wrote: Hello, This page says that RHive is not available as Windows binaries: http://cran.r-project.org/web/packages/RHive/index.html and OS_type:unix explains why it cannot even be installed from the sources. Regards, Pascal On Thu, Feb 5,

Re: [R] Cross compiling R

2015-02-02 Thread Prof Brian Ripley
Cross-building is not supported (building R is more than just compiling and needs a working R executable). And (see the posting guide) this was not the right list for such a question. On 02/02/2015 07:16, Vivek Rangi wrote: Hi! I am cross compiling R-3.1.2 for Galileo board with the

Re: [R] cat() and \r et al. escape sequences - are there more?

2015-01-22 Thread Prof Brian Ripley
See ?Quotes. On 22/01/2015 13:32, Rainer M Krug wrote: Hi I just discovered \r and \t --8---cut here---start-8--- cat(LETTERS, \n) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z --8---cut here---end---8---

Re: [R] cat() and \r et al. escape sequences - are there more?

2015-01-22 Thread Prof Brian Ripley
On 22/01/2015 14:22, Rainer M Krug wrote: Envoyé de mon iPhone Le 22 janv. 2015 à 15:11, Prof Brian Ripley rip...@stats.ox.ac.uk a écrit : See ?Quotes. Perfect - thanks. On 22/01/2015 13:32, Rainer M Krug wrote: Hi I just discovered \r and \t --8---cut here

Re: [R] New to R

2015-01-20 Thread Prof Brian Ripley
On 21/01/2015 05:51, Lalitha Kristipati wrote: Hi, I am trying to connect R to databases. I found two ways to connect. 1.By using specific package (eg RMySQL to connect to R) 2.By using connectors and RODBC package. can any one tell me the difference between those two methods. See the 'R

Re: [R] what is isdst parameter

2015-01-19 Thread Prof Brian Ripley
On 19/01/2015 11:51, Vasantha Kumar Kesavan wrote: Hi, Let me know, how to set/unset isdst parameter in system/session level. I could understand the possible values of isdst 0, 1 and -1. Example: Sys.setenv(TZ=PST8PDT); as.POSIXct(2007-11-04 01:00:00); when I was executed the above command,

Re: [R] Help installing packages with dependencies for R, behind corporate firewall

2015-01-14 Thread Prof Brian Ripley
On 14/01/2015 21:37, jose.nunez-zul...@barclays.com wrote: Hello R-users, I have no practical experience with the R language itself but I've been tasked to install it behind a corporate firewall. Basic installation seems sane but when my user tries to install a custom library like this:

Re: [R] using poly() to predict

2015-01-14 Thread Prof Brian Ripley
On 14/01/2015 14:20, Stanislav Aggerwal wrote: This method of finding yhat as x %*% b works when I use raw polynomials: x-1:8 y- 1+ 1*x + .5*x^2 fit-lm(y~poly(x,2,raw=T)) b-coef(fit) xfit-seq(min(x),max(x),length=20) yfit-b[1] + poly(xfit,2,raw=T) %*% b[-1] plot(x,y) lines(xfit,yfit) But it

Re: [R] Change of locale

2015-01-12 Thread Prof Brian Ripley
You don't want to change the locale, rather the message language. That is not a locale, and e.g. LANGUAGE=en is the correct form. See http://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Localization-of-messages for what may be possible during a session: nothing is guaranteed.

Re: [R] tried half-precision but size 2 is unknown on this machine

2015-01-04 Thread Prof Brian Ripley
On 04/01/2015 12:12, Duncan Murdoch wrote: On 04/01/2015 12:31 AM, Mike Miller wrote: It's an IEEE standard format: http://en.wikipedia.org/wiki/Half-precision_floating-point_format#IEEE_754_half-precision_binary_floating-point_format:_binary16 This is what I see: writeBin(vec , con, size=2

Re: [R] Changing UTC time to a time zone different from system time zone

2014-12-29 Thread Prof Brian Ripley
On 28/12/2014 21:52, Jeff Newmiller wrote: Very few attachment file types are allowed through the mailing list, and yours did not make it. I noticed that your format strings did not appear consistent... see the format string I use below, and make sure the characters between the numeric parts of

Re: [R] tcltk

2014-12-25 Thread Prof Brian Ripley
On 25/12/2014 14:26, Ivan Calandra wrote: Dear useRs, I have just upgraded to R 3.1.2 for MacOS 10.6.8 (with the binary for Snow Leopard). Rather belatedly Everything is fine except that I get an error when loading TclTk: library(tcltk) Error : .onLoad a échoué dans loadNamespace()

Re: [R] where is XMLRPC for R3.0 for Windows machines

2014-12-19 Thread Prof Brian Ripley
On 19/12/2014 15:10, Pfaff, Bernhard Dr. wrote: Hello Diogo, the package is hosted on Omegahat: http://www.omegahat.org/XMLRPC/ And it installs from the sources on Windows as it has no compiled code. Something like options(pkgType = 'source') setRepositories() # choose omegahat

Re: [R] where is XMLRPC for R3.0 for Windows machines

2014-12-19 Thread Prof Brian Ripley
On 19/12/2014 17:57, Prof Brian Ripley wrote: On 19/12/2014 15:10, Pfaff, Bernhard Dr. wrote: Hello Diogo, the package is hosted on Omegahat: http://www.omegahat.org/XMLRPC/ And it installs from the sources on Windows as it has no compiled code. Something like options(pkgType = 'source

Re: [R] Add encoded special characters (greek characters) as text to plot

2014-12-18 Thread Prof Brian Ripley
On 18/12/2014 16:59, heyi xiao via R-help wrote: anybody has any hint on this? Yes, ?plotmath does. But you will need to know what encoding this is (and hence what Unicode points are meant by \246 and \302). If this really were Greek, common encodings are UTF-8, CP1253 and ISO 8859-7;

Re: [R] Comparing Latin characters with and without accents?

2014-12-15 Thread Prof Brian Ripley
On 15/12/2014 05:33, Spencer Graves wrote: Hello, All: What do people do to strip accents from latin characters, returning vanilla ASCII? I think the devil is the detail here: what is Latin? Latin-1 has characters for which this is unclear, let alone Latin-2 or Latin-7. What I

Re: [R] Is there a plotmath symbol \mapsto?

2014-12-12 Thread Prof Brian Ripley
The only symbols plotmath has access to are those in the Adobe Symbol encoding. You can display all of those using the example at the bottom of ?points, as ?plotmath did tell you. (So it was a rather rich asking for an example.) It also tells you that on some devices/platforms you can use

Re: [R] Is there a plotmath symbol \mapsto?

2014-12-12 Thread Prof Brian Ripley
On 12/12/2014 19:40, David Winsemius wrote: On Dec 12, 2014, at 5:32 AM, Prof Brian Ripley wrote: The only symbols plotmath has access to are those in the Adobe Symbol encoding. You can display all of those using the example at the bottom of ?points, as ?plotmath did tell you. (So

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Prof Brian Ripley
On 09/12/2014 20:47, Richard M. Heiberger wrote: the last one is wrong. That is the one for which I don't know the right answer on linux. 'xdvi' displays dvi files. you need to display a pdf file. whatever is the right program on linux to display pdf files is what belongs there. On Macintosh

Re: [R] Sorting method used by order()

2014-12-02 Thread Prof Brian Ripley
On 02/12/2014 12:28, Pierrick Bruneau wrote: I'll try to be more specific: - ?order points to a common man page for both order() and sort.list() - sort.list() has a method argument, i.e. a sorting algorithm. As far as I can read, I'll rather say the default is shell Not quite: the page says

Re: [R] Cycling and different xerror values in cp of rpart, which result should I trust?...

2014-12-01 Thread Prof Brian Ripley
Do see the posting guide, and do not re-post (https://stat.ethz.ch/pipermail/r-help/2014-November/423727.html). I suspect I am not alone in not knowing what you are talking about (even though I am the rpart maintainer). Please do try to explain clearly what you mean with the reproducible

Re: [R] list.files() not compatible with all Unicode characters; file.exists() is compatible.

2014-11-26 Thread Prof Brian Ripley
On 25/11/2014 06:53, Prof Brian Ripley wrote: On 25/11/2014 01:25, MacQueen, Don wrote: Sorry, your email was undecipherable because you sent HTML formatted email. Please send plain text Also, the 'at a minimum' information requested by the posting guide is essential here (which OS

Re: [R] list.files() not compatible with all Unicode characters; file.exists() is compatible.

2014-11-24 Thread Prof Brian Ripley
On 25/11/2014 01:25, MacQueen, Don wrote: Sorry, your email was undecipherable because you sent HTML formatted email. Please send plain text Also, the 'at a minimum' information requested by the posting guide is essential here (which OS and locale, in particular). In general file names not

Re: [R] auto.arima function in R

2014-11-20 Thread Prof Brian Ripley
There is no auto.arima function 'in R'. Do give credit/blame where it is due (probably package 'forecast'). Without the reproducible example the posting guide asked for, we can only guess wildly. I at least decline to do so. On 20/11/2014 10:52, Akhil dua wrote: Hello every one, I am

Re: [R] number of weights in multinom ?

2014-11-18 Thread Prof Brian Ripley
On 18/11/2014 11:35, Franck Vermet wrote: Hello, In the function multinom (package nnet), I get the following message after training for a model with 9 inputs and 6 classes (output) : # weights: 66 (50 variable) I understand that there are 50 variables in the model, but I don't understand

Re: [R] Using OpenBLAS with R

2014-11-16 Thread Prof Brian Ripley
On 16/11/2014 00:11, Michael Hannon wrote: Greetings. I'd like to get some advice about using OpenBLAS with R, rather than using the BLAS that comes built in to R. That was really a topic for the R-devel list: see the posting guide. I've tried this on my Fedora 20 system (see the appended

Re: [R] R memory issues

2014-11-12 Thread Prof Brian Ripley
On 12/11/2014 15:18, ce wrote: you may try to increase virtual memory : http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7 That is a very low plausibility for the error. See the discussion in the FAQ:

Re: [R] Solaris: --with-internal-tzcode

2014-11-09 Thread Prof Brian Ripley
On 09/11/2014 08:50, Vasantha Kumar Kesavan wrote: Hi, what is this parameter on Solaris? You are using a current option (for any platform, not just for Solaris) on a long-obsolete version of R. Please do study the posting guide and update (to R 3.1.2) *before posting*. (And also send

Re: [R] Daylight Saving Time

2014-11-07 Thread Prof Brian Ripley
On 07/11/2014 10:21, Vasantha Kumar Kesavan wrote: I am Sorry for not explained my requirement to you properly. As you told in Windows I need to update the $R_HOME/share/zoneinfo with the latest time zone information, since R is not using the operating system time zone files. Then I have

Re: [R] R and Newest version of Java

2014-10-28 Thread Prof Brian Ripley
On 28/10/2014 16:47, Antonio Paredes wrote: Hell All, Last night I updated Java to it newest version and this morning when I got to my office some of the R packages, that I am using in a current project, are not loading at all. For example Loading required package: XLConnectJars Error :

Re: [R] kruskal test p value way too low.

2014-10-27 Thread Prof Brian Ripley
On 26/10/2014 05:37, Rolf Turner wrote: On 26/10/14 16:40, David Doyle wrote: Hello, I'm trying to run kruskal test on some data but the p values seemed way too low. So I tried it on some similar data and still got p-value = 1.611e-09. I'm sure it is a simple mistake but I can't figure it

Re: [R] Clarification on debug output

2014-10-24 Thread Prof Brian Ripley
On 24/10/2014 00:05, Mick Jordan wrote: I hope someone can explain what the #1 means (and for that matter the [2] in the debug output below. I can't find anything in the spec that explains what they mean. Thanks f(1) debugging in: f(1) debugging in: f() debug at #1: { #1 is a 'srcref':

Re: [R] How to clear R memory in a for loop

2014-10-21 Thread Prof Brian Ripley
On 20/10/2014 17:53, John McKown wrote: On Mon, Oct 20, 2014 at 10:30 AM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Dear Rers, I am trying to run a for-loop in R. During each iteration I read in an mp3 file and do some basic processing. If I do what I need to do for each

Re: [R] How to clear R memory in a for loop

2014-10-21 Thread Prof Brian Ripley
*. What did he say? Bill Dunlap's reply pointed to a bug in tuneR (or a library it uses). On Tue, Oct 21, 2014 at 2:26 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On 20/10/2014 17:53, John McKown wrote: On Mon, Oct 20, 2014 at 10:30 AM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com

Re: [R] Build a package on one Mac but unable to load this on another Mac

2014-10-18 Thread Prof Brian Ripley
On 18/10/2014 17:34, Amos B. Elberg wrote: You could include just that library in your distribution, and change the dynamic link path using install_name_tool. I assume how to do so in detail is beyond the intended scope of this mailing list. In fact you just need to change the path, as that

Re: [R] understanding the no-label concept

2014-10-12 Thread Prof Brian Ripley
On 11/10/2014 22:16, David Winsemius wrote: On Oct 11, 2014, at 1:04 PM, Richard M. Heiberger wrote: It looks like a terminology issue. R has names for elements of a vector and for rows and columns of a matrix or data.frame, and more generally for all dimensions of multi-dimensional array.

Re: [R] Update package dor r-devlop

2014-10-12 Thread Prof Brian Ripley
On 12/10/2014 07:25, Jeff Newmiller wrote: Off topic. See the Posting Guide, which indicates that development questions belong on R-devel. And questions about Mac-specific distributions of R on R-sig-mac. But note that the best way to select source packages is options(pkgType = source)

Re: [R] Problem Invoking System Commands from R

2014-10-11 Thread Prof Brian Ripley
Please do follow the posting guide and not sent HTML: it gets mangled. There are two issues here: 1) Paths. Use Sys.which(wget) to see if the command is on your path. I suspect it is not, and you need to set the path when running R in the same way as is done for your shell. Compare the

Re: [R] Workaround for RODBC asymmetric numeric data treatment

2014-10-03 Thread Prof Brian Ripley
On 03/10/2014 20:18, Rui Barradas wrote: Hello, Inline Em 03-10-2014 19:04, Bos, Roger escreveu: Andrew, I ran your code using my SQL Server database and it seems like it worked okay for me, in that I end up with num data types when I read the data back in. So it may be a setting on your

Re: [R] tkProgressBar without progress in foreach %dopar%

2014-10-02 Thread Prof Brian Ripley
On 02/10/2014 16:40, Alexsandro Cândido de Oliveira Silva wrote: I have a list (temp.data) with many raster data and some computations are in parallel. n is the number of raster data and target is the mask. I'd like to use a progress bar. It is created but while the loop is running the progress

Re: [R] ..nlme: start values necessary even though using self-start function?..

2014-09-30 Thread Prof Brian Ripley
This seems to be a bug in the package. Maybe the code was written for S, or maybe R has changed in the many years since the former maintainer decided to be unhelpful. I'll put this on the list for the next release. On 30/09/2014 09:13, Matthias Kuhn wrote: Dear list. I am stuck with an

Re: [R] How do I really, I mean really, unload a package?

2014-09-24 Thread Prof Brian Ripley
On 24/09/2014 19:56, Kevin Wright wrote: Sorry if this is well-known, but I can't find an answer or maybe just don't know how to ask Google the right question. If I run the following code in R (3.1.1), I find that lattice:::xyplot.formula is still available (or maybe just a promise to it ...

Re: [R] ANOVA and permutation tests : beware of traps

2014-09-23 Thread Prof Brian Ripley
Beware of the trap of listening to people with no knowledge of basic numerical methods! It really is basic that the results of floating-point computer calculations depends on the order in which they are done (and the compiler can change the order). Using == on such calculations is warned

Re: [R] puzzled by time zone quirk

2014-09-21 Thread Prof Brian Ripley
On 21/09/2014 14:11, Denis Chabot wrote: Hi, I have to deal with time-stamped data coming from outside my own time zone, so the problem is likely poor knowledge of European time zones on my part. But I am puzzled just the same. I thought that setting a time zone of Europe/Copenhagen would be

Re: [R] puzzled by time zone quirk

2014-09-21 Thread Prof Brian Ripley
to be the same. The output of c is deceiving. But at least I now know not to use CEST. Denis Le 2014-09-21 à 10:00, Prof Brian Ripley rip...@stats.ox.ac.uk a écrit : On 21/09/2014 14:11, Denis Chabot wrote: Hi, I have to deal with time-stamped data coming from outside my own time zone, so

Re: [R] X11/Intrinsic.h preventing build on rhel

2014-09-19 Thread Prof Brian Ripley
On 19/09/2014 19:28, Gaurav Chakravorty wrote: I am trying to build R-3.1.0 on RHEL But configure returns with an error due to X11/Intrinsic.h missing Is there a workaround ? Yes, install it! If you need more help, read the posting guide and note the appropriate list from

Re: [R] NA from cut.Date

2014-09-17 Thread Prof Brian Ripley
On 17/09/2014 12:04, Benjamin Tyner wrote: Hello, I'm wondering if this is expected? It is as documented! cut(structure(1, class=Date), structure(c(11100,1), class=Date)) [1] NA Levels: 2000-05-23 The help page says that for ‘Date’ objects, only ‘day’, ‘week’,

Re: [R] R's memory limitation and Hadoop

2014-09-16 Thread Prof Brian Ripley
On 16/09/2014 13:56, peter dalgaard wrote: Not sure trolling was intended here. Anyways: Yes, there are ways of working with very large datasets in R, using databases or otherwise. Check the CRAN task views. SAS will for _some_ purposes be able to avoid overflowing RAM by using sequential

Re: [R] 8 fast or 4 very fast cores?

2014-09-15 Thread Prof Brian Ripley
On 15/09/2014 11:21, Ben Bolker wrote: Leif Ruckman Leif at Ruckman.se writes: I am going to buy a new computer ( Dell workstation T5810 - Windows 8) to work with simulatons in R. Now I am asked what kind of processor I like and I was given two choices. 1. Intel Xeon E5-1620 v3 - 4 cores

Re: [R] Bug in rep() function

2014-09-15 Thread Prof Brian Ripley
On 15/09/2014 16:30, Samuel Knapp wrote: Dear all, I have discovered a bug in the standard rep() function: At certain Not so: a - (1-0.9)*100 trunc(a) [1] 9 As the help says Non-integer values of ‘times’ will be truncated towards zero. If ‘times’ is a computed quantity it is

Re: [R] unable to move temporary installation when install some packages

2014-09-11 Thread Prof Brian Ripley
On 11/09/2014 07:19, PO SU wrote: Dear expeRts, These days i and some of my friends often encount the same problem when installing packages, e.g. when i try to install.packages(stringi), i will get : package ‘stringi’ successfully unpacked and MD5 sums checked Warning in install.packages

Re: [R] Convert time zone to difference from Coordinated Universal Time

2014-09-04 Thread Prof Brian Ripley
On 04/09/2014 02:27, tim.willi...@ucb.com wrote: Hello everyone, I want to convert times provided by Sys.time() to use the difference from Coordinated Universal Time instead of the character abbreviation. For example, instead of: 2014-09-03 21:12:35 EDT I want the value as: 2004-09-03

Re: [R] .C and .Fortran

2014-09-03 Thread Prof Brian Ripley
On 03/09/2014 13:28, Filippo Monari wrote: Hi, I'd like to know what is the difference between the functions .C() and .Fortran. I noticed that by enclosing my F90 subroutines in modules .Fortran() can't find them any more in the load table, while .C() still can. I also checked that the

Re: [R] help.start() has a faulty link

2014-08-31 Thread Prof Brian Ripley
On 31/08/2014 12:31, Rui Barradas wrote: Hello, With 'help.start()' an HTML browser interface to help pops up. In the section 'Miscellaneous Material' if you click on 'User Manuals' an error occurs: Error in vignettes[i, PDF] : subscript out of bounds Is this a bug? A missing link? We have

Re: [R] dont remenber my password

2014-08-29 Thread Prof Brian Ripley
On 29/08/2014 17:00, David Winsemius wrote: Your password is sent via email every month or so. And sending by email can be requested from https://stat.ethz.ch/mailman/listinfo/r-help, at least if you know the email address which you used to subscribe (otherwise look in the headers of

Re: [R] R-tool - OS compatibility help

2014-08-29 Thread Prof Brian Ripley
On 29/08/2014 18:28, Mark Sharp wrote: See http://cran.r-project.org/ Specifically, http://cran.r-project.org/bin/windows/base/rw-FAQ.html#Installation-and-Usage mentions Windows 2008. The posting guide (see the footer of this message) asks you to look at the FAQs before posting. On

Re: [R] Question regarding the discrepancy between count model parameter estimates between pscl and MASS

2014-08-29 Thread Prof Brian Ripley
On 29/08/2014 17:46, Nick Livingston wrote: Thank you for your responses. Since my previous attempt to manually truncate my DV didn't work, I'm very interested in trying again using the zerotrun() function. However, I attempted to install countreg but received the following notification:

Re: [R] Filled vector contours

2014-08-24 Thread Prof Brian Ripley
On 24/08/2014 08:51, Jan Tosovsky wrote: Dear All, I am trying to create vector output (SVG) of filled contours. I've found two approaches so far: (1) library('lattice') svg(D:/test.svg) filled.contour(volcano) #levelplot(volcano, panel=panel.levelplot.raster) # panel.levelplot.raster will

Re: [R] file.show() may have some bug?

2014-08-21 Thread Prof Brian Ripley
On 21/08/2014 08:50, PO SU wrote: Sorry for my bad typing, file.show(xxx.h) still not work. But note that file.show() uses facilities of the front-end, so report RStudio problems to them not the R community. Also note that the posting guide asked you to update before posting: your R is

Re: [R] A question in Rinternals.h

2014-08-19 Thread Prof Brian Ripley
Please do read the posting guide (clearly you have not as you sent HTML). - This is the wrong list: it is a question about C code. - In any case, it is about C. The R Internals manual may help you, otherwise you need to talk to a local C adviser. (Even if this were not off-topic here, we do

  1   2   3   4   5   6   7   8   9   10   >