Re: [R] R and LaTeX

2006-12-09 Thread Ko-Kang Kevin Wang
such processes. Does anyone out there use LaTeX and can point me in the right direction? Thanks David -- Ko-Kang Kevin Wang Ph (H): +61-2-612 57471 Ph (M): +61-40-4518301 http://wwwmaths.anu.edu.au/~wangk/personal/ __ R-help@stat.math.ethz.ch

Re: [R] there is no xls reader in R?

2006-04-20 Thread Ko-Kang Kevin Wang
]] __ 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 -- Ko-Kang Kevin Wang Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125

Re: [R] simple question

2005-10-22 Thread Ko-Kang Kevin Wang
na.omit() HTH, Kevin -- Ko-Kang Kevin Wang PhD Student Centre for Bioinformation Science Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 2601 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2

Re: [R] Binary Logit Regression with R

2005-09-29 Thread Ko-Kang Kevin Wang
Hi, Johann Park wrote: Let say, my Y is war occurence (occur=1, otherwise 0). And my independent variables (Xs) are trade, democracy, military poweretc. Take a look at ?glm. HTH, Kev -- Ko-Kang Kevin Wang PhD Student Centre for Bioinformation Science Building 27, Room 1004

Re: [R] graphics guide?

2005-09-27 Thread Ko-Kang Kevin Wang
plot.new() before every new plot command, I have however not found any Do you mean several graphs in the same window? If so, you want something like, e.g.: par(mfrow = c(2, 2)) Take a look at ?par and the mfrow or mfcol options. Cheers and HTH, Kev -- Ko-Kang Kevin Wang PhD Student Centre

Re: [R] TeX distribution on Windows

2005-09-05 Thread Ko-Kang Kevin Wang
for years and have never had any problems. Its Update Wizard also has a nice and intuitive user interface. I've never had any problems using it with R. Cheers, Kev -- Ko-Kang Kevin Wang PhD Student Centre for Bioinformation Science Building 27, Room 1004 Mathematical Sciences Institute (MSI

Re: [R] TeX distribution on Windows

2005-09-05 Thread Ko-Kang Kevin Wang
/~dethlef/Tips/ Cheers, Kev -- Ko-Kang Kevin Wang PhD Student Centre for Bioinformation Science Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 2601 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2

Re: [R] R: regression data set

2005-08-02 Thread Kevin Wang
a regression problem. If you want some textbook examples I'd recommend Ripley and Venables's Modern Applied Statistics With S (VR bundle); Maindonald and Braun's Data Analysis and Graphics using R (DAAG package) Cheers, Kev -- Ko-Kang Kevin Wang PhD Student Centre for Bioinformation Science

Re: [R] Finding out collinearity in regression

2005-06-29 Thread Kevin Wang
in design matrix but I can't because I cannot create fit in the first place. The error message actually looks like you have got (at least) a variable that only has 1 level, e.g. a factor with only one level. Cheers, Kev -- Ko-Kang Kevin Wang PhD Student Centre for Bioinformation Science

Re: [R] emacs

2005-06-01 Thread Kevin Wang
the posting guide! http://www.R-project.org/posting-guide.html -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk

Re: [R] Reference Card?

2005-05-30 Thread Kevin Wang
__ 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 -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004

Re: [R] read.spss trouble

2005-05-28 Thread Kevin Wang
: couldn't find function read.spss. Can anyone tell me what's going wrong? It's in the package foreign. Try: library(foreign) HTH, Kevin -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian

Re: [R] Barplot - Can't figure it out

2005-02-17 Thread Kevin Wang
), beside=T) Have you tried barplot(), instead of boxplot()??? Cheers, Kev -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http

Re: [R] (no subject)

2005-01-12 Thread Kevin Wang
Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2-6125-7407 Ph (M

Re: [R] classification using logistic regression

2004-12-27 Thread Kevin Wang
like forward selection? If so, try step() HTH, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http

Re: [R] SAS or R software

2004-11-20 Thread Kevin Wang
Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431

[R] Finding out the number of times a loop has run

2004-11-04 Thread Kevin Wang
is completed. But if I want to print out i whenever it re-enters the loop, is it possible (so I know how many times the loop has been run)? Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical

Re: [R] Finding out the number of times a loop has run

2004-11-04 Thread Kevin Wang
Hi, On Thu, 4 Nov 2004, Peter Dalgaard wrote: Kevin, you must have seen this on the list before! Either use flush.console() or turn off the output buffering (Windows FAQ 6.3). Whoopsssorry, I must be tiredneed another cup of coffee. Kev Ko-Kang Kevin

Re: [R] library gregmisc

2004-10-25 Thread Kevin Wang
, today there is no possibility to download it. What do you mean R doesn't install the bundle? How did you try to install it? Kev Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute

Re: [R] A question in R

2004-10-12 Thread Kevin Wang
(tricky but more convinient in the long run) is to use the read.xls() function from gregmisc bundle. Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian

Re: [R] Re:How to create a R -application

2004-10-07 Thread Kevin Wang
will allow you to compile such simulation and will decrease the running time a lot...but I'm not sure when it will be released. Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences

Re: [R] Excluding data in R

2004-10-03 Thread Kevin Wang
, then something like: foo.df[-5, ] will exclude it. Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia

Re: [R] Retrieving objects from functions...

2004-09-30 Thread Kevin Wang
:10, nrow = 5, ncol = 2) } to force goo to become a global variable, instead of a local variable to foo(). HTH, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI

Re: [R] (no subject)

2004-09-28 Thread Kevin Wang
at Writing R Extensions? HTH, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au

Re: [R] multinomial logistic regression

2004-09-22 Thread Kevin Wang
array chip wrote: I think glm() can only handle binary response variable, That's not true, have you looked at ?glm and ?family ? HTH, Kevin -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian

[R] Using eval() more efficiently?

2004-09-19 Thread Kevin Wang
about how I can then use the information in names.select into my one.glm2...*_*. Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University

Re: [R] Newbie q. need some help understanding this code.

2004-09-15 Thread Kevin Wang
(tvec,xmat[,2])) } Put things together into a list. Again, check these line by line and you'll have a better understanding! Kev -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University

[R] sapply() with cat()

2004-09-15 Thread Kevin Wang
-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2-6125-7407 Ph (M): +61-40

Re: [R] howto load functions?

2004-09-08 Thread Kevin Wang
Hi, Loren Grimes wrote: I realize that this is pretty basic, and I should be able to figure this out: but, how do I write a function [with a text editor] and then load it into an interactive R session? Thanks Try ?source HTH, Kevin -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics

Re: [R] a little question about R

2004-09-07 Thread Kevin Wang
it as following: c(a,b,c,d) and the result is:[1] a b c d. But I remember there's a shortcut manner to do the same thing,something like How about letters[1:4] Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004

Re: [R] download of 1.9.1

2004-09-07 Thread Kevin Wang
the package from Rgui using the menu? See the FAQ... Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia

[R] [OT]Example Data for Non-statisticians

2004-09-02 Thread Kevin Wang
is important. Also hopefully, I can introduce R to them (since many of them haven't heard of it yet). Does anyone have (or know where I can get) such data? It doesn't have to be huge,. Thanks! Kevin -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Mathematical

[R] Two xtable Questions

2004-09-02 Thread Kevin Wang
Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H

Re: [R] newsgroup on R

2004-09-02 Thread Kevin Wang
Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H

[R] xtable Questions

2004-09-01 Thread Kevin Wang
-- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2-6125-7407 Ph (M): +61

Re: [R] R and Latex tables

2004-08-25 Thread Kevin Wang
Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2-6125-7407 Ph (M): +61-40-451

Re: [R] Help using Hmisc / Latex

2004-08-25 Thread Kevin Wang
get an output which does not attend my needs. Just out of interest, have you read the documentation for latex()? Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI

[R] Order with scientific notations

2004-08-25 Thread Kevin Wang
0.068 74 0.1561 8 10 0.2196 99 0.5125 10 11 0.6457 11 5 0.9261 12 18 0.9272 13 138e-04 I'd think 8e-04 should be the smallest value...? It's R 1.9.1 on Windows XP if that helps. Cheers, Kevin -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics

Re: [R] how to extract data from excel sheet?

2004-08-19 Thread Kevin Wang
sivan __ [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 Ko-Kang Kevin Wang PhD Student Centre

Re: [R] How do I add rows to a table?

2004-08-18 Thread Kevin Wang
Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2-6125-7407 Ph (M): +61-40-451

Re: [R] plot.table on R 1.9.1

2004-08-16 Thread Kevin Wang
) where x is of table object and it should work. Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia

Re: [R] adding sem to a plot

2004-08-16 Thread Kevin Wang
Hi, On Mon, 16 Aug 2004, Luis Rideau Cruz wrote: R-help, I have a barplot and I wish to add standard erros (or deviations) bars to it. How? Marc Schwartz has an article on this in R News 3/2 (October 2003). HTH, Kevin Ko-Kang Kevin Wang PhD Student Centre

Re: [R] calibration/validation sets

2004-08-14 Thread Kevin Wang
. The third takes what's left -- the training set. This is perhaps not efficient and the code can definitely be simplified...but it's Sunday morning and I haven't had my morning coffee yet :D Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics

Re: [R] Can R work on very large of data?

2004-07-21 Thread Kevin Wang
: scan() and RODBC -- I haven't used the later though. Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia

Re: [R] Importing an Excel file

2004-07-08 Thread Kevin Wang
) in your system. Kev Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W

Re: [R] How to pass strings to functions?

2004-07-08 Thread Kevin Wang
Please do not use the subject to ask a question without clarifying it! So what exactly do you want? Can you give some more descriptions? Kev Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences

RE: [R] text editor for R

2004-07-07 Thread Kevin Wang
to be the case, but I can't quite remember *_*). Cheers, Kevin Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage

Re: [R] help in importing data

2004-06-24 Thread Ko-Kang Kevin Wang
Hi, Try read.csv() i.e. take a look at ?read.csv HTH Kevin - Original Message - From: Jose Sanchez [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Friday, June 25, 2004 10:38 AM Subject: [R] help in importing data hi, i was wondering if you can give me an

Re: [R] legend

2004-06-23 Thread Ko-Kang Kevin Wang
Hi, - Original Message - From: Perez Martin, Agustin [EMAIL PROTECTED] To: lista R help (E-mail) [EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 9:19 PM Subject: [R] legend DeaR UseRs: I want to put a legend in my plot. In the first line of the legend I want to put a box filled

RE: [R] setwd problems

2004-06-21 Thread Ko-Kang Kevin Wang
:\\BACC_R) HTH Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Date Calculation

2004-06-17 Thread Ko-Kang Kevin Wang
. I'm sure it has been asked before however a search on r-help didn't found me any relevant information *_*. Cheers, Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand

RE: [R] Date Calculation

2004-06-17 Thread Ko-Kang Kevin Wang
Hi, -Original Message- From: Martin Maechler [mailto:[EMAIL PROTECTED] Kevin, [[did you have tough day? usually your Q/A are much better ;-()]] Thanks to those who have replied, and yes shame on me.. [I also realised I can just use Sys.Date() to get today's date, instead

RE: [R] load function to R GUI

2004-06-14 Thread Ko-Kang Kevin Wang
Hi, -Original Message- From: [EMAIL PROTECTED] Hi all! I looked through the manual and FAQ, and did not find any information on how to load functions from files (with .R extension) to run them in R GUI under Windows. The only way I know is to create and edit a function inside GUI.

[R] Table to Data Frame

2004-06-10 Thread Ko-Kang Kevin Wang
[Forwarding on behalf of a colleague] She's got a list with several tables: tab - list() for(i in 1:6) { + tab[[i]] - table(freq[i]) + } tab [[1]] 0 0.17 0.3 0.51 2.534 1962515252 [[2]] 0 0.17 0.31 2.534 199136

Re: [R] How to Describe R to Finance People

2004-06-10 Thread Ko-Kang Kevin Wang
Thank you very much to those who contributed to this rather interesting discussion/debate. I was very surprised (and almost overwhelmed) by the volume of replies based on this topic! I have prepared some slides and put the draft version on www.stat.auckland.ac.nz/~kwan022/tmp/RFin.ppt. Feel

Re: [R] Reading in Files (was: no subject)

2004-06-08 Thread Ko-Kang Kevin Wang
Please use a more appropriate subject! - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 8:25 PM Subject: [R] (no subject) Hi!! I am a new user of R (just trying to analysis microarrays with some packages from the bioconductor project).

Re: [R] rpart

2004-06-04 Thread Ko-Kang Kevin Wang
Hi, I think most, if not all, your questions can be answered by: 1) ?rpart 2) Some search through the r-help mailing list 3) Read the chapter on tree-based models in MASS 4 (Modern Applied Statistics with S) by Venables and Ripley Kevin - Original Message - From: [EMAIL PROTECTED]

[R] How to Describe R to Finance People

2004-06-04 Thread Ko-Kang Kevin Wang
in mentioning it in her talk. I have never had experience of trying to introduce R to non-Scientists, hence I would appreciate any comments! Cheers, Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New

RE: [R] cameraa rotation graphics

2004-06-03 Thread Ko-Kang Kevin Wang
is there something that is open source that does this. Do you mean Daniel Adler's rgl (http://wsopuppenkiste.wiso.uni-goettingen.de/~dadler/) or the Ggobi/Rggobi http://www.ggobi.org/? Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator

RE: [R] how to get data and post it on R

2004-05-15 Thread Ko-Kang Kevin Wang
Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

[R] ts() objects in R

2004-05-04 Thread Ko-Kang Kevin Wang
Does anyone know why this is happening? diff.prop[1:5] 1 2 3 4 5 -0.6323988 -0.5226586 -0.5605096 -0.6656347 -0.6011561 ts(diff.prop, start = c(1997, 11), frequency = 1) Time Series: Start = 2007 End = 2125 Frequency = 1 [snip] diff.prop is a

Re: [R] ts() objects in R

2004-05-04 Thread Ko-Kang Kevin Wang
Hi, - Original Message - From: Uwe Ligges [EMAIL PROTECTED] I think you mean ts(diff.prop, start = c(1997, 11), frequency = 12) Whoops, indeed..thanks! That was a stupid question *_* kevin Wang __ [EMAIL PROTECTED] mailing list

Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE

2004-04-22 Thread Ko-Kang Kevin Wang
I heard of this problem mentioned by one staff member here, but he suspected it was to do with Windows XP's patch. When the technician told us about getting the patches for Windows, Rgui started to crash. But then a few days later a new patch by Microsoft was released and after installing the

RE: [R] I do not achieve to install some packages

2004-04-15 Thread Ko-Kang Kevin Wang
, Kevin Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Clever R syntax for extracting a subset of observations

2004-04-11 Thread Ko-Kang Kevin Wang
selected Any suggestions on how one can do such pretty things as D[d] where D is a data frame? So I take it you want to select the 7th, 3rd, and 2nd observation (i.e. rows) from D? A data frame has two dimensions, so you need to specify the row and columns. Maybe try: E = D[d,] HTH, Kevin Wang

RE: [R] Density Estimation

2004-04-09 Thread Ko-Kang Kevin Wang
-Original Message- From: [EMAIL PROTECTED] Dear Sir/Madam; Would you please tell me what is the command that allows the estimation of the Kernel Density for some data. Thanks, ?density __ [EMAIL PROTECTED] mailing list

Re: [R] Nested Loop in R

2004-04-06 Thread Ko-Kang Kevin Wang
Thanks for those who replied! I found out the problem. I don't need the nested loop at all. The following code would've worked (for those who're interested to know): # ## Testing CLT. pp 281 of Chance Encounters x - round(runif(1000, 1, 6)) clt - function(x, samp.no = 5, n = 5) { samp -

[R] Nested Loop in R

2004-04-05 Thread Ko-Kang Kevin Wang
Hi, Apologies for such a trivial question, but it has been over two years since I last used nested loops and I'm ashamed to say that I forgot how they work *_* Suppose I've the following codes: # x - round(runif(1000, 1, 6)) samp5 - vector(mode = list, length = 5) for(i in 1:5) {

RE: [R] Interpreting knn Results

2004-03-29 Thread Ko-Kang Kevin Wang
Hi, -Original Message- From: Liaw, Andy [mailto:[EMAIL PROTECTED] Maybe you should show your colleague how to access help pages in R? Right in ?knn, it says: prob: If this is true, the proportion of the votes for the winning class are returned as attribute 'prob'.

[R] Interpreting knn Results

2004-03-28 Thread Ko-Kang Kevin Wang
Hi, [I'm posting this on behalf of a colleague -- as I don't know knn myself...] How to interpret the knn() results? Tried the example codes in the documentation: data(iris3) train - rbind(iris3[1:25,,1], iris3[1:25,,2], iris3[1:25,,3]) test - rbind(iris3[26:50,,1],

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
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/listinfo/r-help PLEASE do read the posting guide

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 Is there

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
Kevin Wang SLC Statistics Workshops Co-ordinator Student Learning Centre University of Auckland New Zealand - This mail sent through University of Auckland http://www.auckland.ac.nz/ __ [EMAIL PROTECTED

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
-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand __ [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

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
Jedi Master Yoda Ko-Kang Kevin Wang, MSc SLC STATS 10x Workshop Coordinator University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz/~kwan022 Ph: 373-7599 x88475 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

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
not. There is no try Jedi Master Yoda 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/~kwan022 Ph: 373-7599 x88475 (City) x88480 (Tamaki

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

2003-11-20 Thread Ko-Kang Kevin Wang
--- 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 and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz/~kwan022 Ph: 373-7599

Re: [R] reading data rows

2003-11-20 Thread Ko-Kang Kevin Wang
--- 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 and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz/~kwan022 Ph: 373

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
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/~kwan022 Ph: 373-7599 x88475 (City) x88480 (Tamaki) __ [EMAIL PROTECTED

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
--- 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/~kwan022 Ph: 373-7599 x88475 (City) x88480 (Tamaki

  1   2   >