Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

58 results for “from:Yuan Chun Ding”

a simple reshape
Yuan Chun Ding · Apr 3, 2020 · r-help

Hi R users, I want to do a data reshape from long to wide, I thought it was easy using tidyverse spread function, but it did not work well. Can you help me? Thank you, Ding test1 data frame is...

row combining 2972 files
Yuan Chun Ding · Mar 18, 2020 · r-help

Hi Bert, Yes, your code works very well. Thank you very much!! Ding ________________________________ From: Bert Gunter [bgunter.4567 at gmail.com] Sent: Wednesday, March 18, 2020 1:02 PM To: Yuan Chun Ding Cc: r-help mailing list Subject: Re...

adjusted p value, fdr
Yuan Chun Ding · Jan 7, 2020 · r-help

When you do x1g$fdr, you adjusted for a total of 15568 tests, so FDR is high for those first four entries. When you do p.adjust(pval,method="BH"), you assumed there were only a total of 4 multiple...

add a variable a data frame to sequentially count unique rows
Yuan Chun Ding · Jul 2, 2021 · r-help

Hi Jeff, Thank you for your quick response!! I made this following summary file, however, I want to add the count number sequentially into the original file, because I have several more columns to explain or annotate the first two...

to create a new variable based on values in other variables
Yuan Chun Ding · Apr 7, 2020 · r-help

Hi Thierry, the values in the example data frame are fake numbers, my original data frame has hundreds of row and values are in wide range, not min or max of two variables, also the number 23 is also different...

non-standard reshape from long to wide
Yuan Chun Ding · Jan 7, 2021 · r-help

Hi Rui, Thank you so much!! You code works well and I am looking into the pivot_wider function. Yuan Ding -----Original Message----- From: Rui Barradas [mailto:ruipbarradas at sapo.pt] Sent: Thursday, January 7, 2021 12:19 PM To...

add a variable a data frame to sequentially count unique rows
Yuan Chun Ding · Jul 2, 2021 · r-help

Hi Bert, I am very sorry that I made a mistake for the second count value. The original data are much more complicated, I just made a toy table. test <- data.frame(group1=c("g1", "g1", "g1", "g2", "g2", "g2...

to create a new variable based on values in other variables
Yuan Chun Ding · Apr 7, 2020 · r-help

Hi R users, I want to create a new variable, Ravg, in data frame tem2 based on values of two other variables m1 and m2. the condition: if m1 = 23 and m2 =23 then Ravg =23; else if m1 != 23...

add a variable a data frame to sequentially count unique rows
Yuan Chun Ding · Jul 2, 2021 · r-help

Hi Jeff, Your code generated the count what I wanted. As I emailed to Bert, yes, I made a mistake when generating the toy table, the second count value should be 2. Correct file is test <- data.frame(group1=c...

please help with "could not find function "ComBat.mc" "
Yuan Chun Ding · Nov 12, 2020 · r-help

Hi Jim, Thank you for the message! Yes, you are right, I contacted Dr. Xu Zongli, he said he removed the ComBat.mc function from the new version. Ding From: Jim Lemon [mailto:drjimlemon at gmail.com] Sent: Wednesday, November...

data reshape
Yuan Chun Ding · Dec 20, 2019 · r-help

Hi Bert, Sorry that I was in a hurry going home yesterday afternoon and just posted my question and hoped to get some advice. Here is what I got yesterday before going home. --------------------------------------------------------------- setwd("C:/Awork/VNTR/GETXdata/GTEx_genotypes...

a fast way to do my job
Yuan Chun Ding · Aug 10, 2024 · r-help

You are right. I also just thought about that, no intercept is not applicable to my case. Ding From: Bert Gunter <bgunter.4567 at gmail.com> Sent: Saturday, August 10, 2024 1:06 PM To: Yuan Chun Ding <ycding at...

row combining 2972 files
Yuan Chun Ding · Mar 18, 2020 · r-help

Hi Denes, thank you very much for your mesasge!! I would like to learn from you. We generated preliminary data for a new project, so performing explorative analysis. since only sample size is relative small, I probably will both Cox...

please help generate a square correlation matrix
Yuan Chun Ding · Jul 27, 2024 · r-help

Hi Richard, Nice to know you had similar experience. Yes, your understanding is right. all correlations are negative after removing double-zero rows. It is consistent with a heatmap we generated. 1 is for a cancer patient with a specific...

find multiple mode, sorry for not providing enough information
Yuan Chun Ding · Mar 16, 2020 · r-help

Hi Jim, Yes, you are right. I sorted the tem4$Var1 first, then find rising peaks in Freq variable from left to right. I guess I probably need to define the minimal rising and drop on both side of a...

non-standard reshape from long to wide
Yuan Chun Ding · Jan 7, 2021 · r-help

Hi Bert, No, this Is not home work related. Original data have 87352 rows. I used the standard reshape function and got warning message. So I reformatted the wide format to meet my research purpose. mut2 <-mut[,c("Tumor_Sample...

add a variable a data frame to sequentially count unique rows
Yuan Chun Ding · Jul 2, 2021 · r-help

Hi Avi, Thank you for your patient with me!! Your code below generated what I want. test %>% group_by(group1,group2) %>% mutate(count2 = ifelse(row_number()==1, TRUE, FALSE)) %>% ungroup() your code reminded me of the SAS first. And last...

find multiple mode, sorry for not providing enough information
Yuan Chun Ding · Mar 16, 2020 · r-help

Hi Abby, Thank you so much for your effort!! I really appreciate your help!! I modified your code a little to get both maxv and corresponding alleles in var1. For now, I do not care too much for identifying small...

replace zero in a matrix using random numbers
Yuan Chun Ding · Jan 8, 2021 · r-help

Hi Bert and Rui, Thank you very much! I had thought for every condition of matrix ==0 , rnrom(n=1, 1, 0.1) will randomly generate a number with mean 1 and sd 0.1. Yuan From: Bert Gunter [mailto...

my R code worked well when running the first 1000 lines of R code
Yuan Chun Ding · Jun 12, 2024 · r-help

Hi Rui, Thank you very much! Yes, I verified using real data, it worked correctly as expected after adding tidyr:: to the pivot_longer function and dplyr:: to the group_by and summarize Function. I did not know how to...

Can't find what you're looking for? Try searching with Google .