[R] Problem Regarding R Packages installation

2015-07-15 Thread Muhammad Sohail Raza
doing, lib = lib, ...) : installation of package �VariantAnnotation� had non-zero exit status I don't know how to deal with it, can anyone helpo me how to deal with it? Thanks! Muhammad Sohail RazaBeijing Institute of Genomics, CASBei

[R] lapply function

2015-05-30 Thread Sohail Khan
Hi R Gurus, I am writing a simple function that take a numeric vector column from a data frame and scales the vector column with certain criteria. I would then pass this function to a list of dataframes by lappy. Question is how do I write a function that works on a numeric vector. My function

[R] Cluster -- Agnes function

2014-09-24 Thread Sohail Khan
Dear All, I have clustered a patient data set by agnes. I want to extract information for each cluster, I.E. all row ids belonging to each cluster. Thank you. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list ht

Re: [R] reshape a dataset

2014-08-15 Thread Sohail Khan
Thanks Jim and Jorge, Clever solutions, the final output is a list. How do I covert it back a dataframe? -Sohail On Fri, Aug 15, 2014 at 5:37 AM, Jorge I Velez wrote: > Dear Sohail, > > Using Jim's data set skdat, two more options would be > > # first option > d

[R] reshape a dataset

2014-08-15 Thread Sohail Khan
suggestions. -Sohail [[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, minimal, self

Re: [R] combine all data frame columns into a vector.

2013-08-12 Thread Khan, Sohail
Thanks Arun and Bert. Both options work. -Sohail -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: Monday, August 12, 2013 4:51 PM To: Khan, Sohail Cc: R help Subject: Re: [R] combine all data frame columns into a vector. Hi, May be this help: dat1<- structure(l

Re: [R] combine all data frame columns into a vector.

2013-08-12 Thread Khan, Sohail
Thanks Bert, All are character values. -Sohail -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: Monday, August 12, 2013 4:35 PM To: Khan, Sohail Cc: greatest.possible.newbie; r-help@r-project.org Subject: Re: [R] combine all data frame columns into a vector

[R] combine all data frame columns into a vector.

2013-08-12 Thread Khan, Sohail
set. My strategy is to put all column value into a vector and then select unique from that vector. I would appreciate a more efficient method. Thanks. -Sohail The information contained in this electronic e-mail transmission and any attachments are intended only for the use of the individual

Re: [R] How to transpose it in a fast way?

2013-03-08 Thread Khan, Sohail
Perhaps you could process this with a unix/Linux utility "Awk", before reading the file into R. -Sohail From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of peter dalgaard [pda...@gmail.com] Sent: Friday, March 08, 20

Re: [R] Calculateing means

2012-11-16 Thread Khan, Sohail
means for x1-x3, x4-x6, x7-x9 For each row. -Sohail -Original Message- From: John Kane [mailto:jrkrid...@inbox.com] Sent: Friday, November 16, 2012 4:35 PM To: Khan, Sohail; 'r-help@r-project.org' Subject: RE: [R] Calculateing means ?aggregate will do it. x <- data.frame(

[R] Calculateing means

2012-11-16 Thread Khan, Sohail
Dear List, I have a data matrix with 570 columns containing 95 (samples) with 6 replicates each. How can I calculate the mean of the replicates for 95 samples? Thank you. The information contained in this electronic e-mail transmission and any attachments are intended only for the use of the

[R] CROSSTABULATION

2008-11-13 Thread Sohail
the missing category. Moreover, I have tried but failed to give the dimension names. -- Sohail Chand PhD Scholar C3b Pope Building School of Mathematical Sciences University of Nottingham Nottingham NG7 2RD UK Lecturer (On Study Leave) Institute of Statistics University of the Punjab Quaid-i-Azam

[R] Big O, little o

2008-11-12 Thread Sohail
Sorry for misusing this forum, Please, can anyone refer some book or other source to understand the concept of Big O and little o in probability? Regards, Sohail Chand [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] lars

2008-11-06 Thread Sohail
w to have the optimal one. Cheers, -- Sohail Chand [[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.h

[R] lars package help!

2008-11-05 Thread CHAND SOHAIL
quot; i.e. the lagrange's multiplier. Regards, Sohail This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of