Re: [R] differences between 1.7 and 1.7.1 glmnet versions

2011-12-31 Thread Damjan Krstajic
Thank you very much. I will use 1.7.1 version. Have you had time to look at the issue regarding a weird behaviour of multinomial glmnet when alpha=0? I posted it to r-help more than two weeks ago and maybe you missed it. Damjan Krstajic Subject: Re: differences between 1.7 and 1.7.1 glmnet

[R] Simple problem

2011-12-31 Thread Ronaldo Reis Júnior
Hi, when I use the install.packages() function this make a download of packages, try do compile/install packages and delete the downloaded file. But if the compilation of package fail, I need to make the download again because R delete all downloaded file. How I can make install.packages dont

[R] [R-pkgs] PairedData: a new package for analysing paired (numerical) data

2011-12-31 Thread CHAMPELY STEPHANE
Dear R users, I'd like to announce the PairedData package (version 0.5). This package provides a set of graphical tools (based on ggplot2), statistics, effect sizes and some classical and robust tests, confidence intervals and random simulation functions for analysing paired data. Several

[R] How to color a region in a contour plot with the contour being the boundary?

2011-12-31 Thread Marius Hofert
Dear expeRts, I would like to color a certain region in a levelplot. The region for z = 0.02 should have a dark gray color. Below is a minimal example. It almost does what I want, but The region between z=0.02 and z=1 is also colored in dark gray (instead of just the region for z = 0.02). How

[R] [R-pkgs] What happened with packages directory on CRAN website?

2011-12-31 Thread Paweł Matykiewicz
What happened with packages directory? http://cran.r-project.org/web/ Thanks -- Pawel Matykiewicz http://www.neuron.m4u.pl http://www.linkedin.com/in/pawelmatykiewicz ___ R-packages mailing list r-packa...@r-project.org

Re: [R] HELP!! - PHP calling R to execute a r-code file (*.r)

2011-12-31 Thread Mike Marchywka
Date: Fri, 30 Dec 2011 16:04:08 -0600 From: xiuquan.w...@gmail.com To: r-help@r-project.org Subject: [R] HELP!! - PHP calling R to execute a r-code file (*.r) Hi, I have met a tough problem when using PHP to call R to generate some plots.

Re: [R] Simple problem

2011-12-31 Thread Prof Brian Ripley
On 31/12/2011 10:27, Ronaldo Reis Júnior wrote: Hi, when I use the install.packages() function this make a download of packages, try do compile/install packages and delete the downloaded file. But if the compilation of package fail, I need to make the download again because R delete all

[R] Cross-validation error with tune and with rpart

2011-12-31 Thread Israel Saeta Pérez
Hello list, I'm trying to generate classifiers for a certain task using several methods, one of them being decision trees. The doubts come when I want to estimate the cross-validation error of the generated tree: tree - rpart(y~., data=data.frame(xsel, y), cp=0.1) ptree - prune(tree,

Re: [R] Cross-validation error with tune and with rpart

2011-12-31 Thread Prof Brian Ripley
On 31/12/2011 12:34, Israel Saeta Pérez wrote: Hello list, I'm trying to generate classifiers for a certain task using several methods, one of them being decision trees. The doubts come when I want to estimate the cross-validation error of the generated tree: tree- rpart(y~.,

[R] read.csv error: invalid multibyte string

2011-12-31 Thread Dennis Fisher
R version: 2.13.1 OS X Colleagues, I am working with a CSV file; for testing purposes, I created an XLS version of the file. When I read these files using read.xls (gdata) or read.csv, I encounter an error: Error in type.convert(data[[i]], as.is = as.is[i], dec = dec, na.strings =

[R] Base function for flipping matrices

2011-12-31 Thread Hadley Wickham
Hi all, Are there base functions that do the equivalent of this? fliptb - function(x) x[nrow(x):1, ] fliplr - function(x) x[, nrow(x):1] Obviously not hard to implement (although it needs some more checks), just wondering if it had already been implemented. Hadley -- Assistant Professor /

[R] Histogram omitting/collapsing groups

2011-12-31 Thread Aren Cambre
I have two large datasets (156K and 2.06M records). Each row has the hour that an event happened, represented by an integer from 0 to 23. R's histogram is combining some data. Here's the command I ran to get the histogram: histinfo - hist(crashes$hour, right=FALSE) Here's histinfo: histinfo

Re: [R] Base function for flipping matrices

2011-12-31 Thread Hans W Borchers
Hadley Wickham hadley at rice.edu writes: See functions flipud(), fliplr() in package 'matlab' (or 'pracma'). Those are the names of corresponding functions in MATLAB. Hans Werner Hi all, Are there base functions that do the equivalent of this? fliptb - function(x) x[nrow(x):1, ]

Re: [R] Histogram omitting/collapsing groups

2011-12-31 Thread Sarah Goslee
Hi, I think you're not understanding quite what's going on with hist. Reread the help, and take a look at this small example. The solution I'd use is the last item. x - rep(1:10, times=1:10) table(x) x 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 hist(x, plot=FALSE,

Re: [R] Break Points

2011-12-31 Thread Ayanendu Sanyal
Respected Sir Thank You for the ultra fast reply I changed the file and defined my data as time series and then ran 'strucchange' i have attached the lastsave1.txt file. but the lines (ci.ayan) is not working Is the work ok please confirm I am not so much familar with this

Re: [R] Break Points

2011-12-31 Thread Achim Zeileis
On Sat, 31 Dec 2011, Ayanendu Sanyal wrote: Respected Sir Thank You for the ultra fast reply I changed the file and defined my data as time series and then ran 'strucchange' i have attached the lastsave1.txt file. but the lines (ci.ayan) is not working Is the work ok please

Re: [R] read.csv error: invalid multibyte string

2011-12-31 Thread peter dalgaard
On Dec 31, 2011, at 16:05 , Dennis Fisher wrote: R version: 2.13.1 OS X Colleagues, I am working with a CSV file; for testing purposes, I created an XLS version of the file. When I read these files using read.xls (gdata) or read.csv, I encounter an error: Error in

Re: [R] Sweave options

2011-12-31 Thread Michael Friendly
On 12/30/2011 2:33 PM, Duncan Murdoch wrote: Remember that that list is not exhaustive, since it is an open-ended format. For example, the rgl package implements a driver that adds an option delay. (It also uses resolution, but other drivers use that too.) I imagine odfWeave has its own

Re: [R] Sweave options

2011-12-31 Thread Duncan Murdoch
On 11-12-31 12:07 PM, Michael Friendly wrote: On 12/30/2011 2:33 PM, Duncan Murdoch wrote: Remember that that list is not exhaustive, since it is an open-ended format. For example, the rgl package implements a driver that adds an option delay. (It also uses resolution, but other drivers use

[R] Fwd: Break Points

2011-12-31 Thread Ayanendu Sanyal
Respected Sir The model I want to fit is logy= a + bt and then I want to do bai perron test (2003) but i tried every command it didnt worked out can you please tell me how to do it??? I know it is extremely ridiculous to ask this question... But I shall be very much obliged if you can help

Re: [R] Base function for flipping matrices

2011-12-31 Thread Bert Gunter
Hadley: Dunno. But if not, it seems to me that it should be added as an array method to ?rev with an argument specifying which indices to rev() over. Cheers, Bert On Sat, Dec 31, 2011 at 7:08 AM, Hadley Wickham had...@rice.edu wrote: Hi all, Are there base functions that do the equivalent

[R] Reading large sparse arff files into R

2011-12-31 Thread andy1234
Hi, I am trying to read in a large and highly sparse ARFF file into R which was produced by WEKA. However the package 'RWeka' just chokes on this file. The data set has about 40k observations and about 20k dimensions. Even after 1hr read.arff method of RWeka is still trying to read in the file,

Re: [R] Base function for flipping matrices

2011-12-31 Thread William Revelle
Hadley, Presumably for fliplr you meant ncol(x) fliplr - function(x) x[, ncol(x):1] Bill On Dec 31, 2011, at 9:08 AM, Hadley Wickham wrote: Hi all, Are there base functions that do the equivalent of this? fliptb - function(x) x[nrow(x):1, ] fliplr - function(x) x[, nrow(x):1]

Re: [R] Is it possible to right align text in R graphics?

2011-12-31 Thread Duncan Mackay
Hi Tal I think it might be an OS problem whether it is a graphics as well I do not know. I Just copied and pasted the line into R and it seems ok OS win 7 version platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2

Re: [R] Histogram omitting/collapsing groups

2011-12-31 Thread jim holtman
Here is a test I ran and looks fine, but then I created the data, so it might have something to do with your data: x - sample(0:23, 10, TRUE) a - hist(x, breaks = 24) a[1:5] $breaks [1] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 $counts [1] 8262 4114 4186

Re: [R] Histogram omitting/collapsing groups

2011-12-31 Thread jim holtman
Fast fingers; notice that there is still a problem in the counts; I was only looking at the last. Happy New Year -- up too late. On Sun, Jan 1, 2012 at 12:33 AM, jim holtman jholt...@gmail.com wrote: Here is a test I ran and looks fine, but then I created the data, so it might have something

Re: [R] Histogram omitting/collapsing groups

2011-12-31 Thread Joshua Wiley
If you just want a plot of the frequencies at each hour why not just call barplot on the output of table? Histograms create bins and count in those, which doesn't sound like what you're after. Cheers, Josh On Dec 31, 2011, at 21:37, jim holtman jholt...@gmail.com wrote: Fast fingers;

[R] empty files created with trellis xyplot jpeg device

2011-12-31 Thread Mike Dahman
New years greetings. I have been setting up a function to generate multiple jpeg charts. When the calls are issued at the interactive console, the jpeg files are generated without an issue. When I try to issue the same calls from a function, some chart files are empty. It appears to only be