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.
Dear all, I am really sorry for not giving the input file because in my mail,I did not explain my problem in a best way. I have a file that is summary.txt(I have attached it) .we can...
Dear all, I need your help as I was not able to find out the solution.I sent this message before but did not get any help.Please help me. The thing is- I am having a code which is...
I have tried that also.But it is showing this error- aggregate(file[,3:6], by = list(file[,2]), FUN = sum) Error in FUN(X[[1L]], ...) : invalid 'type' (character) of argument Thanking you, Warm Regards Vikas Bansal Msc Bioinformatics Kings...
Dear sir, I have one more problem.Sorry to disturb you again. I have a data frame like this- Col1 Col2 Col3 Col4 1 0 1 4 0 0 0 2 4 2 0 0 1 5 0 0 0...
Dear all, I have also attached my question in txt file because of bad column spacing. I have two data frames df Chr Pos CaseA CaseC CaseG CaseT 10 135349878 0.000000 3.428571 0.000000 20.571429 10 135349880...
Thanking you, Warm Regards Vikas Bansal Msc Bioinformatics Kings College London ________________________________________ From: David Winsemius [dwinsemius at comcast.net] Sent: Saturday, July 02, 2011 6:19 PM To: Bansal, Vikas Cc: r-help at r-project.org Subject: Re: [R] For...
Dear all, I have a problem and it is very difficult for me to get a code. I am reading a file(attached with this mail) using the code- df=read.table("summary.txt",fill=T,sep="",colClasses = "character",header...
So i think I am doing mistake in converting ASCII values in col V10 in my data frame (dfa.).can you please tell me that, is this the right way to convert ASCII values into decimal- dfa$V10=lapply(dfa...
>> Dear all, >> >> I am doing a project on variant calling using R.I am working on >> pileup file.There are 10 columns in my data frame and I want to >> count the number of A,C,G and T in...
Yes sir.I have already looked at merge() but as I am new to R,I was not able to understand the argument that how should i create a code for the logic i gave in previous mail . Thanking you...
Dear David, it is showing this error- data.frame(A = unlist(lapply( lapply( sapply(mydf[,5], strsplit, + split="a|A"), length) , "-", 1)),C = unlist(lapply( lapply( sapply((mydf[,5], strsplit, split="c|C"), Error: unexpected ',' in: "data.frame(A = unlist...
Dear all, I am using grep but I did not understand the problem as I am doing something wrong.Please help me. I am using this code- sf=data.frame(sapply(df[],function(x) grep('\\.&\\,', df[,9]))) the thing is...
Dear all, I have been working on this problem from so many hours but did not find any solution. I have a data frame with 8 columns- V1 V2 V3 V4 W1 W2 W3 W4 1 0 84 22 10...
Hi I sorted out a little bit- I am using this code- vi=(m1 <- merge(blaa, daf, by.x = "V2", by.y = "V2")) (m2 <- merge(daf, blaa, by.x = "V2", by.y = "V2")) results are also coming fine. but i...
Dear all, Thanks to everyone.I tried both the methods and it is working. Thanking you, Warm Regards Vikas Bansal Msc Bioinformatics Kings College London ________________________________________ From: David Winsemius [dwinsemius at comcast.net] Sent: Sunday, August 07, 2011 8:31 PM...
Thanks for your reply. Can I use grep with numbers also? 5961 T 17 0 9 5962 T 17 0 9 5963 A 17 0 9 5964 G 13 0 10 5965 G 13 0 9 5966 G 13 0...
HI THIS SEEMS LITTLE BIT CONFUSING.BUT I AM USING THIS CODING AS SUGGESTED BY YOU- df=read.table("Case2.pileup",fill=T,sep="\t",colClasses = "character") txt=df[,9] txtvec <- readLines(textConnection(txt)) vik=data.frame(A = unlist(lapply...
Dear David, Thanks for your reply.I tried your code it is running but as I mentioned in my mail,I am working on pileup file.So I used a command- mydf=read.table("Case2.pileup",fill=T,sep="\t...
I have tried the aggregate command but it shows this error- vars <- paste('Case', c('A', 'C', 'G', 'T'), sep = '') > vars [1] "CaseA" "CaseC" "CaseG" "CaseT" > aggregate(file[vars], by = file['Pos'], FUN = sum) Error in FUN(X[[1L]], ...) : invalid...
I used this code by Jim Holtman (Thanks to him)and it is working perfectly. dfa$value <- sapply(dfa$V10, function(a) paste(as.integer(charToRaw(a)), collapse = ' ')) Thanking you, Warm Regards Vikas Bansal Msc Bioinformatics Kings College London ________________________________________ From...
Can't find what you're looking for? Try searching with Google .