RE: [R] book recommendation

2004-03-25 Thread Ko-Kang Kevin Wang
for example. Kevin Ko-Kang Kevin Wang, MSc(Hon) Statistics Workshops Co-ordinator Student Learning Centre University of Auckland New Zealand __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

Re: [R] failure in simple calculation!!

2004-03-10 Thread Ko-Kang Kevin Wang
? Several things. 1) DELTA is not a data frame here. It is a list: mode(DELTA) 2) DELTA$delta is not a vector. It is a factor. For some reason when you generated DELTA, your delta has become a factor. Arithematic operations on factors are meaningless. HTH. Kevin

Re: [R] Identifying Multicollinearity in sparse datasets

2004-03-10 Thread Ko-Kang Kevin Wang
Hi, Take a look at the car package, there is a function called vif. HTH, Kevin - Original Message - From: Briggs, Meredith M [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 1:43 PM Subject: [R] Identifying Multicollinearity in sparse datasets Hello

RE: [R] Decision Trees

2004-03-09 Thread Ko-Kang Kevin Wang
Hi, -Original Message- WEKA includes a re-implementation of the ideas behind C4.5, but not C4.5. If my memory serves me right, WEKA people called this re-implementation J4.8. Kevin Ko-Kang Kevin Wang, MSc(Hon) Statistics Workshops Co

RE: [R] LME, where is the package?

2004-02-28 Thread Ko-Kang Kevin Wang
and installed the file lme4 from Crane, is this the same as lme? the problem is R still print no function named lme, how should I do. I believe you are looking for nlme package. Try to load it. Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats

RE: [R] a loop question

2004-02-27 Thread Ko-Kang Kevin Wang
haven't tried it) something like: jpeg(paste(test., i, .gif, sep = ) Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand Ko-Kang Kevin Wang, MSc(Hon) SLC Stats

[R] Collapsing Categorical Variables

2004-02-26 Thread Ko-Kang Kevin Wang
] == PRUDHOE LANE || STREET[i] == VIRGIL PL || STREET[i] == WILMOT ST ) st[i] - Other else st[i] - STREET[i] } But I'm sure there is a better way Kevin Ko-Kang Kevin Wang, MSc(Hon) Statistics Workshops Co-ordinator Student Learning

RE: [R] (2) Questions

2004-02-23 Thread Ko-Kang Kevin Wang
have to pay for it -- of course, donations are welcome by the R Foundation ;D. Kevin Ko-Kang Kevin Wang, MSc(Hon) Statistics Workshops Co-ordinator Student Learning Centre University of Auckland New Zealand

RE: [R] R won't start

2004-02-19 Thread Ko-Kang Kevin Wang
you click? Is it Rgui or Rterm (you should double click on Rgui) Kevin Ko-Kang Kevin Wang, MSc(Hon) Statistics Workshops Co-ordinator Student Learning Centre University of Auckland New Zealand __ [EMAIL

RE: [R] How to write efficient R code

2004-02-17 Thread Ko-Kang Kevin Wang
be to use the apply() function on a data frame instead using a loop. Avoid loops if you can. Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand __ [EMAIL

RE: [R] problem for installing package

2004-02-16 Thread Ko-Kang Kevin Wang
downloading them what is the step for implementing them in my library? Which operating system are you running R on? Reading the manuals might be a good start. Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University

RE: [R] plot

2004-02-16 Thread Ko-Kang Kevin Wang
continuous variables and you want to draw a scatter plot, one way to do it is to use plot(). For example: plot(x, y) Take a loot at ?plot to find out how to use it. Kevin Ko-Kang Kevin Wang, MSc(Hon) Statistics Workshops Co-ordinator Student Learning Centre

RE: [R] plot

2004-02-16 Thread Ko-Kang Kevin Wang
-Original Message- From: Justin Xi ZHU [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 2:30 PM To: Ko-Kang Kevin Wang Subject: RE: [R] plot Hi, Thanks for your email. Result 1: 23, 234, 45, 39 corresponding to Q1, Q2, Q3 and Q4. Result 2: 123, 34, 454, 45

RE: [R] Basic Help

2004-02-12 Thread Ko-Kang Kevin Wang
of my incomplete book, http://www.stat.auckland.ac.nz/~kwan022/pub/R/RBook/, has a short explanation about data structure in R. The chapter has sort of been complete (it's in the draft version) HTH, Kevin Wang Ko-Kang Kevin Wang, MSc(Hon

RE: [R] PhD student reading list, suggestions wanted

2004-02-09 Thread Ko-Kang Kevin Wang
place to go. And finally, there is google;-D. HTH, Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand __ [EMAIL PROTECTED] mailing list https

Re: [R] Printting 'for' and 'while' indices

2004-02-09 Thread Ko-Kang Kevin Wang
Quoting Marcos Sanches [EMAIL PROTECTED]: I mean, I want something like this: i-0 While(i100){ do a lot of commands print i i-i+1 } How do I print the i at each step? Is print(i) what you want? Cheers, Kevin Ko-Kang

RE: [R] PhD student reading list, suggestions wanted

2004-02-08 Thread Ko-Kang Kevin Wang
mining? Not specifically for R, but a must-have for anyone going into data mining area is The Elements of Statistical Learning: Data Mining, Inference, and Prediction, by Hastie et. al. Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co

RE: [R] I am totally lost on how to install R . . .

2004-02-05 Thread Ko-Kang Kevin Wang
meant the R for Windows FAQ, in which case, the section before How do I install R for Windows tells you where to get it! Take a look at http://cran.r-project.org/bin/windows/rw-FAQ.html#Where%20can%20I%20find%20 the%20latest%20version%3f HTH Kevin Ko

RE: [R] please help me!

2004-01-29 Thread Ko-Kang Kevin Wang
put your codes here. But I'm guessing it is because you typed something like: foo = read.table(C:\MikeWeather2.txt) Try to use C:/MikeWeather2.txt or C:\\MikeWeather2.txt. HTH. Kevin Ko-Kang Kevin Wang, MSc(Hon) Statistics Workshops Co-ordinator

[R] Julian Dates

2003-12-15 Thread Ko-Kang Kevin Wang
not sure why I got decimals from the 7th value, as my input vector does not have any specific times after the dates. Any insights would be greatly appreciated...;-D -- Cheers, Kevin --- Try not. Do, do! Or do not. There is no try

Re: [R] Julian Dates

2003-12-15 Thread Ko-Kang Kevin Wang
(TIMESOLD,TIMESOLD2) -- Cheers, Kevin --- Try not. Do, do! Or do not. There is no try Jedi Master Yoda Ko-Kang Kevin Wang, MSc SLC STATS 10x Workshop Coordinator University of Auckland New Zealand Homepage: http

RE: [R] strptime Usage

2003-11-30 Thread Ko-Kang Kevin Wang
.: 1999-1 1999-2 1999-3 1999-4 is it possible to do with strptime? Or do I have to do something creative? ;-D -- Cheers, Kevin --- Try not. Do, do! Or do not. There is no try Jedi Master Yoda Ko-Kang Kevin Wang Master

[R] strptime Usage

2003-11-25 Thread Ko-Kang Kevin Wang
NA NA NA NA It is totally messed up. I'd really appreciate if anyone can point out where I did wrong *_*! Many thanks in advance. -- Cheers, Kevin --- Try not. Do, do! Or do

Re: [R] read.table(..)..Help?

2003-11-20 Thread Ko-Kang Kevin Wang
My problem is: I do not know the command / or parameter I need to read the rows and process the stored information one after the other. read.table() should know how to read each rows, can you provide an subset of your data? -- Cheers, Kevin

Re: [R] reading data rows

2003-11-20 Thread Ko-Kang Kevin Wang
not of opposite sign) What kind of mathematical calculations were you trying to do when you got this error message? As discussed off-list last night, since you want to operate on each row using the same operation, have you tried using apply()? -- Cheers, Kevin

Re: [R] Program Saving

2003-11-13 Thread Ko-Kang Kevin Wang
Ligges, for WinEdt). Both allows direct communication from the editor to R HTH. -- Cheers, Kevin --- Try not. Do, do! Or do not. There is no try Jedi Master Yoda Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor

Re: [R] Two Y-axises and One X-axis

2003-11-07 Thread Ko-Kang Kevin Wang
) # x-axis at the bottom axis(2) # y-axis on the left axis(4) # y-axis on the right -- Cheers, Kevin --- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University

Re: [R] y label after axis (4)

2003-11-07 Thread Ko-Kang Kevin Wang
/2.205, lab = Wt.lbs, srt = 90) mtext(Weight (lb), side = 4, line = 3) par(oldpar) # restore settings detach() Note that you can also get the above codes from $R_HOME/library/MASS/scripts/ch08.R. -- Cheers, Kevin --- Ko-Kang

Re: [R] interfacing C into R and R packages

2003-11-04 Thread Ko-Kang Kevin Wang
://www.stat.math.ethz.ch/mailman/listinfo/r-help -- Cheers, Kevin --- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz

Re: [R] Complete Newbie Q

2003-10-26 Thread Ko-Kang Kevin Wang
little or no experience with R. The current ideas are at http://www.stat.auckland.ac.nz/~kwan022/pub/R/RBook/ . We are planning on finishing it by Feb/March 2004 -- which may be too late for you. Once it is finished we will submit it to CRAN. -- Cheers, Kevin

Re: [R] Variance-covariance matrix for beta hat and b hat from lme

2003-10-25 Thread Haifeng \(Kevin\) Xie
of Westminster London, UK - Original Message - From: Douglas Bates [EMAIL PROTECTED] To: Haifeng (Kevin) Xie [EMAIL PROTECTED] Cc: R-help mailing list [EMAIL PROTECTED] Sent: Thursday, October 23, 2003 5:50 PM Subject: Re: [R] Variance-covariance matrix for beta hat and b hat from lme Haifeng

[R] Variance-covariance matrix for beta hat and b hat from lme

2003-10-23 Thread Haifeng \(Kevin\) Xie
suggestions will be particularly welcome. Many thanks. Kevin Xie Research Student University of Westminster London, UK __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] questions about axis

2003-10-22 Thread Ko-Kang Kevin Wang
= This is my x-label, line = -2) Of course, this is just a silly example, with 50 uniform random numbers between -0.2 and 0.2. But you get the idea... -- Cheers, Kevin --- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor

Re: [R] comments and Sweave

2003-10-22 Thread Ko-Kang Kevin Wang
(CDT) From: Giovanni Petris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [R] comments and Sweave I am using Sweave to produce handouts for teaching. Is there a way of making Sweave keep the comments following the `#' in the code chuncks? Thanks, Giovanni -- Cheers, Kevin

Re: [R] interactive prompts

2003-10-20 Thread Ko-Kang Kevin Wang
) system(read) par(ask = TRUE) will do what you want. -- Cheers, Kevin --- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http

Re: [R] interactive prompts

2003-10-20 Thread Ko-Kang Kevin Wang
On Tue, 21 Oct 2003, Ko-Kang Kevin Wang wrote: On Tue, 21 Oct 2003, Ernie Adorio wrote: Am using R on a Linux box and am currently writing an interactive R script. 1. How do I ask a user to press any key to continue ? I used a system call to read but this only works if the Enter key

Re: [R] Managing memory on R

2003-10-16 Thread Ko-Kang Kevin Wang
to upgrade your R version first? R 1.3.1 is kind of old now.. -- Cheers, Kevin --- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http

Re: [R] r editors

2003-10-02 Thread Ko-Kang Kevin Wang
wrong or is there a better editor(freeware) which I could get. If you are really programming in R, you really should get Emacs/ESS -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament

Re: [R] (no subject)

2003-10-02 Thread Ko-Kang Kevin Wang
has happened when you typed plot(x, y)? Have you created two vectors called x and y? Were they any error messages, if so what are the messages? -- Cheers, Kevin -- On two occasions, I have been asked [by members

Re: [R] truncating axis

2003-10-01 Thread Ko-Kang Kevin Wang
On 1 Oct 2003, Diego Riano wrote: Does anyone know how to truncate and axis in R? What do you mean by truncate? Do you mean to change the range of the axes? If so then something like plot(x, xlim = range(), ylim = range()) should do (just put the desired range -- Cheers, Kevin

Re: [R] xgobi vs ggobi

2003-09-22 Thread Ko-Kang Kevin Wang
and the developers are now concentrating on GGobi? I could be wrong though... The other thing, I think, is that GGobi supports XML data format and XGobi doesn't (or not very well?). -- Cheers, Kevin -- On two occasions, I

RE: [R] CART analysis

2003-09-17 Thread Ko-Kang Kevin Wang
/mailman/listinfo/r-help -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able

Re: [R] Sorting

2003-09-11 Thread Ko-Kang Kevin Wang
to re-order my columns? ?order or ?sort -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I

Re: [R] Computing a CDF or many quantiles

2003-09-10 Thread Kevin S. Van Horn
Your method looks like a naive reimplementation of integration, and won't work so well for distributions that have the great majority of the probability mass concentrated in a small fraction of the sample space. I was hoping for something that would retain the adaptability of integrate().

[R] Computing a CDF or many quantiles

2003-09-09 Thread Kevin S. Van Horn
Given f, a pdf over a finite interval, is there any existing R function that can efficiently tabulate the cumulative distribution function for f, or produce all N+1 quantiles of the form i/N? Efficiently here means better than doing repeated integrations for each point.

Re: [R] subtract 2 columns in a data.frame

2003-09-04 Thread Ko-Kang Kevin Wang
the second: foo[,1] - foo[,2] -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am

Re: [R] documents for writing functions

2003-09-04 Thread Ko-Kang Kevin Wang
experience you already have. I'm giving a small workshop next week on these areas and my notes are available at http://www.stat.auckland.ac.nz/~kwan022/rinfo.php I'm planning on extend the notes into a book I'm writing -- which will be submitted to CRAN when it is completed. -- Cheers, Kevin

Re: [R] Re: diamond graphs and patents

2003-08-28 Thread Ko-Kang Kevin Wang
of Excel was released? I cannot keep myself from wondering why Excel still produces ugly graphs. -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put

Re: [R] selecting by variable

2003-08-27 Thread Ko-Kang Kevin Wang
only for those individuals that also have a value Y in a certain range? e.g. x = rnorm(100) y = 1:100 x[y = 20:50] will give you the value of x when y is between 20 and 50. To do a histogram, type: ?hist -- Cheers, Kevin

Re: [R] R tools for large files

2003-08-25 Thread Ko-Kang Kevin Wang
a data frame by selecting all cases whose line numbers are in a supplied vector (which could be used to extract random subfiles of particular sizes) Does anyone know of a package that might be useful for this? Murray -- Cheers, Kevin

Re: [R] Neural Networks in R

2003-08-20 Thread Ko-Kang Kevin Wang
with neural networks in R or if you could tell us were we can find such information. We would highly appreciate if you could help us on that matter. Thank you very much in advance. Best regards, Anne Bruns, Miriam Dreißig, Sascha Hartung -- Cheers, Kevin

Re: [R] How to reinstall rpart?

2003-08-15 Thread Ko-Kang Kevin Wang
, although print(my.tree) does work. So have you *read* the help when you do ?plot.rpart ? Please read the example, and see how it is used. Hint: you do not use plot.rpart(), but plot() -- Cheers, Kevin -- On two

Re: [R] problems with lda , data included, can somebody test withthe new version

2003-08-14 Thread Ko-Kang Kevin Wang
Coefficients of linear discriminants: LD1 diagonal.moment-1.575854e-03 cluster.shade -1.209398e-04 histogram.kurtosis -2.028278e+02 -- Cheers, Kevin -- On two occasions, I have been asked

Re: [R] Princomp function in R

2003-08-14 Thread Ko-Kang Kevin Wang
find function princomp , can you help me resolve this problem? Thanks, Jixin Dai, Ph.D __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- Cheers, Kevin

Re: [R] default directory RGui for windows NT

2003-08-14 Thread Ko-Kang Kevin Wang
(or something like that, I'm using Chinese Windows and I'm translating the words). 2) In Rgui, File - Change dir... -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage

Re: [R] Books for R

2003-08-14 Thread Ko-Kang Kevin Wang
. It has a chapter on non-linear regression and smooth regression, using packages like nls. -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put

Re: [R] Crosstabs

2003-08-14 Thread Ko-Kang Kevin Wang
be going. than i want make a crosstables with the first and the second variable. I'm not sure what SPSS does as I have never used it. But is the CrossTable() function in the gregmisc library what you want? -- Cheers, Kevin

Re: [R] Memory-problem?

2003-08-11 Thread Ko-Kang Kevin Wang
). In every loop the object stat is used. This error could not be the real problem I think. I don't think it is a memory problem. From your error message, the object stat cannot be found. Have you initialised stat before the loop? -- Cheers, Kevin

Re: [R] how to make a plot without any axis-labeling

2003-08-03 Thread Ko-Kang Kevin Wang
]] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine

[R] Number of components in a mixture model

2003-07-30 Thread kevin xie
a Q-Q plot to informally assess GOF. I was wondering if there are some more formal statistical tests for this purpose. I appologise for asking questions that are slightly out-of-topic. Many thanks. Kevin __ [EMAIL PROTECTED] mailing list https

Re: [R] .ps files in R

2003-07-23 Thread Ko-Kang Kevin Wang
, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind

Re: [R] Boosting, bagging and bumping. Questions about R tools andpredictions.

2003-07-22 Thread Ko-Kang Kevin Wang
prediction. Can anybody point me to a citation or discussion? -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right

Re: [R] Rpart question - labeling nodes with something not in x$frame

2003-07-17 Thread Ko-Kang Kevin Wang
#v: virginica ir - iris[, -5] Species - rep(c(s, c, v), rep(50, 3)) ir - as.data.frame(cbind(ir, Species)) ir.rp - rpart(Species ~ ., data = ir) plot(ir.rp) text(ir.rp) This is probably the long/silly way, but it works ;-D -- Cheers, Kevin

Re: [R] how to handle missing values

2003-07-16 Thread Ko-Kang Kevin Wang
ignored in the analysis. So far I have not been able to figure out how to deal with missing values in R and have solved the problem by deleting observations with missing values before loading them into R. Can anyone give me a hint on how to do this in a simpler way? -- Cheers, Kevin

[R] Multipanel weighted regression lines.

2003-07-14 Thread Kevin Brown
not know how to change this plot.regression function to do that. plot.regression = function(x,y) { panel.xyplot(x,y) panel.abline(lm(y~x)) } xyplot(yg~xg | g, panel=plot.regression) Any help would be great! Thanks, Kevin Brown. __ [EMAIL PROTECTED] mailing

[R] Looking for graphics/par cheat sheet

2003-07-03 Thread Kevin Wright
 parameters than a text description. Kevin Wright __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] user mannual

2003-07-02 Thread Ko-Kang Kevin Wang
it is an obvious place to start looking? awaiting a prompt reply The helpers on the list usually respond within 24 hours, but it may not be a prompt reply. -- Cheers, Kevin -- On two occasions, I have been asked [by members

Re: [R] lines and legend

2003-07-01 Thread Ko-Kang Kevin Wang
__ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr

Re: [R] Pairs with different colours

2003-06-24 Thread Ko-Kang Kevin Wang
of different colours depending on the value of a categorical variable ? -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures

Re: Building R Packages (was: [R] (no subject)

2003-06-17 Thread Ko-Kang Kevin Wang
? Thanx a ton! Mark [[alternate HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- Cheers, Kevin

Re: [R] install pls.pcr package

2003-06-17 Thread Ko-Kang Kevin Wang
, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind

Re: [R] Problem with Rcmd SHLIB

2003-06-13 Thread Ko-Kang Kevin Wang
ahead and tried to install Perl (from the suggested website in readme.packages) but the installer told me i already had Perl installed! By the way, Rcmd COMPILE somefile.f gives the same error message. -- Cheers, Kevin

Re: [R] Factorial function in R?

2003-06-12 Thread Ko-Kang Kevin Wang
-help -- Cheers, Kevin -- On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend

Re: [R] Basic question on applying a function to each row of adataframe

2003-06-08 Thread Ko-Kang Kevin Wang
w, as follows : x w 1 1 1 2 2 1 3 3 1 4 4 1 etc I would like to apply the function foo to each 'pair' within DF e.g foo(1,1), foo(2,1), foo(3,1) etc I have tried apply(DF,foo) apply(DF[,],foo) apply(DF[DF$x,DF$w],foo) -- Cheers, Kevin

[R] Extracting Numbers from MANOVA output

2003-06-07 Thread Ko-Kang Kevin Wang
`.' 0.1 ` ' 1 My understanding is the MANOVA summary returns a list. However I am not sure how to extract out only part of the list. For example is I want to extract the Pillai's test statistic, 0.5267, how can I do this? -- Cheers, Kevin

Re: [R] Downloading packages from CRAN

2003-05-31 Thread Ko-Kang Kevin Wang
for ... in specified packages and libraries... Provided you installed the package(s) properly, have you loaded it before calling the documentation? Using the car package example: library(car) ?box.cox seem to work fine. -- Cheers, Kevin

Re: [R] re: question on R

2003-04-14 Thread Ko-Kang Kevin Wang
forward to your early reply. -- Cheers, Kevin -- /* Time is the greatest teacher, unfortunately it kills its students */ -- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department

[R] Sampling from a Data Frame

2003-04-04 Thread Ko-Kang Kevin Wang
Hi, I've been looking through the documentation for sample(), but can only get it to work with vectors. Is it possible to sample from a dataframe? -- Cheers, Kevin -- /* Time is the greatest teacher, unfortunately

[R] Does R have an inverse wishart distribution?

2003-03-31 Thread Kevin Karty
If so, I've had trouble finding it. Can anyone help? __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] How to list functions in a library?

2003-03-31 Thread Ko-Kang Kevin Wang
to refer to library documents (often not readily available ) to find them. Many thanks in advance. -- Cheers, Kevin -- /* Time is the greatest teacher, unfortunately it kills its students */ -- Ko-Kang Kevin Wang

[R] ifelse()

2003-03-26 Thread Ko-Kang Kevin Wang
-levels? For example: if(x = 3) then 1 elseif(3 x = 4) then 2 elseif(x 4) then 3 -- Cheers, Kevin -- /* Time is the greatest teacher, unfortunately it kills its students */ -- Ko-Kang Kevin Wang Master of Science

[R] Re: ifelse()

2003-03-26 Thread Ko-Kang Kevin Wang
Hi, I've found a much better solution than using ifelse(). I found about cut() from MASS4 Page 383, which actually does a better job . On Wed, 26 Mar 2003, Ko-Kang Kevin Wang wrote: Date: Wed, 26 Mar 2003 23:20:04 +1200 (NZST) From: Ko-Kang Kevin Wang [EMAIL PROTECTED] To: R Help [EMAIL

Re: [R] rsync

2003-03-21 Thread Ko-Kang Kevin Wang
. Anybody has any experience with rsync on windows? Kjetil __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- Cheers, Kevin

Re: [R] xgobi?

2003-03-17 Thread Ko-Kang Kevin Wang
are welcome to direct further questions about ggobi and Rggobi to [EMAIL PROTECTED] Debby __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- Cheers, Kevin

Re: [R] Package installation when $RHOME is not writable (win)

2003-03-17 Thread Ko-Kang Kevin Wang
-- Cheers, Kevin -- /* Time is the greatest teacher, unfortunately it kills its students */ -- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New

Re: [R] xgobi?

2003-03-16 Thread Ko-Kang Kevin Wang
) on your machine in order to use it. Cheers, K Wang Ko-Kang Kevin Wang Master of Science (MSc) Student Department of Statistics University of Auckland New Zealand www.stat.auckland.ac.nz/~kwan022 __ [EMAIL

Re: [R] How to collect the Rtools to build packages

2003-03-12 Thread Ko-Kang Kevin Wang
packages, but the internet portal http://www.stats.ox.ac.uk/pub/Rtools/ hasn't been working since a few days. Where can I get the file tools.zip? It has been working for me! I went there two days ago, and a few hours ago, and just went again. All the time I can view the page fine. Cheers, Kevin

Re: [R] saving a plot to a file

2003-03-03 Thread Ko-Kang Kevin Wang
, take a look at: ?png Cheers, Kevin Ko-Kang Kevin Wang Master of Science (MSc) Student Department of Statistics University of Auckland New Zealand www.stat.auckland.ac.nz/~kwan022 __ [EMAIL PROTECTED

Re: [R] exact range of axes in plots

2003-02-24 Thread Ko-Kang Kevin Wang
it was (send plot :range 0). Thanks much, Is xlim and ylim in the plot() what you want? For example: x - rnorm(100) plot(x) plot(x, xlim = c(20, 80), ylim = c(-2, 2)) the second plot() will restrict the range of x-axis to be between 20 and 80, y-axis between -2, 2. Cheers, Kevin

[R] Why does 'exists' need a quoted argument?

2003-02-20 Thread Wright, Kevin
at this: is.function(?) Error: syntax error is.function(?) [1] FALSE I grow used to not quoting things and then stumble over 'exists' from time to time. Looking forward to clarity or maybe a request for change. Kevin Wright This communication is for use by the intended recipient and cont

Re: [R] factorial function

2003-02-14 Thread Ko-Kang Kevin Wang
, Kevin Ko-Kang Kevin Wang Master of Science (MSc) Student Department of Statistics University of Auckland New Zealand www.stat.auckland.ac.nz/~kwan022 __ [EMAIL PROTECTED] mailing list http

Re: [R] basic question

2003-02-04 Thread Ko-Kang Kevin Wang
/rinfo.php (Section 5). I'm not sure the exact contents in the labdsv_0.9-1.tar.gz , but in general you can first unpack it with, e.g.: tar zxvf labdsv_0.9-1.tar.gz then you may need: Rcmd labdsv_0.9-1 Hope this helps, Kevin Ko-Kang Kevin Wang

Re: [R] Regarding Installation of R

2003-01-30 Thread Ko-Kang Kevin Wang
. Please let know an alternative for getting the software. Which set up binary did you downloaded? It should not be corrupted. Did you download the rw1062.exe in, for example, http://cran.r-project.org/bin/windows/base ? Ko-Kang Kevin Wang Master

Re: [R] how could I add legends?

2003-01-26 Thread Ko-Kang Kevin Wang
distribution. Could someone help me? Thanks, Have a look at ?legend Kevin Ko-Kang Kevin Wang Master of Science (MSc) Student Department of Statistics University of Auckland New Zealand www.stat.auckland.ac.nz/~kwan022

Re: [R] Getting graphs into LaTeX

2002-12-19 Thread Ko-Kang Kevin Wang
lecture00-graph-01.eps in the directory, with a postscript Viewer? The last point, I think pdflatex (or pdftex) does not accept PS/EPS formatted picture. Can you latex trix.tex? If so, try to save your histogram as a PDF or PNG file, then pdflatex it again. Cheers, Kevin

<    1   2   3