Re: [R] Kolmogorov-Smirnov: calculate p value given as input the test statistic

2013-03-03 Thread Prof Brian Ripley
On 03/03/2013 09:58, Rani Elkon wrote: Dear all, I calculate the test statistic for the KS test outside R, and wish to use R only to calculate the corresponding p-value. There is no public way to do this in R. But you can read the code of ks.test and see how it does it, and extract the cod

Re: [R] Question concerning directory/path names

2013-03-01 Thread Prof Brian Ripley
On 01/03/2013 15:49, Adams, Jean wrote: I do not use these functions myself. But, why don't you do a little test on some paths that you can control. Put the same files in directories with and without spaces and see if you can get the functions to work. In the case of RODBC, it never uses file

Re: [R] Negative Binomial Regression - glm.nb

2013-02-27 Thread Prof Brian Ripley
On 28/02/2013 07:27, Martin Spindler wrote: Dear all, I would like to ask, if there is a way to make the variance / dispersion parameter $\theta$ (referring to MASS, 4th edition, p. 206) in the function glm.nb dependent on the data, e.g. $1/ \theta = exp(x \beta)$ and to estimate the paramete

Re: [R] predict.smooth.Pspline function not found

2013-02-27 Thread Prof Brian Ripley
On 28/02/2013 00:29, zoe richards wrote: I have a simple question that irritatingly I haven't been able to figure out on my own. It seems that some functions from the "Pspline" package are successfully installed while others are not. The code with which I'm working is more complicated, but the

Re: [R] positioning of R windows

2013-02-27 Thread Prof Brian Ripley
On 27/02/2013 22:33, Glenn Stauffer wrote: I have 2 (related, I think) questions about positioning of windows within R. 1. I often work with a second monitor and sometimes like to arrange 1 or more plot windows on the second monitor, while keeping the console on the primary monitor (so I c

Re: [R] What happened to "financial" package?

2013-02-26 Thread Prof Brian Ripley
On 26/02/2013 14:45, Keith Weintraub wrote: Folks, I have been using the cf function from the "financial" package for a few years now. I believe it was never converted for 2.14.0 (it was last touched in 2006, and did not have a NAMESPACE file until CRAN auto-generated one), and the mainta

Re: [R] Issue attaching a dataset

2013-02-26 Thread Prof Brian Ripley
On 26/02/2013 09:55, Milan Bouchet-Valat wrote: Le lundi 25 février 2013 à 20:26 -0300, Pablo Menese a écrit : I use to work whit stata dataframe, so, when I use R I type read.dta Until today I do that without any problem, after type: mydata<-read.dta("C:/dropbox/dataframe.dta") attach(mydata)

Re: [R] R on mac not installing packages

2013-02-22 Thread Prof Brian Ripley
On 22/02/2013 21:26, David Winsemius wrote: The system is reporting that it cannot find `make`. It appears that you have not installed XCode on you Mac, or that you did with an earlier version for which you have not updated, or something else which has broken your installation. Please read the

Re: [R] package ReadImages

2013-02-21 Thread Prof Brian Ripley
On 22/02/2013 05:44, Greg Snow wrote: Some possibilities: The EBImage package on Bioconductor; the jpeg and png packages read jpeg and png images. Almost everyone using ReadImages was using it to read TIFF images, which package tiff can do. See the 'Data Import/Export Manual', http://cran.r

Re: [R] Why R simulation gives same random results?

2013-02-20 Thread Prof Brian Ripley
On 20/02/2013 23:13, Greg Snow wrote: To know for sure we need to know how you are running these different R sessions, but here are some possibilities: The help page for "set.seed" says that if no seed exists then the seed is set based on the current time (and since 2.14.0 the process ID). So o

Re: [R] mtext unicode failure

2013-02-18 Thread Prof Brian Ripley
On 18/02/2013 14:15, e-letter wrote: Readers, How to solve this unicode input error please? On what system, in what locale? And where is Unicode mentioned? If you intended a subscript 2, use plotmath. That is not a character in the standard Postscript fonts, nor is in the encoding you selec

Re: [R] BRugs Error

2013-02-10 Thread Prof Brian Ripley
On 10/02/13 21:43, David Winsemius wrote: On Feb 10, 2013, at 12:28 PM, Uwe Ligges wrote: On 10.02.2013 21:18, Paul Ossenbruggen wrote: I installed XCode, XQuartz and OpenBUGS on my Mac using WINE. When I tried to test my installation I received the following error. If correct, BRu

Re: [R] Correct value of R_HOME

2013-02-10 Thread Prof Brian Ripley
On 10/02/2013 14:38, Uwe Ligges wrote: On 10.02.2013 03:13, James Jong wrote: What is the purpose of the variable R_HOME? What value should I set it to? Don't change it, it is set automatically on startup. See ?R_HOME True for normal use of R, but another question from the OP suggests th

Re: [R] vegdist Error en double(N * (N - 1)/2) : tama?o del vector especificado es muy grande

2013-02-09 Thread Prof Brian Ripley
Suppose N = 138037 (you haven't really told us). A dissimilarity half-matrix would have 9 billlion elements. The maximum size of a vector in current versions of R is 2 billion. You will be able to get further in R-devel (3.0.0-to-be) with a 64-bit version of R, although as you appear to be u

Re: [R] R for Windows 32-bit mode versus 64-bit mode

2013-02-06 Thread Prof Brian Ripley
On 06/02/2013 22:47, Roy Mendelssohn - NOAA Federal wrote: Hi All: We are developing (actually updating) a piece of code that runs in R. Due to some limitations of some the libraries we use, at the present time we would be limited to the 32-bit version of R on Windows. Does anyone have a feel (

Re: [R] Installation of rJava package fails

2013-02-05 Thread Prof Brian Ripley
R_BadLongVector is an entry point in 64-bit R-devel (pre-3.0.0). It seems something got installed under the wrong version of R. I'd also be concerned about your Java version. 1.6.0_18 is very old and there are security alerts on old Java versions, even those from last month. On 05/02/2013 1

Re: [R] Wide character in print?

2013-02-04 Thread Prof Brian Ripley
Note that this is a Perl message (nothing to do with R), as the message from gdata says pretty clearly. Ask the gdata maintainer (see our posting guide) or on a Perl forum. There are less restricted ways to read .xls files in R: XLConnect can read this file, for example. On Sun, 3 Feb 2013,

Re: [R] RandomForest, Party and Memory Management

2013-02-04 Thread Prof Brian Ripley
On Sun, 3 Feb 2013, Lorenzo Isella wrote: Dear All, For a data mining project, I am relying heavily on the RandomForest and Party packages. Due to the large size of the data set, I have often memory problems (in particular with the Party package; RandomForest seems to use less memory). I real

Re: [R] gettext weirdness

2013-02-04 Thread Prof Brian Ripley
The 'wierdness' is that 'R' is a domain of C messages and you are trying to use it from R. How messages are massaged before being sent for translation depends on the language, including how trailing spaces are handled. There is no reason to expect domains intended for C code to work in R-lev

Re: [R] Writing audio files (.wav) in a different directory

2013-01-31 Thread Prof Brian Ripley
On 31/01/2013 06:50, Jeff Newmiller wrote: Put the directory name into the filename string. The syntax for doing that is somewhat OS dependent, but for most cases you can use "/" as the separator. You really should Google "file path" and your OS and learn how to do this, because it is broadly a

Re: [R] fSeries not found in R

2013-01-31 Thread Prof Brian Ripley
On 30/01/2013 21:23, Yuan, Rebecca wrote: Hello all, When I tried to install fSeries in R, I got the following error messages: install.packages("fSeries",dependencies=T) Warning message: package 'fSeries' is not available (for R version 2.15.2) Is this package changing/merging to another packa

Re: [R] R CMD check: Error in get("ptime", pos = "CheckExEnv") ...

2013-01-29 Thread Prof Brian Ripley
On 30/01/2013 06:02, Johannes Graumann wrote: Hi, Does anyboody have insight into what this error terminating "R CMD check" on an in-house package may imply? You have re-defined cat(), so I guess you re-defined get() too. ### cat("Time elapsed: ", proc.time() - get("ptime", pos = 'CheckExE

Re: [R] Approximating discrete distribution by continuous distribution

2013-01-22 Thread Prof Brian Ripley
On 22/01/2013 11:49, Michael Haenlein wrote: Dear all, I have a discrete distribution showing how age is distributed across a population using a certain set of bands: Age <- matrix(c(74045062, 71978405, 122718362, 40489415), ncol=1, dimnames=list(c("<18", "18-34", "35-64", "65+"),c())) Age_dist

Re: [R] How to check if R.app is running?

2013-01-21 Thread Prof Brian Ripley
On 20/01/2013 22:03, Duncan Murdoch wrote: On 13-01-20 4:51 PM, Nick Matzke wrote: Hi, here's an obscure question someone can hopefully help with. I have some R code that uses stuff from parallel (now a part of the R core in 2.15 I believe), especially clusterApply. However, this seems to cause

Re: [R] Can strptime handle milliseconds or AM/PM?

2013-01-17 Thread Prof Brian Ripley
On 17/01/2013 07:59, e-letter wrote: Readers, Responding to an old post (http://tolstoy.newcastle.edu.au/R/e2/help/07/06/18850.html), and using the example in the manual: monthextract<-strptime("20/2/06 11:16:16.683", "%m") monthextract [1] NA Why is the result 'NA' and not '2'? Because you

Re: [R] Rscript on Mac : specify R64 over R (32-bit version)

2013-01-16 Thread Prof Brian Ripley
On 16/01/2013 20:16, Matthew Pettis wrote: Hi, I have both R and R64 installed on Mac OSX 10.8 Mountain Lion (64-bit). When I run the command sessionInfo() from within Rscript, I get: R version 2.15.2 (2012-10-26) Platform: i386-apple-darwin9.8.0/i386 (32-bit) Is there a way to make Rscrip

Re: [R] R and Windows 8

2013-01-16 Thread Prof Brian Ripley
On 16/01/2013 16:06, Claire Oswald wrote: Hello: I'd like to know if R will run under Windows 8? We have students running it under Windows 8, 32- and 64-bit OS. -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ Uni

Re: [R] readJPEG function cannot open jpeg files

2013-01-14 Thread Prof Brian Ripley
On 14/01/2013 16:26, Suzen, Mehmet wrote: Similar issue with URLs: Not a similar issue at all: a URL is not a file. That most functions in R itself open connections including URLs does not mean that contributed packages do. The package help is quite specific about its requirements. sour

Re: [R] Loading circular package from Rprofile.site

2013-01-13 Thread Prof Brian Ripley
This is a known bug in the package. It should have used utils::packageDescription, or imported it in its NAMESPACE. If this was not condiitonal on interactive() it would have be shown up in the CRAN package checks. Rprofile.site is run early in the startup process: it is not really intended

Re: [R] Problem with inconsolata font (again) --- on Fedora 17 this time.

2013-01-11 Thread Prof Brian Ripley
On 11/01/2013 01:50, Rolf Turner wrote: Some while ago I posted a problem on this list concerning a failure of R CMD check on one of my packages that resulted from LaTeX being unable to find the "inconsolata" font. This was under the Ubuntu OS. This was solved, thanks to advice I got from this

Re: [R] A problem with X11 "headers/libs".

2013-01-11 Thread Prof Brian Ripley
On 11/01/2013 11:28, Milan Bouchet-Valat wrote: Le vendredi 11 janvier 2013 à 22:45 +1300, Rolf Turner a écrit : I am trying to build R-patched from source on a (newly installed) Fedora 17 system on a new laptop. When I do the usual ./configure the procedure comes to a halt with the error messa

Re: [R] polr model, out-of-sample probabilities

2013-01-10 Thread Prof Brian Ripley
On 11/01/2013 01:59, Alphan Kirayoglu wrote: Hi, Is there a function to calculate probabilities for new out-of-sample data once we fit a model using the in-sample data? predict(model, newdata=... ) seems to require the new data to be the same size as the original data used to fit the model. I

Re: [R] update.packages problem

2013-01-09 Thread Prof Brian Ripley
On 09/01/2013 12:52, Terry Therneau wrote: I've updated to R-devel on my development machine and have lots of packages. The update.packages() script ends up with 33 failures, all due to out-of-order reloading. That is, if package "abc" depends on package "xyz", then the reinstall of abc fails wi

Re: [R] problems when loading package GenABEL

2013-01-08 Thread Prof Brian Ripley
On 08/01/2013 11:42, Filippo Biscarini wrote: Dear all, since yesterday, I have been experiencing problems with the package GenABEL. When I try to load the package (library(GenABEL)) I get the following error message: Loading required package: MASS Error : .onLoad failed in loadNamespace() for

Re: [R] During startup - Warning messages:

2013-01-07 Thread Prof Brian Ripley
On 07/01/2013 14:50, Yongjie wrote: Dear Sir/Madam, After installing R, I saw this warning message in red when I open the R... During startup - Warning messages: 1: Setting LC_CTYPE failed, using "C" 2: Setting LC_COLLATE failed, using "C" 3: Setting LC_TIME failed, using "C" 4: Setting LC_MESS

Re: [R] listing all test functions in base R

2013-01-02 Thread Prof Brian Ripley
On 02/01/2013 12:40, Data Analytics Corp. wrote: Hi, Is there a way to create a list of all statistical test functions in base R? For example, there's t.test, ks.test, chisq.test, etc. I'd like to create a list of these test names because I keep looking for different tests but never know what'

Re: [R] Extracting factors from "factanal"

2013-01-02 Thread Prof Brian Ripley
On 02/01/2013 10:34, PIKAL Petr wrote: Hi I am not at all an expert in factor analysis but I would say that myscores[1,1] is a value of factor1 for the first row of your data frame. How would you like the link to be performed. Easiest way seems to me cbind your data frame with myscores. m2 <

Re: [R] R and SSH / exchange R objects between client and server

2013-01-01 Thread Prof Brian Ripley
On 01/01/2013 20:39, Duncan Murdoch wrote: On 13-01-01 2:42 PM, Martin Batholdy wrote: Hi, I have a laptop (Mac OS) and a remote PC (Ubuntu) and would like to do the heavy work on the remote machine but control it via the laptop. I managed to install ssh server and can now remotely connect to m

Re: [R] translate grouped data to their centroid

2013-01-01 Thread Prof Brian Ripley
On 01/01/2013 20:43, Prof Brian Ripley wrote: On 01/01/2013 19:50, Michael Friendly wrote: Given a data set with a group factor, I want to translate the numeric variables to their centroid, by subtracting out the group means (adding back the grand means). The following gives what I want, but

Re: [R] translate grouped data to their centroid

2013-01-01 Thread Prof Brian Ripley
On 01/01/2013 19:50, Michael Friendly wrote: Given a data set with a group factor, I want to translate the numeric variables to their centroid, by subtracting out the group means (adding back the grand means). The following gives what I want, but there must be an easier way using sweep or apply

Re: [R] Sheet index (-2147483648) is out of range (0..15)

2012-12-30 Thread Prof Brian Ripley
On 30/12/2012 14:34, eliza botto wrote: Dear useRs, while working in XLConnect, i noticed a strange error "Error: IllegalArgumentException (Java): Sheet index (-2147483648) is out of range (0..15)" there is not much help available about it online. Can anyone please help? That's the value of N

Re: [R] acf () and pacf()

2012-12-30 Thread Prof Brian Ripley
On 30/12/2012 07:47, Rashid Ameer wrote: I have used acf() and pacf() in R to get the acf and pacf values at max/lag=20 but the output did not show the values associated with lag numbers. lag numbers is shown in decimals. What 'lag numbers'? Lags in time series are in time units: most likely y

Re: [R] Using grImport to create a watermark

2012-12-28 Thread Prof Brian Ripley
I suspect you need a device supporting translucency: PostScript does not and hence postscript() cannot. Try the pdf() device (and convert the output if you need it). On 28/12/2012 17:23, Thomas Adams - NOAA Federal wrote: Hi… I want to use grImport to create a watermark on a plot() using the

Re: [R] R crashing inconsistently within for loops

2012-12-28 Thread Prof Brian Ripley
Note though that the posting guide asked you not to use the word 'crash', as your audience has no idea what you mean by it. In some of the senses people use (e.g. when R reports an error in your code), you should expect R to 'crash'. On 28/12/2012 09:04, Jeff Newmiller wrote: You are not wro

Re: [R] problem with opening more than one SOCK cluster with package snow

2012-12-22 Thread Prof Brian Ripley
On 19/12/2012 18:57, Jannis wrote: Dear list, i have some problems using the snow package to create a SOCK cluster. The errors just occour irregularly but it seems to me that they occour when I try to create more than one cluster on the same machine via different R instances started via submitti

Re: [R] How to get transparent colors to sum to complete opacity?

2012-12-17 Thread Prof Brian Ripley
Look up 'alpha-blending' to see how this works. And remember that the sRGB colorspace used has non-linear transformations too. Superposing a finite set of semi-transparent dots will never give an opaque one (and that is true of physical dots too). On 17/12/2012 08:55, Andrew Crane-Droesch wr

Re: [R] Installing Packages from a Local Repository

2012-12-15 Thread Prof Brian Ripley
On 15/12/2012 17:36, Uwe Ligges wrote: You have to specify the repository as "file:Q:/Integrated Planning/R" (and I am not entirely sure if blanks are supported). Actually, that's not right: see ?url. All URI schemes start like file:// . For Windows the help says In this form the pat

Re: [R] Rprof causing R to crash

2012-12-14 Thread Prof Brian Ripley
On 14/12/2012 13:22, Jon Olav Skoien wrote: Uwe, I am unfortunately not able to upgrade to R 2.15.2 right now, but I have Why not? Note that is part of the R-help contract: we only offer any support for the current version of R (see the posting guide). The posting guide also asked for 'at

Re: [R] EMA Package

2012-12-12 Thread Prof Brian Ripley
As the posting guide asked, please ask the package maintainer directly (Cc:ed here). On 12/12/2012 19:34, Aspro wrote: Hi, I'm currently using EMA package to make clustering and heatmaps. The online doc concerning the package gives the following example code: data(marty) c<-clustering(marty,

Re: [R] Multiple palettes on single plot don't get rendered when I use dev.copy2pdf

2012-12-12 Thread Prof Brian Ripley
On 12/12/2012 09:10, peter dalgaard wrote: On Dec 12, 2012, at 01:48 , arun wrote: Hi, Try this: pdf("broke.pdf") palette(rainbow(6)) plot(x=x1,y=y1,col=y1,xlim=c(-10,20)) palette(heat.colors(6)) points(x=x2,y=y2,col=y2) dev.off() A.K. Yep. Notice though that this is not specific

Re: [R] cannot read iso639 table

2012-12-08 Thread Prof Brian Ripley
For the record, in R-devel you can do f <- read.table(url("http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt";, encoding = "UTF-8-BOM"), quote="", sep="|", stringsAsFactors=FALSE) f[1,] V1 V2 V3 V4 V5 1 aaraa Afar afar charToRaw(f[1,1]) [1] 61 61 72 Whether this works wi

Re: [R] read.table()

2012-12-08 Thread Prof Brian Ripley
On 08/12/2012 19:10, Muhuri, Pradip (SAMHSA/CBHSQ) wrote: Hi List, I have spent more than 30 minutes, but failed to read in this file using the read.table() function. I could not figure out how to fix the following error. Well, we have a whole manual on this, mentioned on ?read.table (see Se

Re: [R] Anomalous outputs from rbeta when using two different random number seeds

2012-12-06 Thread Prof Brian Ripley
On 06/12/2012 11:00, Jonathan Minton wrote: Hi, in the code below, I am drawing 1000 samples from two beta distributions, each time using the same random number seed. Using set.seed(80) produces results I expect, in that the differences between the distributions are very small. Using set.seed(2

Re: [R] duplicated() with long vectors

2012-12-05 Thread Prof Brian Ripley
On 05/12/2012 21:08, Sarah Goslee wrote: Hi, duplicated() doesn't just look at consecutive values, but anywhere in the object. Since your 12320-element vector has only 48 separate values, and all of them occur before the last 30 elements, so duplicated() returns TRUE. You might be looking for s

Re: [R] How to handle Chinese [It seems Cyrillic] character in R plot?

2012-11-29 Thread Prof Brian Ripley
Your subject line says Chinese! On 29/11/2012 08:42, Manish Gupta wrote: Hi, I m working on R plot with Russian label but on windows (adobe) russian text are not visible. Do i need to install some package to view it. pdf("sample.pdf",width = 6.6 ,height = 4.2,family= "URWHelvetica", encoding

Re: [R] R lapack routines cannot be loaded

2012-11-24 Thread Prof Brian Ripley
This was answered this week in https://stat.ethz.ch/pipermail/r-help/2012-November/329946.html On 23/11/2012 16:05, arysar wrote: I usually ran different statistical analysis in R with routines that use lapack like gam() lm(), etc but after several updates of libraries the following error appea

Re: [R] What is the . in formula ~. syntax?

2012-11-23 Thread Prof Brian Ripley
On 23/11/2012 08:16, Brian Feeny wrote: Thank you! I searched in the manual, but I did not see where this is mentioned, I looked under operators and in some of the formula documentation. It *is* documented on the help page for formula (and it is not an operator, so should not be in the docu

Re: [R] lapack routines cannot be loaded [Help request]

2012-11-23 Thread Prof Brian Ripley
On 22/11/2012 11:23, Manca Marco (PATH) wrote: Dear BioConductor and R fellow users I apologize in advance for double posting, but I am not sure which list would actually be best fit for this message. The list relevant to the installation of R you used. Was this a binary installation?: if

Re: [R] data after write() is off by 1 ?

2012-11-20 Thread Prof Brian Ripley
On 20/11/2012 19:46, Duncan Murdoch wrote: On 20/11/2012 2:30 PM, Brian Feeny wrote: I am new to R, so I am sure I am making a simple mistake. I am including complete information in hopes someone can help me. Basically my data in R looks good, I write it to a file, and every value is off by 1.

Re: [R] How to create as.numeric.xxx

2012-11-16 Thread Prof Brian Ripley
On 16/11/2012 10:01, Marc Girondot wrote: I would like to create a function to convert data based on a class using as.numeric Similarly, using a plot, I do: plot.essai <- function(x, ...) {return(x*2)} d <- 10 class(d) <- "essai" plot(d) It works: [1] 20 attr(,"class") [1] "essai" Now same w

Re: [R] configure: error: --with-x=yes (default) and X11 headers/libs are not a

2012-11-15 Thread Prof Brian Ripley
On 15/11/2012 14:28, Sarah Goslee wrote: Then you need to install the x11 headers for your Unix (linux?) system. I can't tell you what or how without knowing more about your particular setup. But note that the manual does cover a lot of the possibilities. From the INSTALL file: 'The main sour

Re: [R] Send Email from R

2012-11-15 Thread Prof Brian Ripley
On 15/11/2012 11:49, R_Antony wrote: We had no context. This is R-help, not a Nabble forum. THE ERROR WAS : "ERROR: compilation failed for package 'base64'" Problem is with version. Any idea, how can we do this without any packages ? Does searching not work for you? ??email returned util

Re: [R] R.dll Reference Guide?

2012-11-15 Thread Prof Brian Ripley
On 14/11/2012 23:10, BayesForever wrote: Is there a reference guide to the complete set of functions and their arguments that are available in the R.dll library for Windows, i.e. the set of functions that includes "Rf_initEmbeddedR" and "Rf_endEmbeddedR" listed in section 8.2.2 of the Writing R E

Re: [R] reversing distance matrix for original values

2012-11-14 Thread Prof Brian Ripley
On 14/11/2012 14:33, eliza botto wrote: dear useRs, i created a distance matrix, of certain voltage values. unfortunately, i lost the original values. i am only left with the distance matrix that i created from those values. i wanted to ask that is there a way in R to reverse distance matrix

Re: [R] Matrix package will not loead

2012-11-13 Thread Prof Brian Ripley
ad.file(url, destfile, method, mode = "wb", ...) : cannot open URL 'http://cran.ma.imperial.ac.uk/src/contrib/Matrix_1.0-9.tar.gz' In addition: Warning message: In download.file(url, destfile, method, mode = "wb", ...) : cannot open: HTTP status was '404

Re: [R] Matrix package will not loead

2012-11-13 Thread Prof Brian Ripley
You will find the problem and solution in the list archives. The current version of Matrix can be installed *from source* on R (>= 2.15.0), as it claims. But if you install it on R >= 2.15.2 then it uses features of 2.15.2 and hence can only be run on R >= 2.15.2. And there was a warning abou

Re: [R] Absolute path in gdata library

2012-11-08 Thread Prof Brian Ripley
On 08/11/2012 15:28, Marc Schwartz wrote: On Nov 8, 2012, at 12:57 AM, Prof Brian Ripley wrote: On 07/11/2012 23:12, Marc Schwartz wrote: On Nov 7, 2012, at 4:58 PM, r wrote: Dear list, I have some .xls files that I need to read into R. I am able to do so using read.xls in the gdata

Re: [R] Help Read File With Odd Characters

2012-11-07 Thread Prof Brian Ripley
On 08/11/2012 07:11, Lee Hachadoorian wrote: I have a large (105MB) data file, tab-delimited with a header. There are some odd characters at the beginning of the file that are preventing it from being read by R. > dfTemp = read.delim(filename) Error in make.names(col.names, unique = TRUE) : inv

Re: [R] Absolute path in gdata library

2012-11-07 Thread Prof Brian Ripley
On 07/11/2012 23:12, Marc Schwartz wrote: On Nov 7, 2012, at 4:58 PM, r wrote: Dear list, I have some .xls files that I need to read into R. I am able to do so using read.xls in the gdata package, however the helper functions sheetNames and sheetCount fail. This is the error: Unable to open f

Re: [R] maptree package

2012-11-07 Thread Prof Brian Ripley
On 07/11/2012 11:27, xavier maresma wrote: Hello, I was using the functino kgs of maptree and I've realized maptree has been removed from CRAN repository. Anybody knows why has it been removed? or where can I find the function kgs That's not true: see http://cran.r-project.org/web/packages/m

Re: [R] options()$width ignored by print.formula

2012-11-06 Thread Prof Brian Ripley
namey~s(reallylongnamex0)+s(reallylongnamex1)+s(reallylongnamex2)+s(reallylongnamex3),data=dat) options(width=20) deparse(b$formula, width.cutoff = options()$width) # not wrapped to 20 characters options(width=150) deparse(b$formula, width.cutoff = options()$width) # the formula is wrapped even t

Re: [R] options()$width ignored by print.formula

2012-11-06 Thread Prof Brian Ripley
On 06/11/2012 17:01, Sarah Goslee wrote: Hi all, I'm working with summary.gam() and noticed that the options()$width argument is ignored by some components of that function, in particular the formula, which is printed at an arbitrary length regardless of the desired width. I've tracked the prob

Re: [R] Dates as POSIXt

2012-11-05 Thread Prof Brian Ripley
You cannot have a POSIXlt column in a data frame: if you did your homework you would know it is because it is length-9 list. I don't know why str() is reporting POSIXt as a class, and your example is not reproducible. Normally date-times have class > class(Sys.time()) [1] "POSIXct" "POSIXt"

Re: [R] Snallball, rJava, and R 2.15.1

2012-10-31 Thread Prof Brian Ripley
You forgot to install a JRE (Java runtime). And please use R 2.15.2, which is current, if you are installing from scratch. Some packages built with 2.15.2 (e.g. Matrix) do not work with 2.15.[01]. rJava is on CRAN/rforge.net, not 'R-force' (sic). > PLEASE do read the posting guide http://w

Re: [R] R crashing after successfully running compiled code

2012-10-31 Thread Prof Brian Ripley
On Wed, 31 Oct 2012, Duncan Murdoch wrote: On 12-10-30 11:13 PM, Adam Clark wrote: I'm running R 2.15.1x64, though the same problem persists for 2.13.0x32 and 2.13.0x64. I am trying to run compiled C code using the .C convention. The code compiles without problems, dynamically loads within the

Re: [R] GTK_2.18.5-X11.pkg

2012-10-30 Thread Prof Brian Ripley
On 29/10/2012 19:39, Cory Lowe wrote: Does anyone know where I can download the GTK_2.18.5-X11.pkg? It has been removed from r.research.att.com/libs/ and I need it to use the RQDA package on my mac. Is there anyone who can direct me to someone who might have the file? Any help would be greatly

Re: [R] the right reference for the R Stats package for a scientific journal

2012-10-29 Thread Prof Brian Ripley
On 29/10/2012 14:08, gianni lavaredo wrote: Dear Members list, I am writing a paper for a research where i used "the R Stats package". No one knows the right reference for this package? Thanks in Advance Gianni Au contraire, anyone who reads the startup screen knows from: R is a collaborativ

Re: [R] why sd() can be applied to character vector?

2012-10-27 Thread Prof Brian Ripley
On 27/10/2012 10:16, Jinsong Zhao wrote: Hi there, In the following example, sd() can be applied to a character vector. However, mean() can not be run in a similar way. Why? I have read sd() man page, however, I don't find information about that behavior. Well, it is there: x: a numer

Re: [R] Reading Chinese Language (GB2312) Input

2012-10-27 Thread Prof Brian Ripley
On 26/10/2012 18:25, jgreenb1 wrote: I am trying to read a csv file with Chinese language text in it. The file should look like this: userid,jobid,Title,companyid,industryids1 82497,1160,互联网产品经理,12 96429,658,企划经理(商业公司),24 14471,95,产品运营经理,25,6 14471,1708,产品营销高级经理,727,2 14471,1558,产品总监,611,4 14471

Re: [R] quartz.save of the FAQ (Mac)

2012-10-22 Thread Prof Brian Ripley
Please stop posting Mac-specific questions on R-help. You have been asked not to do so before There _is_ a quartz.save() function in R.app, whose FAQ you are reading. The RMacOSX-FAQ is not part of R: it is part of the separate Mac-GUI project. You really do need to contact the authors

Re: [R] Problem installing ndf library

2012-10-22 Thread Prof Brian Ripley
You need to install netcdf, including its development files. The notes you quote are pretty specific about that. Googling for that leads to http://packages.debian.org/source/squeeze/netcdf and it seems you need libnetcdf-dev and libnetcdf6 installed. On 22/10/2012 11:39, claire1234 wrote: H

Re: [R] system.time question

2012-10-20 Thread Prof Brian Ripley
On 20/10/2012 17:16, Mark Leeds wrote: Hi : I looked at the help for system.time but I still have the following question. Can someone explain the output following output of system.time : user system elapsed 12399.681 5632.352 56935.647 Yes, the help page can, via ?proc.time.

Re: [R] how can I make a legend that applies for all the barplots in one same page?

2012-10-20 Thread Prof Brian Ripley
On 20/10/2012 10:33, Jim Lemon wrote: On 10/20/2012 06:22 AM, Yakamu Yakamu wrote: Dear all, I would like to make 6 barplots in one page but with a legend that applies to all the barplots and would like to put it in the central-bottom of the page. I know only how to make legend for individual b

Re: [R] how R implement qnorm()

2012-10-18 Thread Prof Brian Ripley
On 18/10/2012 00:16, Sheng Liu wrote: how R implement qnorm() I wonder anyone knows the mathematical process that R calculated the quantile? It's on the help page! 'For qnorm, the code is a C translation of Wichura, M. J. (1988) Algorithm AS 241: The Percentage Points of the Normal Distribu

Re: [R] Moving a file from one location to another

2012-10-17 Thread Prof Brian Ripley
On 17/10/2012 13:59, Berend Hasselman wrote: On 17-10-2012, at 13:53, Rui Barradas wrote: Hello, On Windows this should be the old DOS command RENAME (or REN) and apparently the R function ?file.rename carries it's name. If I'm reading the help for file.rename correctly it can't move a fi

Re: [R] history and readline, Mac OSX

2012-10-17 Thread Prof Brian Ripley
On 17/10/2012 14:39, Christian Hoffmann wrote: Hi, Obviously history() will only work with readline installed: so far I Not obvious, and not what the help page says either: There are several history mechanisms available for the different R consoles, which work in similar but not ide

Re: [R] Download a file from url

2012-10-15 Thread Prof Brian Ripley
On 16/10/2012 02:33, veepsirtt wrote: Currently download methods "internal", "wget", "curl" and "lynx" are available. If wget is not possible under windows,how to use 'curl'?. But it is. You need the programs wget or curl installed and in your path: pre-compiled versions for Windows are avail

Re: [R] how to include --configure-args= in R CMD INSTALL

2012-10-15 Thread Prof Brian Ripley
--configure-args are for Unix: you are on Windows. On 15/10/2012 11:47, sagarnikam123 wrote: I am installing RMySQL_0.9-3.tar.gz pkg on windows-7 64 bit machine as:--- C:\Users\trendwise> R CMD INSTALL --configure-args='--with-mysql-inc="C:\\Program Files\\MySQL\\MySQL Server 5.5\\include"' "C

Re: [R] How to use internationalization of R on Linux?

2012-10-15 Thread Prof Brian Ripley
On 15/10/12 08:32, Manish Gupta wrote: Hi, I am working on internationalization of R on linux. I have xml file which has data in Chinese language. I need to read it and plot it. How can i do it using internationalization on linux? By following the R manuals. If you use a UTF-8 locale there

Re: [R] Regarding R's png device in linux

2012-10-10 Thread Prof Brian Ripley
On 10/10/2012 07:23, Anshul Gupta wrote: Hi, I am a developer from Oracle. I wanted to create a png file out of png device with a bit depth of 8. I am using R on linux. But I noticed that R automatically switches between 8 and 24 bit depth. i tried a lot of things from your grDevices package bu

Re: [R] Rmpi installation trouble

2012-10-09 Thread Prof Brian Ripley
Note: libmpi.dylib: cannot open shared object file: No such file or directory Linux does not have .dylib's: Darwin (part of Mac OS X) does. This is not an R question (it seems to be about your MPI installation) and you need to discuss it with the package maintainer (see the posting quide).

Re: [R] append for .Rdata?

2012-10-09 Thread Prof Brian Ripley
On 09/10/2012 16:35, Jessica Streicher wrote: Can i somehow append objects to an .Rdata file? No. See the 'R Internals' manual for the details. BTW, it is '.RData': R is case sensitive and so are many file systems. It sounds like you should be using a database of the results of saveRDS() fo

Re: [R] How to deal with thousands of seconds in R?

2012-10-09 Thread Prof Brian Ripley
On 09/10/2012 09:54, Agustin Lobo wrote: If I do: a [1] "2012_10_01_14_13_32.445" a2 [1] "2012_10_01_14_13_32.500" strptime(a,format="%Y_%M_%d_%H_%M_%S")-strptime(a2,format="%Y_%M_%d_%H_%M_%S") Time difference of 0 secs Is there any time object in R that would deal with thousands of second

Re: [R] installation of R (14.1 and 15.1) fails: [reg-packages.Rout] Error 1

2012-10-08 Thread Prof Brian Ripley
On 08/10/2012 10:21, Oliver Kullmann wrote: sorry, I forgot: I'm using gcc and gfortran, version 4.5.4. Please see the posting guide (and there are no versions 14.1 and 15.1 of R). It really isn't clear what you did: this seems to be *checking* R: did you build it from the sources yourself?

Re: [R] Robust regression for ordered data

2012-10-07 Thread Prof Brian Ripley
On 08/10/2012 00:37, Bert Gunter wrote: Have you checked the Robust task view on CRAN?? Would seem that that should have been the first place to look. It is still a conceptual question. I presume this means an ordered response, and then we need to know what is meant by 'regression'. If you

Re: [R] a merge() problem

2012-10-07 Thread Prof Brian Ripley
On 08/10/2012 02:57, Peter Ehlers wrote: On 2012-10-07 14:44, Sam Steingold wrote: * Peter Ehlers [2012-10-07 10:03:42 -0700]: On 2012-10-07 08:34, Sam Steingold wrote: I know it does not look very good - using the same column names to mean different things in different data frames, but here

Re: [R] Problem with national characters in main, xlab, ylab with pdf{grDevices} / postscript {grDevices}

2012-10-07 Thread Prof Brian Ripley
'National': not my nation, and none is stated. Somewhere in Eastern Europe ... Poland? Short answer: you need to use a family which contains those glyphs (try family='NimbusSan': the default 'Helvetica' does not) *and* a viewer that uses fonts that do. Longer answer: read ?pdf and ?postscri

Re: [R] Failed installWithVers from local tar.gz

2012-10-04 Thread Prof Brian Ripley
On 03/10/2012 20:42, kkarr wrote: Hi, I am having trouble installing a previous version of a package, and multiple version of the package in R 2.12 or 2.15. I have download the tar.gz packages from the CRAN archive, and created an folder holding all the files. install.packages("changepoint_0.3

Re: [R] How to limit memory on a server

2012-10-04 Thread Prof Brian Ripley
anks. Best regards Cyril Hervy -Message d'origine- De : Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Envoyé : mercredi 3 octobre 2012 17:22 À : Hervy Cyril Cc : R-help (r-help@r-project.org) Objet : Re: [R] How to limit memory on a server On 03/10/2012 16:12, Hervy Cyril wrote: My

Re: [R] How to limit memory on a server

2012-10-03 Thread Prof Brian Ripley
d'origine- De : Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Envoyé : mercredi 3 octobre 2012 15:43 À : Hervy Cyril Cc : R-help (r-help@r-project.org) Objet : Re: [R] How to limit memory on a server And your OS is? See the footer and the 'at a minimum' information the post

<    1   2   3   4   5   6   7   8   9   10   >