[R] vignette for package splines2 in Journal of Data Science

2021-09-27 Thread Yan, Jun
Dear R-help-listers, Users of splines2 may find the following paper in the Journal of Data Science (https://jds-online.org) interesting: Wang, W. and Yan, J. (2021): Shape-restricted regression splines with R package splines2. Journal of Data Science. 19(3):498–517. https://doi.org/10.6339/21

[R] Change the oder of stacked bar

2020-06-05 Thread Aimin Yan
I want to use the code below this message to make stacked bar plot, my question is : I want the stacked bar and its legend following the order as tr from left to right like the following: "100.0.250ng_CellLine_0" "75.25.250ng_CellLine_0" "50.50.250ng_CellLine_0" "10.90.250ng_CellLine_0" "1.99.25

[R] (no subject)

2020-06-05 Thread Aimin Yan
I want the stacked bar and its legend following the order as tr from left to right like the following: "100.0.250ng_CellLine_0" "75.25.250ng_CellLine_0" "50.50.250ng_CellLine_0" "10.90.250ng_CellLine_0" "1.99.250ng_CellLine_0" "0.100.250ng_CellLine_0" "100.0.500ng_CellLine_0" "75.25.500ng_CellLine

Re: [R] ask help for ggplot

2020-06-05 Thread Aimin Yan
+ >scale_fill_manual(breaks = df$gene, values = df$cols) + >theme(axis.text.x = element_text(angle = 45, hjust = 1,size = 4)) > > > But this places "Others" at the top of each bar. > To move it to the bottom, instead of the code that creates 'g'

Re: [R] ask help for ggplot

2020-06-04 Thread Aimin Yan
Is there possible to generate a barplot in the following link using ggplot? https://photos.app.goo.gl/E3MC461dKaTZfHza9 here is what I did library(ggplot2) df <- read.csv(text= "trt,gene,freq,cols M6,ALDH16A1,100.000,red M6,Others,0.000,lightgrey M12,ALDH16A1,64.6638015,red M12,GBE1,2.0

[R] ask help for ggplot

2020-06-04 Thread Aimin Yan
I have a question about using ggplot. Is there possible to generate a barplot like the attached file using ggplot? Thank you, Aimin __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Nominations sought for the 2021 ASA Statistical Computing and Graphics Award

2019-12-19 Thread Yan, Jun
), and Robert Gentleman and Ross Ihaka (2010). The prize carries with it a cash award of $5,000 plus an allowance of up to $1,000 for travel to the Joint Statistical Meetings (JSM) where the award will be presented. Nominations packets have to be submitted by email to Dr. Jun Yan, the Awards

[R] 2020 Chambers Statistical Software Award submission deadline extended to December 31, 2019

2019-12-18 Thread Yan, Jun
collaboration with, an undergraduate or graduate student. Please see http://asa.stat.uconn.edu/#chambers-2020 for detailed instructions. Best regards Jun Yan, Awards Chair ASA Section on Statistical Computing Professor, Department of Statistics University of Connecticut [[alternative HTML

[R] [R-pkgs] Introducing teamr Package

2019-07-24 Thread Tanbing Yan
Today I am so pleased to introduce my first CRAN package for sending formatted messages to Microsoft Teams, teamr . Motivation is simple here. For years I have been using Slack and built many slash commands and apps using incoming webhooks with R, but ever since

Re: [R] color question

2019-02-27 Thread Aimin Yan
The attached is the heatmap. Thank you, Aimin On Wed, Feb 27, 2019 at 10:51 PM Aimin Yan wrote: > I have a question about assigning color based on the value of a matrix > > The following is my matrix. > > d > lateRT earlyRT NAD ciLAD >

[R] color question

2019-02-27 Thread Aimin Yan
I have a question about assigning color based on the value of a matrix The following is my matrix. d lateRT earlyRT NAD ciLAD lateRT 1.0 0.00 0.006224017 0.001260241 earlyRT 0.0 1.00 0.001425649 0.007418436 NAD 0.006224017 0.001

Re: [R] Seeking nomination for the Statistical Computing and Graphics Award

2018-10-18 Thread Yan, Jun
This is a reminder that the deadline is about 4 weeks ahead. We'd appreciate your spreading the word or nominating a candidate. Best regards. Jun Yan From: Yan, Jun Sent: Tuesday, August 21, 2018 6:39:46 AM To: r-help@R-project.org Subject: Seeking nomin

Re: [R] [FORGED] Re: Change the position of label when using R package eulerr

2018-09-17 Thread Aimin Yan
he fourth label up and to the right 1mm in each > direction ... > > > x <- t$x > y <- t$y > > x[4] <- t$x[4] + unit(1, "mm") > y[4] <- t$y[4] + unit(1, "mm") > > grid.edit("quantities.grob", x=x, y=y) > > > ... is tha

Re: [R] Change the position of label when using R package eulerr

2018-09-15 Thread Aimin Yan
t$x t$y # Try to change the x and y value of the 4th label "2" grid.edit("quantities.grob",x[[4]]=unit(-11.8262244206465, "native")) grid.edit("quantities.grob",y[[4]]=unit(-5.19720701058398, "native")) Error: unexpected '=

Re: [R] Change the position of label when using R package eulerr

2018-09-14 Thread Aimin Yan
0781461293, "native"), unit(25.7349463488991, "native"), unit(-22.7610031110325, "native"), unit(14.5001560838519, "native"))) H

[R] Change the position of label when using R package eulerr

2018-09-13 Thread Aimin Yan
I am using eulerr to get venn. My code is like: fit1 <- euler(c("ciLAD" = 785, "LAD" = 565, "nonXL_MEF" = 167, "ciLAD&LAD" = 3, "ciLAD&nonXL_MEF" = 101, "LAD&nonXL_MEF" = 541, "ciLAD&LAD&nonXL_MEF" = 2),shape = "ellipse") plot(fit1,quantities = TRUE,fill =

[R] Change the position of label when using R package eulerr

2018-09-13 Thread Aimin Yan
I am using eulerr to get venn. My code is like: fit1 <- euler(c("ciLAD" = 785, "LAD" = 565, "nonXL_MEF" = 167, "ciLAD&LAD" = 3, "ciLAD&nonXL_MEF" = 101, "LAD&nonXL_MEF" = 541, "ciLAD&LAD&nonXL_MEF" = 2),shape = "ellipse") plot(fit1,quantities = TRUE,fill =

[R] Seeking nomination for the Statistical Computing and Graphics Award

2018-08-21 Thread Yan, Jun
uting Section and the Statistical Graphics Section. Nominations and questions are to be sent to the e-mail address below. Jun Yan Professor University of Connecticut jun@uconn.edu     __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

Re: [R] 2018 ASA Computing/Graphics: Chambers Software Award and Student Paper Competition

2017-12-01 Thread Yan, Jun
8. The award recipients are expected to present in a topic-contributed session at the 2018 JSM in Vancouver. I would appreciate your spreading the words. Jun Yan From: Yan, Jun Sent: Wednesday, October 18, 2017 6:37:19 AM To: r-help@R-project.org Subject: 20

[R] 2018 ASA Computing/Graphics: Chambers Software Award and Student Paper Competition

2017-10-18 Thread Yan, Jun
by 5:00pm EST, Friday, December 15, 2017. The submission window will be open at http://asa.stat.uconn.edu on December 1, 2017. Questions are to be emailed to Professor Jun Yan. #2. Student Paper Competition 2018 The Statistical Computing and Statistical Graphics Sections of the ASA are co-sponsor

[R] How to decide " weight" in WLS model in R ?

2015-03-02 Thread Yan Wu
Hi, I would like to know how to decide the "weight" in a WLS model in R? For example, In the" pipeline " data from faraway, I try to fit a regression model Lab ~ Field (non-constant variance). I wish to use weights to account for the non-constant variance. So how to decide the weight in the WLS m

Re: [R] 32bit R303 calls external C functions

2015-02-12 Thread Li, Yan
I meant R3.0.3. I need this package working in R3.0.3. I have 32bit and 64bit dlls both included in the package. -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: Thursday, February 12, 2015 1:01 PM To: Li, Yan; r-help@r-project.org Subject: Re: [R] 32bit

[R] 32bit R303 calls external C functions

2015-02-12 Thread Li, Yan
modified the code but the package cannot be loaded and R ended abnormally. Does anyone know if there any difference of 32bit R303 calling external C from 64bitR303? Thank you! Regards, Yan [[alternative HTML version deleted]] __ R-help@r

[R] How to tell if there is overdispersion in a GLMM?

2015-02-03 Thread maggy yan
I read something on http://glmm.wikidot.com/faq, under "How can I deal with overdispersion in GLMMs?": library(lme4) ## 1.0-4set.seed(101) d <- data.frame(y=rpois(1000,lambda=3),x=runif(1000), f=factor(sample(1:10,size=1000,replace=TRUE))) m1 <- glmer(y~x+(1|f),data=d,family=poisson)

[R] measure of goodness of fit for the model without an intercept

2015-01-29 Thread Yan Wu
Hi, When I fit the regression model without an intercept term, R-squared tends to much larger than the R-squared in the model with an intercept. So in this case, what�s a more reasonable measure of the goodness of fit for the model without an intercept? Thanks a lot!! Yan

[R] Help with a for complex for loop that looks into another data frame

2014-11-07 Thread Yan Wu
rank by rank_mag where ls_flag is NA. Assign ls_flag = 1. Then run the summary again, the NAs will be 1, and the sum of ls_flag will be 1. Then it should go into master_df_ex again, and assign a -1 to line 4. Then the summary will have 0 and 0 and this date should be done. I hope that makes

Re: [R] random forest application

2014-06-20 Thread Li, Yan
Thanks for the reply...Actually you answered my questionI just want to know how people use it... -Original Message- From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: Friday, June 20, 2014 11:31 AM To: Li, Yan Cc: r-help@r-project.org Subject: Re: [R] random forest application

[R] random forest application

2014-06-20 Thread Li, Yan
algorithm? Thank you! Regards, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] Send html body email in R

2014-02-07 Thread Bo Yan
Would be my last resort if a cleaner solution cannot be found. -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: Friday, February 07, 2014 11:57 AM To: Bo Yan; r-help@r-project.org Subject: Re: [R] Send html body email in R On 07/02/2014 12:47 PM, Bo Yan

[R] Send html body email in R

2014-02-07 Thread Bo Yan
Hi, I have managed to send emails with plain text message in the mail body using sendmailR. However, this package currently doesn't allow you to send html body email unless the source code is hacked. http://stackoverflow.com/questions/19844762/how-to-send-html-email-using-r Could anyone sh

[R] how to melt variable to one variable

2013-11-23 Thread maggy yan
I want to make a stacked bar plot with one bar for two variables from my data "chir", the two variables have about 100 values like no, yes and na. I want to show how many no, yes and na they both have together with the stacked bar. I tried to melt these to variables first like this: melt1=melt(dat

[R] Sample size for clustering analysis?

2013-11-05 Thread Li, Yan
a lot! Regards, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

[R] Can ODBC or JDBC calls R?

2013-08-09 Thread Li, Yan
Hi R helpers, I know there are packages RODBC and RJDBC to enable R to access ODBC and JDBC data. Is there a package/software to do the reverse way: calling R from ODBC or JDBC? Thank you. Regards, Yan [[alternative HTML version deleted

Re: [R] algorithm for clustering categorical data

2013-08-06 Thread Li, Yan
Thanks for the reply... For some reason, I need to keep Euclidean distance in the process... -Original Message- From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] Sent: Tuesday, August 06, 2013 12:04 PM To: dcarl...@tamu.edu Cc: Li, Yan; r-help@r-project.org Subject: Re: [R

Re: [R] algorithm for clustering categorical data

2013-08-06 Thread Li, Yan
Thanks David, This is very useful! -Original Message- From: David Carlson [mailto:dcarl...@tamu.edu] Sent: Tuesday, August 06, 2013 11:27 AM To: Li, Yan; r-help@r-project.org Subject: RE: [R] algorithm for clustering categorical data What do you mean by representing the categorical

Re: [R] algorithm for clustering categorical data

2013-08-06 Thread Li, Yan
hat is the draw back? Thanks you, Yan -Original Message- From: David Carlson [mailto:dcarl...@tamu.edu] Sent: Thursday, August 01, 2013 12:08 PM To: Li, Yan; r-help@r-project.org Subject: RE: [R] algorithm for clustering categorical data Read up on Gower's Distance measures (a

Re: [R] algorithm for clustering categorical data

2013-08-01 Thread Li, Yan
Thanks for the reply >From the link you provided, only two packages mentioned categorical field: >depmix and depmixS4. I'll look at them. -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Thursday, August 01, 2013 12:15 PM To: Li, Yan C

Re: [R] algorithm for clustering categorical data

2013-08-01 Thread Li, Yan
Great! Thanks! Yeah, I just use the usual way: as.numeric(..) for numeric transformation...seemed a standardization is needed. Thank you. -Original Message- From: David Carlson [mailto:dcarl...@tamu.edu] Sent: Thursday, August 01, 2013 12:08 PM To: Li, Yan; r-help@r-project.org Subject

[R] algorithm for clustering categorical data

2013-08-01 Thread Li, Yan
clustering afterwards. But the transformed fields have values from 1...10, and my other fields is in a bigger scale: 1-...This will make the categorical fields has less effect on the distance calculation... Thank you! Yan [[alternative HTML version deleted

[R] R Package License

2013-07-17 Thread Li, Yan
HI Helpers, How could we use R and R packages licensed under GPL into commercial products? Is it allowed to load a library and get the results from it and using the results for commercial use? Thank you so much! Regards, Yan [[alternative HTML version deleted

[R] loops for matrices

2013-06-12 Thread maggy yan
I have to use a loop (while or for) to return the result of hadamard product. now it returns a matrix, but when I use is.matrix() to check, it returns FALSE, whats wrong? Matrix.mul <- function(A, B) { while(is.matrix(A) == FALSE | is.matrix(B) == FALSE ) {print("error") bre

Re: [R] keep the centre fixed in K-means clustering

2013-05-22 Thread HJ YAN
ize the runtime for huge data and get: > > tNewData <- t(NewData) > clust <- max.col(-apply(Centre, 1, function(x) colSums((x - tNewData)^2))) > > > Best, > Uwe Ligges > > > > > > On 21.05.2013 13:19, HJ YAN wrote: > >> Dear R users >> >>

[R] keep the centre fixed in K-means clustering

2013-05-21 Thread HJ YAN
Dear R users I have the matrix of the centres of some clusters, e.g. 20 clusters each with 100 dimentions, so this matrix contains 20 rows * 100 columns numeric values. I have collected new data (each with 100 numeric values) and would like to keep the above 20 centres fixed/'unmoved' whilst jus

[R] how to show a dataset in 3d?

2013-05-15 Thread maggy yan
my dataset looks like this in the beginning: Subject Time1 Time2 Time3 1 1 0.385 0.103 -0.488 2 2 -1.939 0.569 1.370 3 3 -1.196 -0.051 1.247 4 4 0.174 -1.163 0.989 5 5 1.246 0.558 -1.804 6 6 -1.108 -0.057 1.165 7 7 -0.609 -0.34

[R] dotcharts next to boxplots

2013-05-13 Thread maggy yan
my dataset looks like this in the beginning: Dosis weight sex 1 06.62 m 2 06.65 m 3 05.78 m 4 05.63 m 5 06.05 m 6 06.48 m 7 05.50 m 8 05.37 m 9 1

[R] need means on all boxplots, but only half of them got that

2013-05-11 Thread maggy yan
I tried to draw a point on all boxplots for their means, I did: boxplot( Daten$weight~interaction(Daten$Dosis,Daten$sex, drop=TRUE)) means<-tapply( Daten$weight, Daten$Dosis, mean) points(means, pch=5, col="red", lwd=5) but only the boxplots for male got that point on them, its really weird becau

[R] boxplot with grouped variables

2013-05-11 Thread maggy yan
my dataset looked like this in the beginning: >Daten V1 V2 V3 1 Dosis Gewicht Geschlecht 2 06.62 m 3 06.65 m 4 05.78 m 5 05.63 m I need box plots for V2 with all combination of V1 and V3, so I deleted the

[R] Calculating distance matrix for large dataset

2013-05-02 Thread HJ YAN
Dear R users I wondered if any of you ever tried to calculate distance matrix with very large data set, and if anyone out there can confirm this error message I got actually mean that my data is too large for this task. negative length vectors are not allowed My data size and code used dim(m

[R] ksvm

2013-03-18 Thread Li, Yan
some idea on the prediction of ksvm by the formula? Thanks a lot!!! Regards, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

Re: [R] How to combine conditional argument and logical argument in R to create subset of data...

2013-03-06 Thread HJ YAN
10,] 333 3 > #[11,] 333 4 > #[12,] 333 5 > #[13,] 333 6 > #[14,] 333 7 > > > A.K. > > From: HJ YAN > To: arun > Cc: r-help@r-project.org > Sent: Wednesday, March 6, 2013 4:09 PM > Subject: Re: [R] How to combine conditional argument and log

Re: [R] How to combine conditional argument and logical argument in R to create subset of data...

2013-03-06 Thread HJ YAN
t to add: > > Tem1[Tem1[,2]%in%setdiff(Tem1[,2],Tem2[,2]),] > A.K. > > - Original Message - > From: arun > To: HJ YAN > Cc: R help > Sent: Wednesday, March 6, 2013 11:06 AM > Subject: Re: [R] How to combine conditional argument and logical argument > in R to

Re: [R] How to combine conditional argument and logical argument in R to create subset of data...

2013-03-06 Thread HJ YAN
did not work...?? Many thanks in advance! HJ On Wed, Mar 6, 2013 at 4:36 AM, arun wrote: > Hi, > > b[b[,4]>15 & (b[,1]>4|is.na(b[,1])) & (b[,2]>4|is.na(b[,2])),] > #[,1] [,2] [,3] [,4] [,5] > #[1,]6 NA NA 16 20 > #[2,] NA5

[R] How to combine conditional argument and logical argument in R to create subset of data...

2013-03-05 Thread HJ YAN
Dear R user I have data created using code below b<-matrix(2:21,nrow=4) b[,1:3]=NA b[4,2]=5 b[3,1]=6 Now the data is > b [,1] [,2] [,3] [,4] [,5] [1,] NA NA NA 14 18 [2,] NA NA NA 15 19 [3,] 6 NA NA 16 20 [4,] NA5 NA17 21 I want t

[R] asCairoDevice issue

2013-01-10 Thread Li, Yan
gonal charts: The codes are: (you can copy and paste to your R GUI) win<- gtkWindowNew(show= FALSE) DA<- gtkDrawingArea() asCairoDevice(DA) win$add(DA) win$show() plot.call Did I miss anything here? Thanks a lot!!! Regards, Yan [[alternative HTML version deleted]] _

[R] Can't remember which package I used. Anyone can help please?

2012-11-13 Thread HJ YAN
Dear R users I tried an example earlier to check the results using two different methods of clustering with same data set, and for both methods, say method A and method B. Also I decided to have same number of groups/clusters (here 8 was chosen). I found a good graphical tool in R to compare the

[R] how are the values in ksvm related to the svm formula ( the parameter for kernal function)

2012-11-06 Thread Li, Yan
= alpha, ymatrix= y, and xmatrix = x? what is coef ? Thanks a lot! Regards, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Summarizing data containing data/time information (as factor)

2012-09-06 Thread HJ YAN
.03, 0.04, 0.04, 0.04, 0.04, 0.03, 0.04, 0.04, 0.03, 0.04, 0.03, 0.04, 0.04, 0.03, 0.03, 0.04, 0.04, 0.04, 0.04, 0.03, 0.03, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.

[R] Summarizing data containing data/time information (as factor)

2012-09-05 Thread HJ YAN
Dear R user I want to create a table (as below) to summarize the attached data (Test.csv, which can be read into R by using 'read.csv(Test.csv, header=F)' ), to indicate the day that there are any data available, e.g.value=1 if there are any data available for that day, otherwise value=0.

Re: [R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-06 Thread HJ YAN
> ax y > 1 a 2.01e+13 2.1e+12 > 2 b 2.01e+13 2.1e+12 > 3 c 2.01e+13 2.1e+12 > 4 d 2.01e+13 2.1e+12 > 5 e 2.01e+13 2.1e+12 > > What is your default number of digits? > getOption("digits") > > Jean > > > HJ YAN wrote on 08/06/2012 1

[R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-06 Thread HJ YAN
Dear R users I read two csv data files into R and called them Tem1 and Tem5. For the first column, data in Tem1 has 13 digits where in Tem5 there are 14 digits for each observation. Originally there are 'numerical' as can be seen in my code below. But how can I display/convert them using other

[R] using glmnet for the dataset with numerical and categorical

2012-07-12 Thread yan
milar, what I don't understand is for the coefficients of categorical variables, why they are so different in two cases? Many thanks Yan -- View this message in context: http://r.789695.n4.nabble.com/using-glmnet-for-the-dataset-with-numerical-and-categorical-tp4636279.html Sent from the R he

[R] Read vector as multi-dimensional data in R by row

2012-07-09 Thread HJ YAN
Dear R users Say I wanted to read a vector into R as multi-dimensional array by row, e.g. a<-c(1:20) > b<-array(a,dim=c(2,5,2)) > b , , 1 [,1] [,2] [,3] [,4] [,5] [1,]13579 [2,]2468 10 , , 2 [,1] [,2] [,3] [,4] [,5] [1,] 11 13 15 17 1

Re: [R] Resolution issue with exporting plots from R and write tables in Latex code for producing pdf document

2012-06-08 Thread HJ YAN
t got same problem, so I hushed it out. >>> >> >> That's not the right place to put the pdf() call, it should appear before >> any of the graphing calls. To keep the pdf resolution, you need to plot to >> the pdf device. >> >> Duncan Murdoch >>

[R] Resolution issue with exporting plots from R and write tables in Latex code for producing pdf document

2012-06-08 Thread HJ YAN
Dear R users I am trying to exporting plots from R to an external folder, or to the working directory, but the resolution of plots (pdf file) largely reduced. Any way I can get same quality as my original plots?? e.g. I tested the plotting part using one example and obtained pretty good (/readable

Re: [R] Reading a bunch of csv files into R

2012-05-28 Thread HJ YAN
[i])} But when I tried to access the components in this list 'Data1', only the first method of the three (shown below) works, and I think the other two are more useful for me. Any ideas?? (1) Data1[[1]] *** this one works (2) Data1[["Data.512180_20120523150757"]] ***

Re: [R] Reading a bunch of csv files into R

2012-05-28 Thread HJ YAN
; For example: >> >> myDir<- "some file path" >> filenames<- list.files(myDir) >> filenames<- filenames[grep("[.]csv", filenames)] >> >> data_names<- gsub("[.]csv", "", filenames) >> >> for(i in 1:leng

[R] Reading a bunch of csv files into R

2012-05-25 Thread HJ YAN
Dear R users I am struggling from a data importing issue: I have some hundreds of csv files needed to be read into R for futher analysis. All those csv files are named in one of the three formats: (1) strings: e.g. London_Oxford street (2) Integer: e.g. 1234_5678 (3) combined: e.g. London_1234

[R] glmnet object to pmml

2012-05-18 Thread Yan Jiao
Dear R users I used glmnet generating a regression model, now I need to convert it to pmml format, but I noticed pmml r package doesn't support glmnet object, has anyone find a way solving this problem? I was thinking convert glmnet object to glm object, has anyone tried it? Many thanks

[R] glmnet object to pmml

2012-05-18 Thread yan
Dear R users I generated a model using glmnet, I need to convert it to pmml, but R pmml package doesn't support glmnet, has anyone come across similar problem? any idea to solve it? Many thanks YAn -- View this message in context: http://r.789695.n4.nabble.com/glmnet-object-to-pmml-tp46

[R] glmnet speed

2012-05-14 Thread yan
, why it's much more slower than the speed report in tibshirani etc's paper? has anyone got same problem? Many thanks yan -- View this message in context: http://r.789695.n4.nabble.com/glmnet-speed-tp4629953.html Sent from the R help mailing list archiv

[R] cross validation in glmnet

2012-05-14 Thread yan
group, the rest from the other in my case), or just random? many thanks yan -- View this message in context: http://r.789695.n4.nabble.com/cross-validation-in-glmnet-tp4629919.html Sent from the R help mailing list archive at Nabble.com. __ R-h

Re: [R] Supperscript, subscript and double lines in the main/subtitle and using greekletters

2012-03-27 Thread HJ YAN
Sorry last message was not completed before sending Please below On Tue, Mar 27, 2012 at 5:36 PM, HJ YAN wrote: > Thank you very much Gerrit, for the nice hints! > > Just done some more googling and reaserches on this and trying to > answering it myself... > > Belo

Re: [R] Data indexing issue...

2012-03-27 Thread HJ YAN
> > Université de Bourgogne > > UMR CNRS/uB 6282 Biogéosciences > > 6 Boulevard Gabriel > > 21000 Dijon, FRANCE > > +33(0)3.80.39.63.06 > > ivan.calan...@u-bourgogne.fr > > http://biogeosciences.u-bourgogne.fr/calandra > > > > > > Le 27/03/12 12:3

[R] Supperscript, subscript and double lines in the main/sub title and using greek letters

2012-03-27 Thread HJ YAN
Dear R-help, I am trying to express myself as best as I can here. If you also use Latex to edit math reports or other languages with similar editing method, you'll see what I'm talking about. My sincere appologies if my question is not clear enough to some extend, as also I'm not able to provide

[R] Data indexing issue...

2012-03-27 Thread HJ YAN
Dear R-help, My dataset (which is a data frame, called 'Calender' here) includes 365 rows representing 365 days for a year. One column ('Season')contains factor data representing seasons, e.g. spring, summer, autumn and winter. Another column (called 'Day') contains data representing wether the

Re: [R] Error : package is not installed for 'arch=x64'

2012-03-22 Thread Li, Yan
Hi Uwe, Thanks very much for your reply! It is in Windows OS and I read the manual, installed the latest version of RTools. I also have MinGW64 compiler installed. I still kept getting this errors. Regards, Yan -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu

[R] Check results between two data.frame

2012-03-21 Thread HJ YAN
Dear R-user, I'm trying to compare two sets of results and wanted to find out which element in the two data frame/matrix are different. I wrote the following function and it works ok, and gives me a long list of "good" as outcomes. CHECK<- function (x = "file1", y = "file2") { for (i in 1:n

[R] 'Unexpected numeric constant'

2012-03-19 Thread HJ YAN
Dear R-help, I am trying to rename the variables in a dataframe, called 'T1A' here. Seems renaming was successful, but when I call one of the variable I got error message and I wanted to know why. The data frame contains 365 rows and 49 columns. I would like to name the first column `DATE` and t

[R] Importing multiple worksheets from one Excle/ csv file into R

2012-03-15 Thread HJ YAN
Dear R experts, I am trying to import some data from some Excle files into R. My Excle file contains about 50 sheets. One solution I can think about is to convert my Excle file into csv file first and then load data into R using 'read.csv'. But it seems to me that 'read.csv' only supports readin

[R] Error : package is not installed for 'arch=x64'

2012-03-13 Thread Li, Yan
package 'xxx' is not installed for 'arch=x64' Error: loading failed Execution halted ERROR: loading failed Best, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/li

[R] Converting factor data into Date-time format

2012-03-13 Thread Haojie Yan
Dear R-user, I have read a dataset from .csv file into R. This dataset includes one column containing some data in 'date and time' format, e.g. 'dd/mm/ hh:mm'. These data were automatically read and saved as 'factor' in R. When I was trying to produce some plots (such as time series) with the

[R] using jit

2012-02-29 Thread yan jiao
Dear R gurus, I'm trying to use jit package to parallel my computing do you put jit(2) /jit(1) in front of every loops? I got 8 nested loops in my code. many thanks yan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] discrete simulated annealing

2012-01-30 Thread yan jiao
Dear All, I need to use simulated annealing for optimization is there a way to limit the search place to only discrete values? And also exclude certain solutions, e.g. exclude the solutions when all the variables are the same? many thanks Yan

Re: [R] function for grouping

2012-01-26 Thread yan
then I get 1,2,3,1,1. So I need a systematic way of generating the combination, but I don't need all the combinations in one go. Many thanks yan -- View this message in context: http://r.789695.n4.nabble.com/function-for-grouping-tp4324436p4330877.html Sent from the R help mailing

Re: [R] function for grouping

2012-01-25 Thread yan
thanks petr, what if I got 200 elements, so I have to write expand.grid(x1=1, x2=1:2, x3=1:3, x4=1:3, x5=1:3x200=1:3))? Many thanks yan -- View this message in context: http://r.789695.n4.nabble.com/function-for-grouping-tp4324436p4327812.html Sent from the R help mailing list archive at

[R] function restrictedparts

2012-01-25 Thread yan jiao
ize specified is too large Calls: restrictedparts -> integer is there a similar function can deal with long vector? I'm using R version 2.14.1 (2011-12-22),x86_64, linux-gnu many thanks yan __ R-help@r-project.org mailing list https://stat.ethz

[R] function for grouping

2012-01-24 Thread yan jiao
2: x2 many thanks yan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] how to remove the redundant rows of a matrix

2011-10-31 Thread yan liu
one 18. Thanks a lot! Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] cut data into sevral group and assign calculated values individually

2011-10-18 Thread Li, Yan
1 x 0 0 Thank you very much! Regards, Yan -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Tuesday, October 18, 2011 5:23 AM To: Li, Yan Cc: r-help@r-project.org Subject: Re: [R] cut data into sevral group and ass

[R] cut data into sevral group and assign calculated values individually

2011-10-17 Thread Li, Yan
to the breaks but having difficulty to assign the two calculated interval values. Thank you very much! Regards, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] qcc package

2011-10-14 Thread Li, Yan
ng the qcc package but didn't help. Does anyone have this kind of experience? Thank you! Regards, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

[R] iSeries and R

2011-09-01 Thread Li, Yan
Hi All, Does anyone has experiences installing R in iSeries? Does R supports iSeries? Any documentation on this topic? Thank you very much! Regards, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] Central limit theorem

2011-08-14 Thread maggy yan
my data looks like this: PM10 Ref UZ JZ WT RH FT WR 1 10.973195 4.338874 nein Winter Dienstag ja nein West 26.381684 2.250446 nein SommerSonntag nein ja Süd 3 62.586512 66.304869 ja SommerSonntag nein nein Ost 45.590101 8.526152

[R] linear regression

2011-08-13 Thread maggy yan
dear R users, my data looks like this PM10 Ref UZ JZ WT RH FT WR 1 10.973195 4.338874 nein Winter Dienstag ja nein West 26.381684 2.250446 nein SommerSonntag nein ja Süd 3 62.586512 66.304869 ja SommerSonntag nein nein Ost 45.59010

[R] submit R package

2011-05-17 Thread Yan Jiao
Dear all, I'm just wondering how to submit a package to cran? I followed the instruction, using anonymous as username and my email address as password, but it didn't connect. Any hints? Yan [[alternative HTML version deleted]] _

[R] question of VECM restricted regression

2011-04-29 Thread Meilan Yan
Dear Colleague I am trying to figure out how to use R to do OLS restricted VECM regression. However, there are some notation I cannot understand. Please tell me what is 'ect', 'sd' and 'LRM.dl1 in the following practice: #OLS retricted VECM regression data(denmark) sjd <- denmark[, c("LRM",

[R] How to remove the double or single quote from a string (unquote?)?

2011-04-18 Thread JingJiang Yan
Is there a function to get a string without a pair of quotes around it? I have several expressions like: glm(V12 ~ V3, family=binomial, data=df1) glm(V12 ~ V4, family=binomial, data=df1) ... glm(V12 ~ V8, family=binomial, data=df1) As you can see, the only differences among them are V3 ... V8. B

[R] function order

2011-04-06 Thread Yan Jiao
? Many thanks Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minim

[R] add zero in front of numbers

2011-04-04 Thread Yan Jiao
Dear R users, I need to add 0 in front of a series of numbers, e.g. 1->001, 19->019, Is there a fast way of doing that? Many thanks yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/m

[R] mean in the boxplot

2011-04-01 Thread Yan Jiao
Dear R users, How to show mean in the boxplot instead of median ? Many thanks Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

  1   2   3   >