[R] apply and arrays

2005-07-24 Thread Laura Holt
Hi R! I have a 3 dimensional array, which is 21 x 3 x 3 I want to use apply to sum on each 21x3 matrix, which is fine. Is there a way that I can do this in 1 step instead of a loop (3), please? thanks, Laura Holt mailto: [EMAIL PROTECTED] __ R-help

[R] Off topic -2 Ln Lambda and Chi square

2005-07-11 Thread Laura Holt
Dear R : Sorry for the off topic question, but does anyone know the reference for the -2 Ln Lambda following a Chi Square distribution, please? Possibly one of Bartlett's? Thanks in advance! Sincerely, Laura Holt mailto: [EMAIL PROTECTED] __ R

[R] O/T -2 Log Lambda and Chi Square

2005-07-10 Thread Laura Holt
Hi R People: Sorry about the off topic question. Does anyone know the reference for "-2 Log Lambda is approx dist. Chi square", please? It may be Bartlett, but I'm not sure thanks in advance! Sincerely, Laura Holt mailto: [

[R] Main Title for multiple charts

2005-07-07 Thread Laura Holt
How would this be done, please? Thanks in advance! Laura Holt mailto: [EMAIL PROTECTED] _ Don’t just search. Find. Check out the new MSN Search! __ R-help@stat.math.ethz.ch mailing list https:/

Re: [R] where can i download the metrics package?

2005-06-29 Thread Laura Holt
There are several packages within rmetrics such as fSeries, fBasics, fExtremes, and so on. You can download those in the usual way. >From: Spencer Graves <[EMAIL PROTECTED]> >To: ronggui <[EMAIL PROTECTED]> >CC: R <[EMAIL PROTECTED]> >Subject: Re: [R] where can i download the metrics package? >

[R] question regarding new class

2005-05-31 Thread Laura Holt
Hi R people: I have created a new class for a project that I am working on. It works fine. Just one question, please: When I access the slots, is there any way that I could use x$Name instead on [EMAIL PROTECTED], please? Or is it that way by design, please? Thanks. Laura Holt

[R] Power set

2005-05-26 Thread Laura Holt
, Laura Holt mailto: [EMAIL PROTECTED] R Version 2.1.0 Windows __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Returning from a function

2005-05-23 Thread Laura Holt
as it should be, please? thanks again, Shamefacedly, Laura Holt R Version 2.1.0 Windows mailto: [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

[R] website reference for building R packages

2005-05-23 Thread Laura Holt
Sincerely, Laura Holt mailto: [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] lattice plots question

2005-05-18 Thread Laura Holt
Dear R People: Is there any way to have the background of lattice plots be white instead of grey, please? This is not a criticism by any means...the lattice stuff is UNbelievable! Thanks, Laura Holt mailto: [EMAIL PROTECTED] R Version 2.1.0 Windows

[R][S] Data sets from Chambers' green book?

2005-05-10 Thread Laura Holt
Dear R and S people: Yet another dorky question (YADQ), please: Where can I find the data sets from Chambers' green book, please? I've tried http://cm.bell-labs.com/stat/Sbook (web site, no data or even pointersfunctions and articles...good ones) http://cm.bell-labs.com/stat/project/icmanuf no

[R] Classes and methods

2005-05-03 Thread Laura Holt
Hi R people: I would like to learn about classes, methods, S3 and S4. Which book would be the most helpful for this info, please: the green one or the white(and blue) one? Or is there something that would be even better, please? Thanks in advance. Sincerely, Laura Holt mailto: [EMAIL PROTECTED

[R] Question about R initial message

2005-04-27 Thread Laura Holt
Dear R: First of all, nothing is wrong! I just had a question about the following" "Natural language support but running in an English locale" What does than mean, please? Thanks in Advance R 2.1.0 Windows Laura Holt mailto: [EMAIL PROTECTED] __

[R] Off topic excel question

2005-04-24 Thread Laura Holt
Does anyone know how to plot a time series in Excel, please? Sorry for the Bad off topic. thanks, Laura Holt mailto: [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] writing to an Excel file

2005-04-10 Thread Laura Holt
. Sincerely, Laura Holt mailto: [EMAIL PROTECTED] R Version 2.0.1 Windows __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] read.table with header and text data

2005-04-06 Thread Laura Holt
Hi R! I am reading in a text file which has one column of alpha data and 5 columns of numeric data. There is a header row. I would like the alpha data column to just be character rather than factor. Is there a way to do this, please? I'm thinking that it might be I() but can't figure out exactl

[R] number formatting

2005-02-28 Thread Laura Holt
Sincerely, Laura Holt mailto: [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] and [ESS] Starting ESS

2005-02-23 Thread Laura Holt
+ 6.2) Thanks so much! Sincerely, Laura Holt mailto: [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Off Topic: GSL installation for Windows

2004-11-18 Thread Laura Holt
Hi R People! Has anyone installed the Gnu Scientific Library on a Windows system, please? I'm having a dreadful time with that. Any advance would be much appreciated. Sincerely, Laura Holt mailto: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list

[R] changing character to a vector name

2004-11-16 Thread Laura Holt
3.df$CITIZEN along with another value to generate a table. However, I'm stuck here. I know this is incredibly stupid. Thanks in advance. Sincerely Laura Holt mailto: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/lis

[R] Changing zeros to NAs in a data frame

2004-11-16 Thread Laura Holt
lobal" way to do this, please? I was thinking about use the results from "str" but am not sure. R Version 2.0.0 Windows. Thanks in advance. Sincerely, Laura Holt mailto: [EMAIL PROTECTED] Security. http://clinic.mcafee.com/clinic/ibuy/c

[R][OT] Latex Integration question

2004-10-28 Thread Laura Holt
Thanks, Laura Holt mailto: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] nlm question

2004-10-11 Thread Laura Holt
erations [1] 8 I get the appropriate answer. What can I put into my code to improve the estimates, please? Thanks Sincerely, Laura Holt R Version 2.0.0 Windows mailto: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listi

[R] please ignore question about nlm

2004-10-10 Thread Laura Holt
sorry for the previous message an attack of the stupids. Thanks, Laura __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Puzzled on nlm

2004-10-10 Thread Laura Holt
1),a=c(0.8,0.5,1)) Error in nlm(mfun1, c(1, 1), a = c(0.8, 0.5, 1)) : invalid function value in 'nlm' optimizer I am stumped. I'm sure that it's something really small that I'm overlooking. Thanks in advance for any help. Since

[R] solution to outer question

2004-08-30 Thread Laura Holt
Hi again! "pmax" works instead of max. outer(x,y,function(x,y)12 - pmax(x,y)) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 11 109876543 2 1 [2,] 10 109876543 2 1 [3,]999876

[R] solution to outer question

2004-08-30 Thread Laura Holt
Hi again! "pmax" works instead of max. outer(x,y,function(x,y)12 - pmax(x,y)) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 11 109876543 2 1 [2,] 10 109876543 2 1 [3,]999876

[R] outer question

2004-08-30 Thread Laura Holt
ror in outer(x, y, function(x, y) 12 - max(x, y)) : dim<- : dims [product 121] do not match the length of object [1] Is there a better way to do this, please? I would like to avoid loops if possible. Thanks in advance. Sincerely, Laura Holt mailto: [EMAIL PROTECTED] R version 1.9.

[R] more on apply on data frame

2004-08-20 Thread Laura Holt
ave same length Any ideas of what I'm doing wrong, please? Thanks, Laura Holt mailto: [EMAIL PROTECTED] R Version 1.9.1 Windows __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

[R] apply and data frames

2004-08-20 Thread Laura Holt
Whoops! Just found it: by(iris[,1:4],Species,mean) Sorry for the inconvenience. Laura. Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the p

[R] apply on a data frame

2004-08-20 Thread Laura Holt
. 5.006 5.936 6.588 Sepal W. 3.428 2.770 2.974 Petal L. 1.462 4.260 5.552 Petal W. 0.246 1.326 2.026 Is there is similar way to obtain those values from the iris data frame, please? thanks in advance R Version 1.9.1 Windows. Sincerely, Laura Holt mailto: [EMAIL

[R] legends on the outside of the "box"

2004-08-19 Thread Laura Holt
side of the plot itself, perhaps in the lower left hand corner. I've been messing with mtext, but to no avail. Any help would be much appreciated. R Version 1.9.1 Windows Thanks, Laura Holt mailto: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list ht

[R] ROracle and vector elements

2004-08-19 Thread Laura Holt
Hi there! Is ROracle available for Windows, please? I found a download site, but it's really for UNIX/Linux. Here is a "thought question", please: Why do the vector elements start at location 1 rather than zero, as C does? Thanks in advance! R Version 1.9.1 Windows Sincerely, La

[R] Months on the horizontal axis

2004-08-16 Thread Laura Holt
Dear R People: Just in case anyone is interested, here is a particular solution to the months on the horizontal axis question: mon1 [1] "J" "F" "M" "A" "M" "J" "J" "A" "S" "O" "N" "D" mon2 <- rep(mon1,2) mon2 [1] "J" "F" "M" "A" "M" "J" "J" "A" "S" "O" "N" "D" "J" "F" "M" "A" "M" "J" "J" [20] "A

[R] ticks on the Time Axis

2004-08-16 Thread Laura Holt
, the ticks on the horizontal (time) axis are 2001.0, 2001.5, and so on. Is there a way to set up ticks such as J,F,M,A,M..by months, please? Thank you! Sincerely, Laura Holt mailto: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https

[R] str and Surv objects

2004-08-10 Thread Laura Holt
g? Thanks in advance. R Version 1.9.1 Windows Sincerely, Laura Holt mailto: [EMAIL PROTECTED] hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] hist and normal curve

2004-08-10 Thread Laura Holt
Hi R People: I have a data set and I want to use the hist command and produce a histogram. Then I want to superimpose a normal curve over the histogram. Is there a simple way to do this, please? R version 1.9.1 Windows. thanks in advance, Sincerely, Laura Holt mailto: [EMAIL PROTECTED] hthttp

[R] subsets in data frame

2004-07-13 Thread Laura Holt
maybe "apply" would be the answer but can't figure out how to break out by factor. Any suggestions would be most appreciated. Thanks yet again. R Version 1.9.1 for windows Sincerely, Laura Holt mailto: [EMAIL PROTECTED] your life. http://lifeevents.msn.com __

[R] question about seq.dates from chron vs. as.POSIXct

2004-07-07 Thread Laura Holt
ght GMT and converting to Central Standard Time. Is the best solution to: as.POSIXlt(xt, "CST") [1] "2004-01-01 CST" "2004-01-02 CST" "2004-01-03 CST" "2004-01-04 CST" [5] "2004-01-05 CST" Thanks in advance! Sincerely, Laura Holt

[R] What precision is R

2004-07-05 Thread Laura Holt
Hello R People: What precision is R, please? 64 bit? Where would I find that out typically, please? Thanks in advance! Sincerely, Laura Holt mailto: [EMAIL PROTECTED] FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/ __ [EMAIL PROTECTED

[R] [gently off topic] arima seasonal question

2004-07-01 Thread Laura Holt
, Laura Holt mailto: [EMAIL PROTECTED] download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/ __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

[R] abline and its objects

2004-06-29 Thread Laura Holt
Hi R People: Is there a way to put an abline line for its objects on a plot, please? I have an its object, ibm2, which runs from the January 2 through May 28. ibm2 ibm 2004-01-02 91.55 2004-01-05 93.05 2004-01-06 93.06 2004-01-07 92.78 2004-01-08 93.04 2004-01-09 91.21 2004-01-12

[R] removing NA from an its object

2004-06-29 Thread Laura Holt
Hi again! I have the following its object: class(x1) [1] "its" attr(,"package") [1] "its" x1 FTSE DAX 2004-06-07 4491.6 4017.81 2004-06-08 4504.8 4018.95 2004-06-09 4489.5 3997.76 2004-06-10 4486.1 4021.64 2004-06-11 4484.0 4014.56 2004-06-14 4433.2 3948.65 2004-06-15 4458.6 3987.30

[R] plotting with an its object

2004-06-28 Thread Laura Holt
Dear R People: I have an its object. The original its is the Dow Jones Industrial average from March 23, 1990 to March 23, 2000. I did the following; dj1 = original series dj2 <- log(dj1) ddj2 <- diff(dj2) Ok so far. Now I would like to plot this series with a certain y limit: min(ddj2) [1] -0.

[R] GARCH and forecasting

2004-06-23 Thread Laura Holt
Dear R People: Is there a way to forecast with GARCH modeling as found in tseries, please? When I use the predict command, I get an output of length 100, regardless of what I put in the n.ahead steps. R Version 1.9.0 Thanks in advance. Sincerely, Laura mailto: [EMAIL PROTECTED] download! http://t

[R] garch and prediction

2004-06-22 Thread Laura Holt
hanks, Laura Holt mailto: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] question about window and inserting value

2004-06-22 Thread Laura Holt
(2001,3)) <- 10 Error: couldn't find function "window<-" #Doesn't work Is there a good way to insert the value into the March 2001 location, please? other than: x.ts[15] <- 10 Thanks in advance! R Version 1.9.0 for Windows Sincerely, Laura

[R] question about latex command in Hmisc

2004-06-21 Thread Laura Holt
Hi R People: I got the following error from using the "latex" command from Hmisc; latex(bbm) 'latex' is not recognized as an internal or external command, operable program or batch file. Warning message: cmd execution failed with error code 1 in: shell(cmd, wait = TRUE, intern = output) I was pri

[R] time series object

2004-06-15 Thread Laura Holt
Hi R People: I have a monthly time series x.ts which runs from 1/1995 through 12/2003. x.ts <- ts(x,start=1995,freq=12) str(x.ts) Time-Series [1:108] from 1995 to 2004: -1.638 -0.236 0.830 -0.548 0.363 ... My question: is there a way to print the observations from 1/1999 to 6/1999, please? (ot

[R] question about Rcmd SHLIB

2004-06-11 Thread Laura Holt
Dear R People: I'm trying to use the Rcmd SHLIB to produce a dll. Rcmd SHLIB -o test2.dll test2.f make[1]: *** [libR.a] Error 255 make: *** [libR] Error 2 Where do I go to find out about the "make" errors, please? I suspect that I might be missing something. I have the tools for creating new pack

[R] AR models

2004-06-07 Thread Laura Holt
Dear R People: Is it possible to fit an AR model such as: y_t = fee_1 y_t-1 + fee_2 y_t-9 + a_t, please? I know that we can fit an AR(9) model, but I was wondering if we could do a partial as described. Thank you for your help. Sincerely, Laura Holt mailto: [EMAIL PROTECTED

[R] zipping a new package revisited

2004-05-30 Thread Laura Holt
In case you're wondering, here it is: Rcmd build --binary --use-zip packname Sorry that I didn't read the Writing R Extensions first. Sincerely, Laura __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read t

[R] zipping a new package

2004-05-30 Thread Laura Holt
Dear R People: I have finally created a little R package. Do I need to do anything special to create a zip file for that package, or just use Winzip, please? thanks so much R Windows Version 1.9.0 Thanks, Laura mailto: [EMAIL PROTECTED] __ [EMAIL PROTEC

[R] any simple examples for SJAVA please

2004-05-28 Thread Laura Holt
Hi! Are there any simple examples for SJAVA please? Thanks, Laura R Version 1.9.0 Windows _ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

[R] Building packages and Rcmd check

2004-05-28 Thread Laura Holt
Hello yet again! I'm trying to build a package. The Rcmd build works fine. But the Rcmd check produces an error because I don't have latex on my laptop. Any suggestions, please? R Windows 1.9.0 thanks again, Laura _ Learn to simplify

[R] orca binary?

2004-05-27 Thread Laura Holt
Dear R People: Is there a binary version for rorca, please? Thanks, Laura mailto: [EMAIL PROTECTED] R Windows 1.9.0 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-proj

[R] modes of objects

2004-05-27 Thread Laura Holt
Hi R People: I am looking for some objects: objects(pat="f") [1] "dufus" "f" "f1" "fake.df" "ff" "fm1" "one.df" "one1.df" "x.df""xf" mode(objects(pat="f")) [1] "character" I would like to determine the mode of these objects. For instance, dufus and f are functions, wh

[R] socketConnection and readLines

2004-05-27 Thread Laura Holt
Dear R People: I have tried the following code: con <- socketConnection(port=13, host="tick.usno.navy.mil") readLines(con) The socketConnection function works, but the readLines command just sits. This has happened on R for Windows 1.8.1 and 1.9.0 and R on LINUX 1.8.1 Any suggestions, please Thank

[R] SJava

2004-05-25 Thread Laura Holt
Hi again! I'm trying to download SJava from the http://www.omegahat.org/RSJava/ website. I'm trying to get the binary. I download the version from BDR's website. When I unzip the file via unzip.exe, the new folder appears as SJAVA (upper case). library(SJava) Error in library(SJava) : There is

[R] use of do.call and rep

2004-05-25 Thread Laura Holt
If I use this: rep(1:2,c(5,5)) I'll get 1 1 1 1 1 2 2 2 2 2 Is there a way to do this more efficiently, please? Maybe via do.call? Thanks, Laura mailto: [EMAIL PROTECTED] _ http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/