[R] Change default order of colors line types

2013-02-01 Thread Soyeon Kim
Dear R users, I'd like to change the default order of colors line types. Especially I am using ggplot2 and using color Set1. In Set1, the default color order is red, blue, green, violet,.. ect. However, I want to put red in fourth (not first). Likewise, I want to change the order of default

[R] Change default order of colors line types

2013-02-01 Thread Soyeon Kim
Dear R users, I'd like to change the default order of colors line types. Especially I am using ggplot2 and using color Set1. In Set1, the default color order is red, blue, green, violet,.. ect. However, I want to put red in fourth (not first). Likewise, I want to change the order of default

[R] problem in installing RcppBDT_0.2.1

2012-12-23 Thread Soyeon Kim
Dear listers, I am trying to install RcppBDT_0.2.1 on my Windows machine using the function install.packages(./RcppBDT_0.2.1.tar.gz, repos=NULL, type=source). Since this package is not like most of other packages in that it requires Rcpp and boost, I have installed Rcpp and boost first, and

[R] how to get a value from a list (using paste function)?

2012-12-18 Thread Soyeon Kim
Dear my R friends, I want to get a number from a list using paste function. In my example, lambda.rule - lambda.1se cvtest is a list (result from cv.glmnet) and cvtest$lambda.1se [1] 1.308973 I want to call the value using paste function. I used get function but there was an error. test -

[R] change file name from file0.1_data.RData to file1_data.Rdata

2012-07-19 Thread Soyeon Kim
Dear All, I want to change file names. I have file0.1_data.RData (I have several files whose names are file0.x_data.Rdata) I want to rename it to file1_data.RData How can I do it? Thank you for saving my time! [[alternative HTML version deleted]]

[R] How to generate a correlated binary data set?

2012-07-04 Thread Soyeon Kim
Hi. I am trying to generate a correlated binary data set. I've tried to use mvtBinaryEP, binarySimCLF, and bindata packages but none of them works in R version 2.15.1. Do you know any package to generate correlated binary covariates and work in R version 2.15.1, or how to generate it? Thanks,

Re: [R] How to generate a correlated binary data set?

2012-07-04 Thread Soyeon Kim
Thanks for the response. It turns out it was not a problem of R but the problem on setting options in R studio :( Thank you! On Wed, Jul 4, 2012 at 2:25 PM, Peter Ehlers ehl...@ucalgary.ca wrote: On 2012-07-04 11:25, Soyeon Kim wrote: Hi. I am trying to generate a correlated binary data set

[R] Opposite of paste function

2011-08-10 Thread Soyeon Kim
Dear All, I have vn variable vn [1] V300 V376 What I want to get is 300 376 without V and from vn variable. Could you help me about this issue? Thank you, Soyeon [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Doesnt' winedt 6 version work as Rwinedt?

2011-07-18 Thread Soyeon Kim
Dear All, I've tried install Rwinedt using my Winedt 6. I cannot see R tab in Rwinedt even though I followed the instruction. (Installed RWinEdt and called the library) Version 6 doesn't work? If not, if would you recommend an R editor for window user?(Except for Emacs) Thanks,

[R] set.seed and for loop

2011-06-09 Thread Soyeon Kim
Dear All, This is hard to describe so I made a simple example. set.seed(1001) total - 0 data - vector(list, 30) for(i in 1:30) { data[[i]] - runif(50) } Let's call a data set runif(50). While the for loop is running, 100 data sets are generated. I want to restore 23th data set (the data set

[R] prediction error in ROCR package when sampled y consists of only one class

2011-04-15 Thread Soyeon Kim
an error: Error in prediction(predic, y) : Number of classes is not equal to 2. ROCR currently supports only evaluation of binary classification tasks. How can I solve this problem? Thank you, Soyeon Kim __ R-help@r-project.org mailing list https

[R] How to see a R code from a package?

2011-04-14 Thread Soyeon Kim
Dear R users, Hi. I want know R code of a function: predict.cv.glmnet (which is included in glmnet package). Could you let me know how I can see the R code of the function? Thank you, Soyeon Kim __ R-help@r-project.org mailing list https

Re: [R] How to see a R code from a package?

2011-04-14 Thread Soyeon Kim
, Jannis bt_jan...@yahoo.de wrote: Just type the name of your function without (). Or use fix(functioname). Or do you need to do something more complicated? HTH Jannis --- Soyeon Kim yunni0...@gmail.com schrieb am Do, 14.4.2011: Von: Soyeon Kim yunni0...@gmail.com Betreff: [R] How to see

[R] How to get the variables used in stepwise logistic regression?

2011-02-04 Thread Soyeon Kim
Dear All, I used glm and then used step function for stepwise regression. Now, I want to store the variables used in the stepwise regression. The code is the following. m_logistic - glm(y ~ . + M1:T + M2:T + M3:T+ M4:T +M5:T, family=binomial(logit), data = data) step_glm - step(m_logistic)

Re: [R] How to get the variables used in stepwise logistic regression?

2011-02-04 Thread Soyeon Kim
Thank you. This is what I want. I need to study about attr :). Soyeon On Fri, Feb 4, 2011 at 11:07 AM, David Winsemius dwinsem...@comcast.net wrote: On Feb 4, 2011, at 11:56 AM, Soyeon Kim wrote: Dear All, I used glm and then used step function for stepwise regression. Now, I want

[R] How to change leaf color by group in hclust plot or how to install A2R package in windows?

2010-12-13 Thread Soyeon Kim
I want to change leaf color by group in hclust plot. I've seen several answers about A2R package but I cannot install A2R and Rtools in windows. Do you know how to install A2R package in windows or how to change leaf color by group in hclust plot? Thank you in advance, Soyeon

[R] How to change a numeric vector to a character value

2010-12-03 Thread Soyeon Kim
Dear All, When I have a numeric vector, I want to change it to one character value. For example, When I have test - c(4, 5, 3, 2) I want to change it to 4 5 3 2(one character value) How can I get it? Thanks in advance, Soyeon __ R-help@r-project.org

[R] How to print graph1.png graph2.png graph3.png ... ?

2010-11-19 Thread Soyeon Kim
Dear All, I want to print out graph1.png graph2.png graph3.png ... How can I print it out? Thank you, __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] How to print graph1.png graph2.png graph3.png ... ?

2010-11-19 Thread Soyeon Kim
us more context/details on what you are trying to do. I will undoubtedly help us to help you. In this case, the posting guide is your friend. HTH, Jorge On Fri, Nov 19, 2010 at 3:57 PM, Soyeon Kim wrote: Dear All, I want to print out graph1.png  graph2.png graph3.png  ... How can I

[R] Multiple plots in one window

2010-11-17 Thread Soyeon Kim
Dear All, I made a function which gives 3 plots in one window(I used par(mfrow=c(1,3)) in the function). Using that function 3 times, I want to produce 9 plots in one window. I tried par(mfrow=c(3,1)) or par(mfrow=c(3,3)) but it didn't work. For example, pf - function(p) { par(mfrow=c(1,3))

[R] how to seperate ? or how to do regression on each variable when I have multiple variables?

2010-09-20 Thread Soyeon Kim
Dear All, I have data which contains 14 variables. And I have to regress one of variables on each variable (simple 13 linear regressions) I try to make a loop and store only R-squared colnames(boston) [1] CRIMZN INDUS CHASNOX RM AGE [8] DIS RAD TAX PTRATIO

[R] how to import this kind of data?

2010-09-17 Thread Soyeon Kim
Dear All, I am in a trouble with reading data. It is in txt file looking like this. 0.00632 18.00 2.310 0 0.5380 6.5750 65.20 4.0900 1 296.0 15.30 396.90 4.98 24.00 0.02731 0.00 7.070 0 0.4690 6.4210 78.90 4.9671 2 242.0 17.80 396.90 9.14 21.60 0.02729

[R] What is the name of function for calculating mod?

2010-07-08 Thread Soyeon Kim
Dear All, I try to find the name of function to calculate mod(or Modular). Do you anyone know the name of function? Thank you so much, Soyeon Kim __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] How to remove levels?

2010-03-17 Thread Soyeon Kim
Dear All, My data looks like this new_ns chr nc_two nc_not_two 11488 58 22325114 33233 79 44200153 55239 53 66196313 77229 45 88231137 99164111 10

[R] How can I sort a character type vector?

2010-03-10 Thread Soyeon Kim
Dear All, I want to sort a character type vector. the vector is [1] 4 5 6 8 9 11 Y 1 13 15 16 20 X 2 3 10 14 19 XY 7 12 18 17 22 [25] 21 and I want to sort 1-22 X Y XY or 1-22 X XY Y. How can I do that? Thanks, __ R-help@r-project.org

[R] Make a table using data with frequency

2010-02-10 Thread Soyeon Kim
Dear All, What I want is change following data data alc status age freq 1 0 0 0 408 2 1 0 0 64 3 0 1 0 26 4 1 1 0 30 5 0 0 1 258 6 1 0 1 45 7 0 1 1 78 8 1 1 1 66 To this table. age =0

[R] calculating confidence intervals for the turnbull estimate

2008-05-13 Thread Soyeon Kim
Does anyone know of software to calculate confidence intervals for the non-parametric estimate of the survival distribution when data are interval censored, ie, for the Turnbull estimate? Thanks, Soyeon __ R-help@r-project.org mailing list