Re: [R] Merging dataframes

2018-05-02 Thread Chintanu
mmon key) which rows from Table_A did not match with Table_B. I am not sure how to do this here. Thanks and regards, Chintanu On Tue, May 1, 2018 at 8:48 PM, Rui Barradas wrote: > Hello, > > Is it something like this that you want? > > x <- data.frame(a = c(1:3, 5, 5:10), b

Re: [R] Merging dataframes

2018-05-01 Thread Sarmah, Chintanu
key) which rows from Table_A did not match with Table_B. I am not sure how to do here. Thanks. On 1 May 2018, at 9:35 pm, Chintanu mailto:chint...@gmail.com>> wrote: -- Forwarded message -- From: peter dalgaard mailto:pda...@gmail.com>> Date: Tue, May 1, 2018 ar-h

[R] Merging dataframes

2018-05-01 Thread Chintanu
Hi, May I please ask how I do the following in R. Sorry - this may be trivial, but I am struggling here for this. For two dataframes (A and B), I wish to identify (based on a primary key-column present in both A & B) - 1. Which records (rows) of A did not match with B, and 2. Which records

[R] Kruskal-Wallis

2013-04-14 Thread Chintanu
b = 2:11, Sample_1c = 3:12, Sample_2a=4:13, Sample_2b=7:16, row.names=LETTERS[1:10]) groups <- rep (0:1, c(3,2)) kruskal <- apply(myFile [1:nrow(myFile),], 1, kruskal.test, **) p_kruskal <- sapply(kruskal, function(x) x$p.value) Thanks, Chintanu [[alternative HTM

Re: [R] Rows not common in dataframes

2012-09-25 Thread Chintanu
Thank you for your assistance - Arun, Milan, Rui. Much appreciated. In a related note, I have never been sure of how and when to use the binary operator, %in%. If you could share any easy explanation to it, that would be very useful. Cheers, Chintanu === On

[R] Rows not common in dataframes

2012-09-23 Thread Chintanu
, but I am not quite sure how to do it in a simpler way. Any help would be much appreciated. Thank you. Cheers, Chintanu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Significance of correlation

2012-07-31 Thread Chintanu
the statistical significance of the correlation. Could you please suggest how I should do that. Thank you. Kind regards, Chintanu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Counting frequency within each range

2012-07-26 Thread Chintanu
Thank you, all ! That's very helpful. Kind regards, Chintanu = On Fri, Jul 27, 2012 at 12:57 PM, arun wrote: > Hi, > > Try this:a<-c(4,5,23,34,43,54,56,65,67,324,435,453,456,567,657) > a1<-melt(table(cut(a,breaks=c(0,10,20,30,60,1

[R] Counting frequency within each range

2012-07-26 Thread Chintanu
ease help ! Thank you. Cheers, Chintanu [[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] Merging multiple .csv files

2012-04-11 Thread Chintanu
1] reshape_0.8.4 plyr_1.7.1 loaded via a namespace (and not attached): [1] tools_2.14.2 Cheers, Chintanu = On Wed, Apr 11, 2012 at 11:10 PM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: > Simply pass

Re: [R] Merging multiple .csv files

2012-04-10 Thread Chintanu
e union of (rows of) files based on "Name". Is there a way to look for intersection, i.e., similar to using: merge ( ,by="Name", all=FALSE) ? David: It came up with an error : do.call(merge, list_of_files, by="Name") Error in do.call(merge, list_of_fil

[R] Merging multiple .csv files

2012-04-10 Thread Chintanu
ist, by="Name") Any help would be appreciated. Thank you. regards, Chintanu [[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

Re: [R] legend

2012-03-08 Thread Chintanu
Thanks - Jason Connor, Rolf Turner and Pascal Oettli. Either of the following can remove the border surrounding the words. legend (locator(1), "Important ones", box.col=NA) legend (locator(1), " Important ones ", bty="n") regards, Chintanu [[al

[R] legend

2012-03-07 Thread Chintanu
LSE, fill=FALSE, "Important ones") legend (locator(1), border=NILL, fill=NILL, "Important ones") Thank you. regards, Chintanu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Wilcox test

2011-09-09 Thread Chintanu
hat is, in simple form, something like this : wilcox.test(groupA_samples of row i ~ groupB_samples of row i, ) regards, Chintanu == On Fri, Sep 9, 2011 at 3:32 PM, Jorge I Velez wrote: > Hi Chintau, > > For A, try > > # some

[R] Wilcox test

2011-09-08 Thread Chintanu
vise which focus more on the programming side of r, such as function-building ? The few books that I have gone thorugh have very less on such aspect - they focus more on statistical aspects and use of built-in functions. Thank you. Cheers, Chintanu [[alternative HTML

Re: [R] A small nag

2011-08-14 Thread Chintanu
work. > apply(file[1, 3:10], 1, cor(method = "spearman"), y = LGD) Error in .Internal(inherits(x, what, which)) : 'x' is missing 2. Is there any function available that can be used to check whether a variable is vector, matrix or data

Re: [R] A small nag

2011-08-14 Thread Chintanu
ctor. LGD <- c(11.6, 12.3, 15.8, 33.1, 43.5, 51.3, 67.3, 84.9) Now, correlation needs to be found between - i) each of the rows of the dataframe, and ii) LGD Thanks, Chintanu === On Mon, Aug 15, 2011 at 1:12 PM, Joshua Wiley wrote:

Re: [R] A small nag

2011-08-14 Thread Chintanu
31, 3:10], FUN = cor, y = rep(LGD, 47231), method = "pearson") Error in FUN(X[[1L]], ...) : incompatible dimensions Cheers, Chintanu === On Mon, Aug 15, 2011 at 12:09 PM, Joshua Wiley wrote: > Hi Chintanu, > > Do you want the corr

[R] A small nag

2011-08-14 Thread Chintanu
IME=English_Australia.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.13.0 Thank you. Kind regards, Chintanu [[alternative HTML version deleted]] _

[R] Loess fit

2010-05-17 Thread Chintanu
t of it is an NA !! Many thanks, Chintanu [[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.htm

[R] Help in web browser

2010-04-28 Thread Chintanu
way to set/do it ?? Please inform. Thank you. Chintanu [[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-guid