search for: soyeon

Displaying 17 results from an estimated 17 matches for "soyeon".

2011 Apr 14
2
How to see a R code from a package?
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
2012 Dec 18
2
how to get a value from a list (using paste function)?
...error. test <- get(paste("cvtest$",lambda.rule, sep="")) Error in get(paste("cvtest$", lambda.rule, sep = "")) : object 'cvtest$lambda.1se' not found Do you guys know how to solve this issue? Thank you so much in advance and merry Christmas! Soyeon
2010 Sep 20
2
how to seperate " "? or how to do regression on each variable when I have multiple variables?
...(i in 1: 13) { r[i] <- summary(lm(MEDV ~ name[i], data = boston))$r.squared } but this doesn't work because name have " " for each variable. How to remove " " for name of each variable? Or do you know the way I can do regression MEDV on each variable? Thank you ahead, Soyeon
2011 Jun 09
4
set.seed and for loop
...unning, 100 data sets are generated. I want to restore 23th data set (the data set generated in 23th for loop) without the loop. I've tried set.seed(1023) runif(50) but this is different data from the data set gotten from 23th for loop. How can I get 23th data set without the loop? Thank you, Soyeon
2010 Dec 13
2
How to change leaf color by group in hclust plot or how to install A2R package in windows?
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
2011 Apr 15
2
prediction error in ROCR package when sampled y consists of only one class
...nly one class >y [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 In this case, prediction function gives 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
2011 Aug 10
2
Opposite of paste function
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]]
2010 Nov 17
1
Multiple plots in one window
...For example, pf <- function(p) { par(mfrow=c(1,3)) plot(c(p:(p+10)),c(1:11)) plot(c(p:(p+10)),c(2:12)) plot(c(p:(p+10)),c(3:13)) } p <- c(1:3) par(mfrow=c(3,1)) for(i in 1:3) { pf(p[i]) } How can I produce 9 plots or 3*n plots when I use that function n times? Thank you ahead, Soyeon
2010 Sep 17
1
how to import this kind of data?
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 0.00 7.070 0 0.4690 7.1850 61.10 4.9671 2 242.0 17.80 392.83 4.03 34.70 0.03237 0.00
2010 Mar 10
1
How can I sort a character type vector?
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,
2012 Jul 04
2
How to generate a correlated binary data set?
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, [[alternative HTML version deleted]]
2013 Feb 01
2
Change default order of colors & line types
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 linetype. I want to put "solid" line in fourth. How can I do thses? R code to draw the
2008 May 13
0
calculating confidence intervals for the turnbull estimate
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
2010 Nov 19
1
How to print "graph1.png" "graph2.png" "graph3.png" ... ?
Dear All, I want to print out "graph1.png" "graph2.png" "graph3.png" ... How can I print it out? Thank you,
2011 Jul 18
2
Doesnt' winedt 6 version work as Rwinedt?
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, [[alternative HTML version deleted]]
2012 Jul 19
2
change file name from file0.1_data.RData to file1_data.Rdata
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]]
2012 Dec 23
1
problem in installing RcppBDT_0.2.1
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 executed the install.packages function. Then, I got the following error message: