Re: [R] [OT] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Mark Difford
Hi Everyone, Please don't denigrate the capabilities of GNUplot (Louise excluded). It can, in fact, do some truly awesome stuff. http://linuxgazette.net/133/luana.html The PDF is worth a shot. Cheers, Mark. Louise Hoffman-3 wrote: > >> If you still want to then read ?write.table, that can

Re: [R] model R^2 and partial R^2 values

2008-02-29 Thread Mark Difford
Hi Mirela, >> Are the relative R^2 values the CP values? No. CP is your complexity parameter. >> I’ve read that the R^2 = 1-rel error, so I am assuming that in my case >> this >> would be 1-0.64949. Is this correct? Yes. See ?rsq.rpart, and run the example, which I've copied below. ## par(

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Tristan Casey
Finally cracked it! Thanks everyone for your unlimited patience. I had my code incorrect, the textConnection I was reading from had "" around it, when it should have just been the object. See below. >textConnection(b,open="r") - Not "b"!> zzz<-read.csv(y) > close(y)> zzz X x1 >x2 x3 x41 1 1

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Tristan Casey
Hello Haris, Thanks for that advice, yes that does work for me also, now the only problem is reading the csv. This is the format that write.csv is stored in as a variable; > x[1] "\"\",\"x1\",\"x2\",\"x3\",\"x4\"" "\"1\",1,4,5,7" > "\"2\",2,3,6,7" R seems to insert alot of

[R] model R^2 and partial R^2 values

2008-02-29 Thread Mirela Tulbure
Dear R-list members, I am doing a CART analysis in R using the rpart function in the rpart package: Phrag.rpart=rpart(PhragDiff~., data = Phrag, method="anova", xval=10). I used the xerror values in the CP table to prune the tree to 4 nsplits: CPnsplit rel error xerrorxstd 1

Re: [R] GUI developement / Matlab

2008-02-29 Thread Michael Lawrence
On Fri, Feb 29, 2008 at 6:45 AM, Antje <[EMAIL PROTECTED]> wrote: > Hi there, > > I was wondering whether there are flexible packages available with which > you > can create user interfaces? (I've read about "gWidgets"!?) gWidgets provides an easy to use API for developing GUIs in R. It's an abs

Re: [R] How to convert the "user coordinate system" in R graph to"normal coordinate system" whose origin is the upper-leftcornner of the drawing area?

2008-02-29 Thread Guohui Ding
Thanks. It works. 2008/3/1, Greg Snow <[EMAIL PROTECTED]>: > > Look at the cnvrt.coords function in the TeachingDemos package. > > You should be able to use that function to transform from user > coordinates to device coordinates (where 0 is left/bottom and 1 is > right/top), then multiply the dev

Re: [R] datetime on x-axis of plot

2008-02-29 Thread Steve Revilak
> From: joshv > Hello, I'm reading Time Series Analysis and its Applilcations with R Examples > and I have a question... > > I notice that in the book there are timeseries plots but without the x-axis > being labeled with dates. They are just numbers 1,...50,...100, etc. How > do I get the date

Re: [R] setHook and lattice

2008-02-29 Thread Deepayan Sarkar
On 2/29/08, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > See share/perl/massage-examples.pl > > Hint: lattice is a (very sophisticated) wrapper for grid, and it is > grid.newpage() that has the hook. > > Hint 2: look at the version in the R-devel sources, > > https://svn.r-project.org/R/trunk

[R] model R^2 and partial R^2 values for CART analysis in R

2008-02-29 Thread Mirela Tulbure
Dear R-list members, I am doing a CART analysis in R using the rpart function in the rpart package: Phrag.rpart=rpart(PhragDiff~., data = Phrag, method="anova", xval=10). I used the xerror values in the CP table to prune the tree to 4 nsplits: CPnsplit rel error xerrorxst

Re: [R] Fitting long names in boxplot

2008-02-29 Thread Henrique Dallazuanna
Try this: Assuming that 'build' is a factor par(mar=c(7,2,2,2), xpd = TRUE) boxplot(time ~ build, horiz = T, col='lightblue', xaxt='n') text(1:nlevels(build), par("usr")[3]-0.50, levels(build), srt=45, cex=0.6) On 29/02/2008, Alex Reynolds <[EMAIL PROTECTED]> wrote: > I have the following cod

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Frank E Harrell Jr
Michael wrote: > On 29 Feb 2008, Don MacQueen wrote: > >> The generic way to open an arbitrary file with an arbitrary >> application in OS X at the command line in a shell window is >> >> open -a application_name file_name > > But there is no native Mac program to open a dvi file. > > Michael

Re: [R] can the matrix size limit be increased?

2008-02-29 Thread jim holtman
You only have 1 row in your matrix, so what you are getting printed out is not an empty matrix, but the header. If you print the transpose you get: > head(t(tst)) [,1] [1,]1 [2,]2 [3,]3 [4,]4 [5,]5 [6,]6 > The default is to only print out 10 values. Your data is

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Louise Hoffman
> If you still want to then read ?write.table, that can export your data > into a spreadsheet-like ascii format which can be used from GNUplot > easily. Very interesting. So if I e.g. write: ts.sim <- arima.sim(list(order = c(1,1,0), ar = 0.7), n = 200) ts.plot(ts.sim) How do I know the names

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Michael
On 29 Feb 2008, Charilaos Skiadas wrote: > Why is it important that the output file be a dvi file? Would it be a > problem to have the latex() function produce a pdf file on mac systems? That was what I was saying. > I thought the latex() command was just producing tex code. By defaults it gi

[R] RAM Filling up

2008-02-29 Thread Thomas Allen
Hi I'm using Ubuntu 7.10 with 2GB RAM and a 2GB partition of the HDD set aside as a swap drive. I'm trying to write programs which are quite RAM intensive and as such I sometimes run out of RAM and the process is killed. At the moment I'm storing much data on disk, reading it in to a datastructu

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Charilaos Skiadas
On Feb 29, 2008, at 5:39 PM, Michael wrote: > On 29 Feb 2008, Charilaos Skiadas wrote: > >> On Feb 29, 2008, at 12:38 PM, Michael wrote: > >>> On 29 Feb 2008, Frank E. Harrell, Jr. wrote: >>> Several people have given great advice on how to successfully use X11 on Mac to so we can

[R] Fitting long names in boxplot

2008-02-29 Thread Alex Reynolds
I have the following code: subsetTimeDataPlot <- boxplot(subsetTimeData$time ~ subsetTimeData$build, horizontal=True, col="lightblue", ...) The 'names' component consists of strings that can be up to 20-30 characters long. How would I go about drawing the names vertically (not the boxplot) or

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Michael
On 29 Feb 2008, Don MacQueen wrote: > The generic way to open an arbitrary file with an arbitrary > application in OS X at the command line in a shell window is > > open -a application_name file_name But there is no native Mac program to open a dvi file. Michael __

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Michael
On 29 Feb 2008, Charilaos Skiadas wrote: > On Feb 29, 2008, at 12:38 PM, Michael wrote: > > On 29 Feb 2008, Frank E. Harrell, Jr. wrote: > > > >> Several people have given great advice on how to successfully use > >> X11 on > >> Mac to so we can use the dvi previewer to view latex() output from

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Gabor Csardi
I believe that R can export all formats that GNUplot can produce, so i don't really see why you want to use GNUplot if you don't know it. If you still want to then read ?write.table, that can export your data into a spreadsheet-like ascii format which can be used from GNUplot easily. Btw, compar

Re: [R] controlling for number of elements in each node of the tree in mvpart

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 16:48 -0500, shu zhang wrote: > Still about the mvpart. > Is there any way I can control for the number of elements in each node > in the function mvpart? Specifically, how can I ask partition to > ignore node with elements less than 10? mvpart is just a wrapper to (a modifie

Re: [R] Column sums from a data frame (without the column headers)

2008-02-29 Thread jim holtman
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Here is an example; I am not sure what problem you are having with 'indexing' since you did not show an example. > x <- data.frame(a=1:10, b=21:30, c=41:

Re: [R] barplot and pca plot in mvpart/rpart

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 16:46 -0500, shu zhang wrote: > Hello, > I'm using the R package called mvpart, which is about the multivariate > regression trees. > > The function I wrote is: > mrt1<- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv="pick", > plot.add=TRUE,uniform=TRUE,which=4,all=TRUE,x

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Louise Hoffman
[snip] > Seriously. Be specific if you have a problem. (read the posting guide). R can > also plot. If you don't like R's plots (which I could not understand) you can > export data and import them to gnuplot. So what? Okay, my post was not very good. The reason (I think) I need GNUplot, is tha

Re: [R] using zlib (was compress data on read, decompress on write)

2008-02-29 Thread Ramon Diaz-Uriarte
Dear Prof. Ripley, Thanks for your reply. I think I understand now. Best, R. On Fri, Feb 29, 2008 at 7:36 PM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Fri, 29 Feb 2008, Ramon Diaz-Uriarte wrote: > > > Dear All, > > > > > I think I am confused about how I'd be able to use zlib startin

[R] controlling for number of elements in each node of the tree in mvpart

2008-02-29 Thread shu zhang
Still about the mvpart. Is there any way I can control for the number of elements in each node in the function mvpart? Specifically, how can I ask partition to ignore node with elements less than 10? Thanks! -Shu __ R-help@r-project.org mailing list htt

[R] barplot and pca plot in mvpart/rpart

2008-02-29 Thread shu zhang
Hello, I'm using the R package called mvpart, which is about the multivariate regression trees. The function I wrote is: mrt1<- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv="pick", plot.add=TRUE,uniform=TRUE,which=4,all=TRUE,xadj=2,yadj=2,rsq=TRUE,big.pts=TRUE,wgt.ave.pca=TRUE,legend=TRUE,ba

Re: [R] while loop syntax help

2008-02-29 Thread jim holtman
Does this give the answer that you want? > x <- c(5,5,7,6,5,4,3) > result <- NULL > for (i in 1:(length(x) - 2)){ + if ((x[i + 1] < x[i]) && (x[i + 2] < x[i])) result <- c(result, i) + } > result [1] 3 4 5 > On 2/29/08, zack holden <[EMAIL PROTECTED]> wrote: > > Dear list, > I'm trying to w

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Stefan Grosse
On Friday 29 February 2008 09:37:26 pm Louise Hoffman wrote: LH> Dear readers, LH> LH> I would like to use GNUplot for the plots, but I can't find any LH> information on how to do that. LH> LH> Have anyone tried that? =) LH> LH> Hugs, LH> Louise LH> Try http://gnuplot.info/ there is plenty

[R] while loop syntax help

2008-02-29 Thread zack holden
Dear list, I'm trying to write my first looping function in R. After many hours of searching help files and previous posts, I'm at wits end. Please forgive my programming ignorance...any help is greatly appreciated. I need to sort through a vector (x) and identify the point at which 2 success

[R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Louise Hoffman
Dear readers, I would like to use GNUplot for the plots, but I can't find any information on how to do that. Have anyone tried that? =) Hugs, Louise __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Don MacQueen
The generic way to open an arbitrary file with an arbitrary application in OS X at the command line in a shell window is open -a application_name file_name quoted if there are embedded spaces. One doesn't generally have to give the full path to the application. Digging into help.start() mi

Re: [R] Graphic text

2008-02-29 Thread Neil Shephard
Hi Maura, Compound quotes can become an absolute nightmare (in any language). R already has Tcl/TK packages, check out the following from CRAN... ade4TKGUI gWidgetstcltk plotAndPlayGTK * RGtk2 * possibly what your after? Also you might find some of the packages listed at the Graphics Task View

[R] Column sums from a data frame (without the column headers)

2008-02-29 Thread Jason Horn
Does anyone know how to get a vector of column sum from a data frame? You can use colSums(), but this gives you a object of type "numeric" with the column labels in the first row, and the sums in the second row. I just want a vector of the sums, and I can't figure out a way to index the "

[R] On the probabilistic distribution

2008-02-29 Thread Munyandorero, Joseph
Dear R Community, I first apoligize to ask statistical questions of general domain, probably beyond the mere use of R. I want to analyze the following type of data with R . Total annual fisheries landings have been reported during 1950-2007 from a given fishery area. I am dealing with annual fishe

Re: [R] time experiment

2008-02-29 Thread bartjoosen
A simple RSiteSearch: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/63840.html Bart Luís Paulo F. Garcia wrote: > > How do i for have a time of experiment? Have a package for this? Or > function? In my case the time of experiment is learning machining (svm). > > Tanks :) > > [[alter

Re: [R] printing tables to a pdf

2008-02-29 Thread bartjoosen
Hi Georg, see textplot in the gplots package another way is thru sweave and latex, pdf -> latex Bart Georg Ehret wrote: > > Dear R community, >I wish to print tables into a pdf file. How can this be done, > adding > headers and several tables to the same file? > > Thanking you for

[R] can the matrix size limit be increased?

2008-02-29 Thread Robert Leach
Hi there, I'm brand new to R, so let me know if this question is not appropriate for this list. I've been reading through the documentation and have tried a number of things, but am pretty much stuck so far. Here's the session info: > sessionInfo() R version 2.6.2 (2008-02-08) i386-apple

Re: [R] printing tables to a pdf

2008-02-29 Thread Greg Snow
There are a few different ways that this can be accomplished. The method I would suggest is to use one of the variants of Sweave. You can either use the original Sweave (?Sweave) or the odfWeave package. Using the original Sweave you would create a template file that combines LaTeX commands (hea

[R] inheritence in S4

2008-02-29 Thread cgenolin
Hi the list I define a class A (slot a and b), a class C (slot c and d) and a class E that inherit from A and B. I define print(A) and print(B). For print(C), I would like to use both of them, but I do not see how... Thanks for your help... Christophe -

Re: [R] setHook and lattice

2008-02-29 Thread Prof Brian Ripley
See share/perl/massage-examples.pl Hint: lattice is a (very sophisticated) wrapper for grid, and it is grid.newpage() that has the hook. Hint 2: look at the version in the R-devel sources, https://svn.r-project.org/R/trunk/share/perl/massage-Examples.pl for use with lattice. On Fri, 29 Feb 20

Re: [R] using zlib (was compress data on read, decompress on write)

2008-02-29 Thread Prof Brian Ripley
On Fri, 29 Feb 2008, Ramon Diaz-Uriarte wrote: > Dear All, > > I think I am confused about how I'd be able to use zlib starting with > R 2.7.0. I just downloaded the latest development version, built it, > etc, but I am not able to find the zlib.h that, I believe, R should > place somewhere unde

[R] printing tables to a pdf

2008-02-29 Thread Georg Ehret
Dear R community, I wish to print tables into a pdf file. How can this be done, adding headers and several tables to the same file? Thanking you for your attention, Georg. * Georg Ehret Johns Hopkins Baltimore - US [[alternative HTML version deleted]] _

[R] using zlib (was compress data on read, decompress on write)

2008-02-29 Thread Ramon Diaz-Uriarte
Dear All, I think I am confused about how I'd be able to use zlib starting with R 2.7.0. I just downloaded the latest development version, built it, etc, but I am not able to find the zlib.h that, I believe, R should place somewhere under "where/you/want/R/to/go" (from --prefix=/where/you/want/R

[R] setHook and lattice

2008-02-29 Thread Jim Price
Hi, I am trying to find a way to automate production of page numbers in plots produced using the lattice package. To do this, I started playing around with setHook which works fine with vanilla plot, but the hook 'plot.new' doesn't appear to be relevant to the lattice package. I was wondering if

Re: [R] bugs.seed= and summary.only= option in R2WinBUGS

2008-02-29 Thread Uwe Ligges
He, Yulei wrote: > Dear R user: > > > > I am using R2WinBUGs to call WinBUGS from R. But I have some problems in > using either the option bugs.seed and summary.only in the function bugs. > Here are the programs and error messages. It appears that if I don't use > either option, the program r

Re: [R] time experiment

2008-02-29 Thread Luís Paulo F. Garcia
I need in machine clock! Not in seconds. On Fri, Feb 29, 2008 at 2:50 PM, Luís Paulo F. Garcia <[EMAIL PROTECTED]> wrote: > How do i for have a time of experiment? Have a package for this? Or > function? In my case the time of experiment is learning machining (svm). > > Tanks :) > [[alte

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Charilaos Skiadas
On Feb 29, 2008, at 12:38 PM, Michael wrote: > On 29 Feb 2008, Frank E. Harrell, Jr. wrote: > >> Several people have given great advice on how to successfully use >> X11 on >> Mac to so we can use the dvi previewer to view latex() output from >> Hmisc. Now after a version upgrade of X11 and X11

Re: [R] compress data on read, decompress on write

2008-02-29 Thread Ramon Diaz-Uriarte
Thanks, Greg. Yes, I'd store the compressed stuff as a raw data type. Best, R. On Thu, Feb 28, 2008 at 11:54 PM, Gregory Warnes <[EMAIL PROTECTED]> wrote: > > You might look at storing the data using R's "raw" data type... > > -G > > > > > On Feb 28, 2008, at 5:38PM , Ramon Diaz-Uriarte wrote

[R] time experiment

2008-02-29 Thread Luís Paulo F. Garcia
How do i for have a time of experiment? Have a package for this? Or function? In my case the time of experiment is learning machining (svm). Tanks :) [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Deepayan Sarkar
On 1/7/08, Jeff D. Hamann <[EMAIL PROTECTED]> wrote: > I apologize if this is somewhere in the archives, but I can't seem to find > a solution to this question. > > I've been trying to plot a bwplot: > > print( > bwplot( n.pareto ~ as.factor(gen) | mut.rate * n.pop, > data=p6

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Michael
On 29 Feb 2008, Frank E. Harrell, Jr. wrote: > Several people have given great advice on how to successfully use X11 on > Mac to so we can use the dvi previewer to view latex() output from > Hmisc. Now after a version upgrade of X11 and X11sdk we are getting > lots of crashes. I noticed a Mac

Re: [R] Graphic text

2008-02-29 Thread Maura E Monville
I will try. It looks like the new-line sequence is to be enclosed in single quotes '' because the whole text is inside double quotes "". Still it would be nice to have the possibility to pop up a text widget. I know R is a serious statistical tool. But when you have to present your project then pre

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 18:12 +0100, Cornelis de Gier wrote: > I'm looking for an answer to a similar question: > > years <- as.factor(sort(rep(1987:2006,20))) > values <- rnorm(1:400,0,10) > plot(years,values) > > results in 20 boxplots with x axis labels unreadable because there are > too many of

[R] Implementation of GMM

2008-02-29 Thread Horace Tso
Hi folks, Is there an implementation of generalized method of moments in R? I did do a help.search but found no hit. Site search found this gmm estimator function in the package sde but not sure what it is. Having browsed the codes in Finmetrics, I naively thought it won't be too hard to imple

Re: [R] Column sums from a data frame (without the headers)

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 12:02 -0500, Jason Horn wrote: > Does anyone know how to get a vector of column sum from a data frame? > You can use colSums(), but this gives you a object of type "numeric" > with the column labels in the first row, and the sums in the second > row. I just want a vect

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Cornelis de Gier
Well, actually, in Splus I had this problem. In R this problem seems to be solved. Does anyone have an idea how to solve this problem in Splus? Cornelis 2008/2/29, Cornelis de Gier <[EMAIL PROTECTED]>: > I'm looking for an answer to a similar question: > > years <- as.factor(sort(rep(1987:2006,2

Re: [R] [PS] Column sums from a data frame (without the headers)

2008-02-29 Thread Ben Fairbank
as.vector(col.Sums()) Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Horn Sent: Friday, February 29, 2008 11:03 AM To: [EMAIL PROTECTED] Subject: [PS] [R] Column sums from a data frame (without the headers) Does anyone know how to get a vecto

Re: [R] Column sums from a data frame (without the headers)

2008-02-29 Thread Erik Iverson
Jason - colSums does return an object of class "numeric", which is certainly a vector. The vector it returns happens to have names. If you want an unnamed vector of the sums, just set the names attribute to NULL. This will remove the names. However, you say you can't figure out how to index

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Cornelis de Gier
I'm looking for an answer to a similar question: years <- as.factor(sort(rep(1987:2006,20))) values <- rnorm(1:400,0,10) plot(years,values) results in 20 boxplots with x axis labels unreadable because there are too many of them. How do I reduce the number of x axis labels? Regards, Cornelis 2

Re: [R] Column sums from a data frame (without the headers)

2008-02-29 Thread Gabor Csardi
colSums gives you exactly what you want, but the vector is *named*. You can use it like a not-named numeric vector, without much trouble. If you still want to get rid of the names see ?unname G. On Fri, Feb 29, 2008 at 12:02:46PM -0500, Jason Horn wrote: > Does anyone know how to get a vector of

Re: [R] setwd on other computer?

2008-02-29 Thread Paul Hammer
Romain Francois schrieb: > Hi, > > This seems to work for me by either mapping a network drive on windows > or by using sshfs to mount a remote filesystem on my linux machine. I > suppose you would have some sort of side effect in terms of time. > > Cheers, > > Romain > > Paul Hammer wrote: >> hi

[R] Column sums from a data frame (without the headers)

2008-02-29 Thread Jason Horn
Does anyone know how to get a vector of column sum from a data frame? You can use colSums(), but this gives you a object of type "numeric" with the column labels in the first row, and the sums in the second row. I just want a vector of the sums, and I can't figure out a way to index the "

Re: [R] unbalanced one-way ANOVA

2008-02-29 Thread Douglas Bates
On Fri, Feb 29, 2008 at 10:32 AM, Nauta, A.L. <[EMAIL PROTECTED]> wrote: > I tried a 6-way anova, and indeed found out that changing the order of > factors influences the SS, F-ratio's and p-values. So what should I do if I > want to know which factor most strongly rejects H0? (H0 is the hypothese

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Thomas Adams
Frank, You don't need to use X11 for TeXShop; I use Lyx for the Mac as well — I don't use X11 or xdvi for either… Regards, Tom Frank E Harrell Jr wrote: > Several people have given great advice on how to successfully use X11 on > Mac to so we can use the dvi previewer to view latex() output f

Re: [R] setwd on other computer?

2008-02-29 Thread jim holtman
I can do it under Windows for network mounted files that are on some other system: e.g., setwd("p:/APPS") On 2/29/08, Paul Hammer <[EMAIL PROTECTED]> wrote: > hi members, > > is it possible to set the work directory ( e.g. via setwd() ) on a other > computer than R has been started? > > thanks >

[R] Optimization when only binary variables can be manipulated?

2008-02-29 Thread Ben Fairbank
I am trying to optimize in situations such as the following: Given 100 ability test items with such known item values as (1) difficulty, (2) correlation with criterion, (3) position in subject matter taxonomy, (4) illustrated/nonillustrated, (5) abstraction level, and (6) length, I seek to make

Re: [R] How to convert the "user coordinate system" in R graph to"normal coordinate system" whose origin is the upper-leftcornner of the drawing area?

2008-02-29 Thread Greg Snow
Look at the cnvrt.coords function in the TeachingDemos package. You should be able to use that function to transform from user coordinates to device coordinates (where 0 is left/bottom and 1 is right/top), then multiply the device coordinates by the resolution to get the pixel numbers. Hope thi

[R] setwd on other computer?

2008-02-29 Thread Paul Hammer
hi members, is it possible to set the work directory ( e.g. via setwd() ) on a other computer than R has been started? thanks paul __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

[R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Frank E Harrell Jr
Several people have given great advice on how to successfully use X11 on Mac to so we can use the dvi previewer to view latex() output from Hmisc. Now after a version upgrade of X11 and X11sdk we are getting lots of crashes. I noticed a Mac dvi previewer with an executable stored as /Applicat

Re: [R] help

2008-02-29 Thread Henrique Dallazuanna
See this: myLibrary <- file.path(path.expand('~'), 'library') install.packages('package', lib = myLibrary) library(package, lib = myLibrary) #or .libPaths(c(.libPaths(), myLibrary)) library(package) On 29/02/2008, Daoping Mo <[EMAIL PROTECTED]> wrote: > Dear Sir/Madam, > > I got some problem ab

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Jeffrey Horner
Tristan Casey wrote on 02/29/2008 03:37 AM: > Well that is certainly good news if write.csv output can be stored directly > to a character vector! > > I have tried to specify a vector within the file="" argument for example; > > write.csv(a,file="b") where b is a preexisting character vector >

Re: [R] GUI developement / Matlab

2008-02-29 Thread Don MacQueen
Information about *graphical* user interface efforts for R, assuming that's what you meant, can be found here: http://www.sciviews.org/_rgui/ -Don At 1:45 PM +0100 2/29/08, Antje wrote: >Hi there, > >I was wondering whether there are flexible packages available with which you >can create user

Re: [R] [R-SIG-Finance] EMM: how to make forecast using EMM methods?

2008-02-29 Thread Guy Yollin
Hi Michael, Yes, this is what I'm suggesting. Bear in mind, your model estimation process should have also resulted in volatility estimates for t-1, t-2, etc. Your simulation will require one or more of these terms as input (in addition to the random innovations) since your stochastic volatility

Re: [R] help

2008-02-29 Thread Henrique Dallazuanna
Corrected: dir.create(file.path(path.expand('~'), 'library')) myLibrary <- file.path(path.expand('~'), 'library') install.packages('package', lib = myLibrary) library(package, lib = myLibrary) #or .libPaths(c(.libPaths(), myLibrary)) library(package) On 29/02/2008, Henrique Dallazuanna <[EMAIL P

Re: [R] RSQLite error

2008-02-29 Thread Paul Hammer
Gavin Simpson schrieb: > Paul, > > Do you have the RSQLite package installed? > > In a clean R, what does > > require(RSQLite) > > return? > > If you don't have it installed, then install the package: > > install.package("RSQLite", dep = TRUE) > > If that proceeds correctly - you may need external

Re: [R] help

2008-02-29 Thread Charilaos Skiadas
Have a look at the documentation of ?.libPaths, it seems to me that setting the variable R_LIBS_USER is what you would want to do. Haris Skiadas Department of Mathematics and Computer Science Hanover College On Feb 29, 2008, at 10:14 AM, Daoping Mo wrote: > Dear Sir/Madam, > > I got some probl

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Charilaos Skiadas
The following worked for me (put together after reading ? textConnection). Put simply, all read/write command work with "connections", which are if you like "devices that know how to read or write things". textConnection creates such a device that writes (or reads if we used open="r") to/fro

Re: [R] RSQLite error

2008-02-29 Thread Gavin Simpson
Paul, Do you have the RSQLite package installed? In a clean R, what does require(RSQLite) return? If you don't have it installed, then install the package: install.package("RSQLite", dep = TRUE) If that proceeds correctly - you may need external libraries of headers for RSQLite to compile ag

Re: [R] data manipulation

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 15:01 +, Luis Ridao Cruz wrote: > R-help, > > I have a data frame in which I compute maximum by rows > and I wish to find out the column name at which this maximun occurs. > > Does anyone know how to do it? > > Thanks in advance Do you mean compute the maximum value in

[R] barplot and pca plot in mvpart

2008-02-29 Thread Shu Zhang
Hello, I'm using the R package called mvpart, which is about the multivariate regression trees. The function I wrote is: mrt1<- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv="pick", plot.add=TRUE,uniform=TRUE,which=4,all=TRUE,xadj=2,yadj=2,rsq=TRUE,big.pts=TRUE,wgt.ave.pca=TRUE,legend=TRUE,b

[R] help

2008-02-29 Thread Daoping Mo
Dear Sir/Madam, I got some problem about using R. I am a student, and need to use R a lot. But sometimes when I am working in computer lab, we can not install some particular pacakges by ourselves because of the previliges. Can the folder of Librabry of R, move to, for instance the personal folde

Re: [R] Replacing plot symbols w/ subject IDs in xyplot()

2008-02-29 Thread David Afshartous
For plot(): plot(x,y, type = "n") text(x,y, lab= junk.frm$ID) This accomplishes the goal of using subject IDs as plot symbols, but I can't seem to get the same result below w/ xyplot(). Is there something different I have to do for xyplot()? xyplot(y ~ x, type = "n") text(x,y , lab=junk.frm$ID

Re: [R] Hmisc xYplot won't do conditioning on factors?

2008-02-29 Thread Mark Difford
Hi Ivan, >> It appears that xYplot, unlike "standard" xyplot (or coplot to that >> matter) >> does not accept factors as x variable in formula. To add to what you have said. It may not be too well documented in ?xYplot, but xYplot() is really designed to do a number of very useful things with t

[R] RSQLite error

2008-02-29 Thread Paul Hammer
hi members, i try to load the package genefilter but i get always this error message: _R code:_ >library(genefilter) Error in dyn.load(file, ...) : unable to load shared library '/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so': /usr/local/lib64/R/library/RSQLite/libs/RSQLite.so: undefin

[R] data manipulation

2008-02-29 Thread Luis Ridao Cruz
R-help, I have a data frame in which I compute maximum by rows and I wish to find out the column name at which this maximun occurs. Does anyone know how to do it? Thanks in advance __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

[R] error with RSQLite

2008-02-29 Thread Paul Hammer
hi members, i try to load the package genefilter but i get always this error message: _R code:_ >library(genefilter) Error in dyn.load(file, ...) : unable to load shared library '/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so': /usr/local/lib64/R/library/RSQLite/libs/RSQLite.so: undefin

Re: [R] Graphic text

2008-02-29 Thread Neil Shephard
Hi Maura, I'm afraid that your message below only came to me, and wasn't copied to R-help. I'm useless at graphics in R, but I'd recommend posting exactly what R-code that your writing, this will show what plotting commands your using and the syntax, and will allow others to provide insightful co

Re: [R] Replace a list of values in data frame

2008-02-29 Thread Gabor Grothendieck
See ?recode in the car package. On Fri, Feb 29, 2008 at 8:50 AM, Silvia Lipski <[EMAIL PROTECTED]> wrote: > Dear R-users, > > I am sorry if I ask for something that has been asked > before, however, I still could not solve my little > problem by consulting the previous thread on this > topic: > >

Re: [R] unbalanced one-way ANOVA

2008-02-29 Thread Douglas Bates
On Fri, Feb 29, 2008 at 4:47 AM, Nauta, A.L. <[EMAIL PROTECTED]> wrote: > Thank you for your reply, > is your answer (that the approach does not depend on balance in the data) > only valid for one-way anova, or also for two-way or more-way anova? Any kind. You should be aware that for unbalanced

[R] bugs.seed= and summary.only= option in R2WinBUGS

2008-02-29 Thread He, Yulei
Dear R user: I am using R2WinBUGs to call WinBUGS from R. But I have some problems in using either the option bugs.seed and summary.only in the function bugs. Here are the programs and error messages. It appears that if I don't use either option, the program runs fine. I am using R2.5.1 and Win

[R] [R-pkgs] MiscPsycho 1.1 revised posted

2008-02-29 Thread Doran, Harold
A revised version of the MiscPsycho package has been uploaded to CRAN. The fixes include: 1) A bug found in the class.acc() function that resulted in overflow errors when computing probabilities associated with polytomously scored items has been resolved. The function now integrates over the poste

Re: [R] Replace a list of values in data frame

2008-02-29 Thread Henrique Dallazuanna
Try this: colorful$response <- factor(colorful$response) levels(colorful$response)[levels(colorful$response) %in% ToBeReplaced] <- Replacement On 29/02/2008, Silvia Lipski <[EMAIL PROTECTED]> wrote: > Dear R-users, > > I am sorry if I ask for something that has been asked > before, however, I s

Re: [R] Getting Keypressed State in rgl

2008-02-29 Thread Duncan Murdoch
On 2/29/2008 7:16 AM, Duncan Murdoch wrote: > Dieter Menne wrote: >> Dear Rglers, >> >> when using a callback in rgl (Windows, if it matters) >> >> http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html >> >> I would like to get the Asynchronous keyboard status (as least >> Shift/Control, b

[R] Replace a list of values in data frame

2008-02-29 Thread Silvia Lipski
Dear R-users, I am sorry if I ask for something that has been asked before, however, I still could not solve my little problem by consulting the previous thread on this topic: I would like to replace several values in a data frame, such as in: colorful subject response 1 meblack 2

Re: [R] How to read HUGE data sets?

2008-02-29 Thread Gabor Grothendieck
On Fri, Feb 29, 2008 at 8:27 AM, Liviu Andronic <[EMAIL PROTECTED]> wrote: > On 2/28/08, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > The sqldf package can read a subset of rows and columns (actually any > > sql operation) > > from a file larger than R can otherwise handle. It will automat

Re: [R] How to read HUGE data sets?

2008-02-29 Thread Liviu Andronic
On 2/28/08, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > The sqldf package can read a subset of rows and columns (actually any > sql operation) > from a file larger than R can otherwise handle. It will automatically > set up a temporary > SQLite database for you, load the file into the dat

[R] GUI developement / Matlab

2008-02-29 Thread Antje
Hi there, I was wondering whether there are flexible packages available with which you can create user interfaces? (I've read about "gWidgets"!?) For example in Matlab you can even create stand alone applications. Is it also possible for R in the same extend? Of course it should be platform inde

[R] Variable modified from within a function

2008-02-29 Thread Josselin Noirel
Dear all, I quickly checked on the internet and nothing relevant came up, so, I hope to find the answer to a question here. I'd pleased to be redirected towards relevant pieces of information on the internet, if I merely missed something obvious. Actually, I've got two somewhat related questions

  1   2   >