From youtube_b at telus.net Tue Mar 1 05:50:33 2016 From: youtube_b at telus.net (JAKE88) Date: Mon, 29 Feb 2016 20:50:33 -0800 (PST) Subject: [datatable-help] ELMAN NETWORK IN RSNNS Message-ID: <1456807833391-4718063.post@n4.nabble.com> I am new to R and neural networks . So I trained and predicted an elman network like so : require ( RSNNS ) mydata = read.csv("mydata.csv",header = TRUE) mydata.train = mydata[1000:7000,] mydata.test = mydata[800:999,] fit <- elman ( mydata.train[,2:19],mydata.train[,1], size =100 learnFuncParams =c (0.1) , maxit =1000) pred <-predict (fit , mydata.test[,2:19]) so pred contains the predictions . The problem I am having is that When I run pred <-predict (fit , mydata.test[1,2:19]) i.e. on a specific data item , it doesn't give me the same prediction as in the previous batch . In fact , each call to predict produces a different result ! Should it not give me the same result ? The weights and everything are set and it should give the same result everytime , no ? Or are the batch predictions somehow depending on each other ? -- View this message in context: http://r.789695.n4.nabble.com/ELMAN-NETWORK-IN-RSNNS-tp4718063.html Sent from the datatable-help mailing list archive at Nabble.com. From ganivet.josua at gmail.com Thu Mar 3 09:49:23 2016 From: ganivet.josua at gmail.com (s1rp3) Date: Thu, 3 Mar 2016 00:49:23 -0800 (PST) Subject: [datatable-help] Error in scan Message-ID: <1456994963375-4718182.post@n4.nabble.com> Hi, I know it's a common error and there is a lot of help available but I still can't resolve the issue: all i am trying to do is to read a csv file from my folder and this is what i get: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : scan() expected 'a real', got '0,361146646' Is Anybody know what can be my Problem? Thank's for reading! best wishes! -- View this message in context: http://r.789695.n4.nabble.com/Error-in-scan-tp4718182.html Sent from the datatable-help mailing list archive at Nabble.com. From kaheil at gmail.com Thu Mar 3 12:53:28 2016 From: kaheil at gmail.com (Yasir Kaheil) Date: Thu, 3 Mar 2016 03:53:28 -0800 (PST) Subject: [datatable-help] Error in scan In-Reply-To: <1456994963375-4718182.post@n4.nabble.com> References: <1456994963375-4718182.post@n4.nabble.com> Message-ID: <1457006008058-4718185.post@n4.nabble.com> Make sure sep="," ----- Yasir Kaheil -- View this message in context: http://r.789695.n4.nabble.com/Error-in-scan-tp4718182p4718185.html Sent from the datatable-help mailing list archive at Nabble.com. From ganivet.josua at gmail.com Thu Mar 3 13:23:54 2016 From: ganivet.josua at gmail.com (s1rp3) Date: Thu, 3 Mar 2016 04:23:54 -0800 (PST) Subject: [datatable-help] Error in scan In-Reply-To: <1457006008058-4718185.post@n4.nabble.com> References: <1456994963375-4718182.post@n4.nabble.com> <1457006008058-4718185.post@n4.nabble.com> Message-ID: <1457007834899-4718186.post@n4.nabble.com> Oh Yes ! no actualy, I didn't write : sep="," but : dec="," and it's work now => No error in scan ! =D Thank's a lot Yasir Kaheil ! -- View this message in context: http://r.789695.n4.nabble.com/Error-in-scan-tp4718182p4718186.html Sent from the datatable-help mailing list archive at Nabble.com. From efresbr at gmail.com Sat Mar 5 12:33:23 2016 From: efresbr at gmail.com (Alice Cooper) Date: Sat, 5 Mar 2016 03:33:23 -0800 (PST) Subject: [datatable-help] Help with a loop/search/function Message-ID: <1457177603864-4718273.post@n4.nabble.com> Hello, I need help with some code. Basically, I have experiments results which I need to process. I have 2 dataframes with 3 columns Df1 <- data.frame (Date, Cellline, Data) Df2 <- data.frame (Date, Cellline, Control) I want for the entire column Df1-Data to be subtracted by the corresponding Df2-Controls which Columns Date and Cellline coincide through some type of loop. So the structure is: Df1$Data <- Df1$Data ? Df2$Control [when (Df1$Celline == Df2$Celline & Df1$Date == Df2$Date]) Each Control has several dozen Data values which are linked through Data and Celline. Of course, the data.frames are of different dimensions. I?ve tried several approaches and failed miserably. Any suggestions? Thank you in advance for any. -- View this message in context: http://r.789695.n4.nabble.com/Help-with-a-loop-search-function-tp4718273.html Sent from the datatable-help mailing list archive at Nabble.com. From aragorn168b at gmail.com Sat Mar 5 13:03:40 2016 From: aragorn168b at gmail.com (Arunkumar Srinivasan) Date: Sat, 5 Mar 2016 13:03:40 +0100 Subject: [datatable-help] Help with a loop/search/function In-Reply-To: <1457177603864-4718273.post@n4.nabble.com> References: <1457177603864-4718273.post@n4.nabble.com> Message-ID: This is the mailing list for data.table package. Please ask again on the r-help list. --? Arun On 5 March 2016 at 13:00:56, Alice Cooper (efresbr at gmail.com) wrote: Hello, I need help with some code. Basically, I have experiments results which I need to process. I have 2 dataframes with 3 columns Df1 <- data.frame (Date, Cellline, Data) Df2 <- data.frame (Date, Cellline, Control) I want for the entire column Df1-Data to be subtracted by the corresponding Df2-Controls which Columns Date and Cellline coincide through some type of loop. So the structure is: Df1$Data <- Df1$Data ? Df2$Control [when (Df1$Celline == Df2$Celline & Df1$Date == Df2$Date]) Each Control has several dozen Data values which are linked through Data and Celline. Of course, the data.frames are of different dimensions. I?ve tried several approaches and failed miserably. Any suggestions? Thank you in advance for any. -- View this message in context: http://r.789695.n4.nabble.com/Help-with-a-loop-search-function-tp4718273.html Sent from the datatable-help mailing list archive at Nabble.com. _______________________________________________ datatable-help mailing list datatable-help at lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help -------------- next part -------------- An HTML attachment was scrubbed... URL: From efresbr at gmail.com Sat Mar 5 12:38:23 2016 From: efresbr at gmail.com (Alice Cooper) Date: Sat, 5 Mar 2016 03:38:23 -0800 (PST) Subject: [datatable-help] Help with a loop/search/function In-Reply-To: References: <1457177603864-4718273.post@n4.nabble.com> Message-ID: <1457177903741-4718275.post@n4.nabble.com> Sorry Thanks -- View this message in context: http://r.789695.n4.nabble.com/Help-with-a-loop-search-function-tp4718273p4718275.html Sent from the datatable-help mailing list archive at Nabble.com. From adi2827 at gmail.com Mon Mar 7 04:08:43 2016 From: adi2827 at gmail.com (akang) Date: Sun, 6 Mar 2016 19:08:43 -0800 (PST) Subject: [datatable-help] Matrix multiplication Message-ID: <1457320123045-4718309.post@n4.nabble.com> I have two files. Row id in File1 matches the column id in file2 (starting from column7 )except the last 2 characters. File1 has 50 rows and File 2 has 56 columns. If the id matches I want to multiply the value in column3 of File1 to the entire column in File2. and in the final output print only Column2 and column7 onwards from file2. Any awk or R suggestions? File1 P1 A -0.468018 -3.49806 P2 A 0.0903727 0.675471 P3 C 0.441187 3.29752 P4 C 0.240075 1.79437 File2 ID1 ID2 ID3 ID4 ID5 ID6 P1_A P2_A P3_C........ 0 A01 0 0 0 0 0 2 1 0 A04 0 0 0 0 1 1 0 0 E05 0 0 0 0 0 1 2 0 G06 0 0 0 0 2 0 2 Output(I need the multiplication values to be printed to the final output file. Like in row2 & column2 of output file 0*-0.468018=0, so i want 0 to be printed and so on.) ID2 P1 P2 P3........ A01 0*-0.468018 2*0.0903727 .... A04 1*-0.468018 1*0.0903727... E05 0*-0.468018 1*0.0903727.... G06 2*-0.468018 0*0.0903727... This is what i have tried in R. But it doesn't give the desired output.I'll appreciate any help. TIA! Code: for(i in 1:nrow(file2)){ file2[i,2:6]<-file2[,2:6]*file1[match(substr(colnames(file2)[i],1,2),file1[,1]),3] } file2 -- View this message in context: http://r.789695.n4.nabble.com/Matrix-multiplication-tp4718309.html Sent from the datatable-help mailing list archive at Nabble.com. From suttoncarl at ymail.com Thu Mar 10 20:00:53 2016 From: suttoncarl at ymail.com (carlsutton) Date: Thu, 10 Mar 2016 11:00:53 -0800 (PST) Subject: [datatable-help] finding dt columns by partial name Message-ID: <1457636453824-4718464.post@n4.nabble.com> Hi I did search but did not see an answer. I have a dt with 580 + columns. many of the columns will have variations of a name to specifically identify them, ie, call23,Call111, doCall.now, etc. Since I cannot recall the exact column names I have been resorting to df <- data.frame(dt) and then a <- grep("Call1", colnames(df)) colnames(df[a]) which then returns the columns names containing Call1. If I try this with the data table ie, colnames(dt[a]) I get null. Any suggestions? I am feeling rather ignorant converting a dt back to a data frame and available memory may be a concern further down the road. Carl Sutton ----- Carl Sutton -- View this message in context: http://r.789695.n4.nabble.com/finding-dt-columns-by-partial-name-tp4718464.html Sent from the datatable-help mailing list archive at Nabble.com. From mel at mbacou.com Thu Mar 10 21:49:51 2016 From: mel at mbacou.com (Bacou, Melanie) Date: Thu, 10 Mar 2016 15:49:51 -0500 Subject: [datatable-help] finding dt columns by partial name In-Reply-To: <1457636453824-4718464.post@n4.nabble.com> References: <1457636453824-4718464.post@n4.nabble.com> Message-ID: <56E1DDEF.9030000@mbacou.com> Hi Carl, I'm not 100% sure what you're after, but I'm assuming you're looking for something like: dt[, .SD, .SDcols=names(dt) %like% "Call1"] That's syntax you can use to select all columns of a data.table containing "Call1". --Mel. On 3/10/2016 2:00 PM, carlsutton wrote: > Hi > > I did search but did not see an answer. > > I have a dt with 580 + columns. many of the columns will have variations of > a name to specifically identify them, ie, call23,Call111, doCall.now, etc. > Since I cannot recall the exact column names I have been resorting to df > <- data.frame(dt) and then > a <- grep("Call1", colnames(df)) > colnames(df[a]) > > which then returns the columns names containing Call1. > > If I try this with the data table ie, colnames(dt[a]) I get null. > > Any suggestions? I am feeling rather ignorant converting a dt back to a > data frame and available memory may be a concern further down the road. > > Carl Sutton > > > > ----- > Carl Sutton > -- > View this message in context: http://r.789695.n4.nabble.com/finding-dt-columns-by-partial-name-tp4718464.html > Sent from the datatable-help mailing list archive at Nabble.com. > _______________________________________________ > datatable-help mailing list > datatable-help at lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help From faino8 at gmail.com Sat Mar 12 13:51:45 2016 From: faino8 at gmail.com (Faino) Date: Sat, 12 Mar 2016 04:51:45 -0800 (PST) Subject: [datatable-help] Harris Corner detection Message-ID: <1457787105940-4718538.post@n4.nabble.com> Hello, I'm trying to write code for the Harris corner detector in R. But I didn't find any instructions for the R language, so I'm trying to rewrite this matlab code. The problem for me is that I can't find similary functions as filter2 or fspecial from matlab in R. Can anyone advise how to solve this problem? Matlab code thaht i want rewrite to R: clear; img = imread('seven.jpg'); if length(size(img))>2 img = rgb2gray(img); end fx = [-1 0 1;-1 0 1;-1 0 1]; Ix = filter2(fx,img); fy = [1 1 1;0 0 0;-1 -1 -1]; Iy = filter2(fy,img); Ix2 = Ix.^2; Iy2 = Iy.^2; Ixy = Ix.*Iy; clear Ix; clear Iy; h= fspecial('gaussian',[7 7],2); Ix2 = filter2(h,Ix2); Iy2 = filter2(h,Iy2); Ixy = filter2(h,Ixy); height = size(img,1); width = size(img,2); result = zeros(height,width); R = zeros(height,width); Rmax = 0; for i = 1:height for j = 1:width M = [Ix2(i,j) Ixy(i,j);Ixy(i,j) Iy2(i,j)]; R(i,j) = det(M)-0.01*(trace(M))^2; if R(i,j) > Rmax Rmax = R(i,j); end; end; end; cnt = 0; for i = 2:height-1 for j = 2:width-1 if R(i,j) > 0.1*Rmax && R(i,j) > R(i-1,j-1) && R(i,j) > R(i-1,j) && R(i,j) > R(i-1,j+1) && R(i,j) > R(i,j-1) && R(i,j) > R(i,j+1) && R(i,j) > R(i+1,j-1) && R(i,j) > R(i+1,j) && R(i,j) > R(i+1,j+1) result(i,j) = 1; cnt = cnt+1; end; end; end; [posc, posr] = find(result == 1); cnt ; imshow(img); hold on; plot(posr,posc,'r.'); -- View this message in context: http://r.789695.n4.nabble.com/Harris-Corner-detection-tp4718538.html Sent from the datatable-help mailing list archive at Nabble.com. From dljayasekera at yahoo.com Wed Mar 16 01:40:08 2016 From: dljayasekera at yahoo.com (dumidu jayasekera) Date: Wed, 16 Mar 2016 00:40:08 +0000 (UTC) Subject: [datatable-help] Obtain the index for an array References: <139871152.569748.1458088808709.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <139871152.569748.1458088808709.JavaMail.yahoo@mail.yahoo.com> Hi, I need to obtain (i.e. from 1 to 23) for "indYear" which means I need my indexing start from 1 to 23. How can I achieve this using R.? Thanks in advance, indYear <- which(flows[,1]==tTresults[3,1]):nrow(flows) > indYear?[1] 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomic0403 at gmail.com Thu Mar 17 03:35:45 2016 From: tomic0403 at gmail.com (NeoXx) Date: Wed, 16 Mar 2016 19:35:45 -0700 (PDT) Subject: [datatable-help] R: Function with two inputs telling whether the sum is a cube number Message-ID: <1458182145100-4718688.post@n4.nabble.com> So I want to do this: Write a function with two inputs X and Y that can tell you whether the sum of X^3 and Y^3 is a cube number so long as that sum is under 500 000 000. This is actually the special case of Fermat's Last Theorem where n=3. We know that there are no integers X and Y for which X^3 + Y^3 = Z^3 is true, but I suppose there are decimal numbers and fractions for which it is true... My code is as follows: > my.function <- function(X,Y) { + b <- round((X^(3)+Y^(3))^(1/3),digits=6) + if (b%%1==0) {return("Cube number") + } else { + return("Not a cube number") + } + } How can I implement the condition that the sum must be under 500 000 000 ? Does the code look all right? -- View this message in context: http://r.789695.n4.nabble.com/R-Function-with-two-inputs-telling-whether-the-sum-is-a-cube-number-tp4718688.html Sent from the datatable-help mailing list archive at Nabble.com. From kaheil at gmail.com Thu Mar 17 04:07:45 2016 From: kaheil at gmail.com (Yasir Kaheil) Date: Wed, 16 Mar 2016 20:07:45 -0700 (PDT) Subject: [datatable-help] R: Function with two inputs telling whether the sum is a cube number In-Reply-To: <1458182145100-4718688.post@n4.nabble.com> References: <1458182145100-4718688.post@n4.nabble.com> Message-ID: <1458184065480-4718689.post@n4.nabble.com> Add & b <= 5000000 to the first if. ----- Yasir Kaheil -- View this message in context: http://r.789695.n4.nabble.com/R-Function-with-two-inputs-telling-whether-the-sum-is-a-cube-number-tp4718688p4718689.html Sent from the datatable-help mailing list archive at Nabble.com. From tomic0403 at gmail.com Thu Mar 17 10:09:48 2016 From: tomic0403 at gmail.com (NeoXx) Date: Thu, 17 Mar 2016 02:09:48 -0700 (PDT) Subject: [datatable-help] Proving that an equation is always false Message-ID: <1458205788502-4718695.post@n4.nabble.com> So I need to do this: Write the code that proves that if X is in the range {1,....,100) and Y is in the range {1,...,100}, then there is no integer Z for which X^3 + Y^3 = Z^3. In other words my code must try all combinations of X and Y in that range and not find the solution to this equation. How could I write this? -- View this message in context: http://r.789695.n4.nabble.com/Proving-that-an-equation-is-always-false-tp4718695.html Sent from the datatable-help mailing list archive at Nabble.com. From ashokkrish at gmail.com Thu Mar 17 10:14:46 2016 From: ashokkrish at gmail.com (ashruser) Date: Thu, 17 Mar 2016 02:14:46 -0700 (PDT) Subject: [datatable-help] Proving that an equation is always false In-Reply-To: <1458205788502-4718695.post@n4.nabble.com> References: <1458205788502-4718695.post@n4.nabble.com> Message-ID: <1458206086042-4718696.post@n4.nabble.com> http://www.cnn.com/2016/03/16/europe/fermats-last-theorem-solved-math-abel-prize/index.html -- View this message in context: http://r.789695.n4.nabble.com/Proving-that-an-equation-is-always-false-tp4718695p4718696.html Sent from the datatable-help mailing list archive at Nabble.com. From dominik.danielowski at rwe.com Fri Mar 18 13:32:31 2016 From: dominik.danielowski at rwe.com (RDominik) Date: Fri, 18 Mar 2016 05:32:31 -0700 (PDT) Subject: [datatable-help] =?utf-8?q?Error_when_installing_package_?= =?utf-8?q?=E2=80=98openNLPmodels=2Ede=E2=80=99_in_R_/_RStudio?= In-Reply-To: <1458303963605-4718734.post@n4.nabble.com> References: <1458303963605-4718734.post@n4.nabble.com> Message-ID: <1458304351990-4718735.post@n4.nabble.com> I subscribed too late to the mailing list, so here ist my problem again. Can anyone help me? Thanks so much!!! -- View this message in context: http://r.789695.n4.nabble.com/Error-when-installing-package-openNLPmodels-de-in-R-RStudio-tp4718734p4718735.html Sent from the datatable-help mailing list archive at Nabble.com. From dominik.danielowski at rwe.com Fri Mar 18 15:40:59 2016 From: dominik.danielowski at rwe.com (RDominik) Date: Fri, 18 Mar 2016 07:40:59 -0700 (PDT) Subject: [datatable-help] =?utf-8?q?Error_when_installing_package_?= =?utf-8?q?=E2=80=98openNLPmodels=2Ede=E2=80=99_in_R_/_RStudio?= In-Reply-To: <1458303963605-4718734.post@n4.nabble.com> References: <1458303963605-4718734.post@n4.nabble.com> Message-ID: <1458312059477-4718745.post@n4.nabble.com> My question is solved now. If anybody else will have the same problem, here is the solution: I installed R and RStudio on C:\programs.... Because I have no right to write on C:\programs directy, I installed all packages in another network-place Y:\R.... Somehow the installation process has problems to handle with the network. I deinstalled R and RStudio completely and installed everything again (software and packages) under C:\tools\R... Now every installation runs very fast and I have even no problems with openNLPmodels.de anymore! Cheers RDominik -- View this message in context: http://r.789695.n4.nabble.com/Error-when-installing-package-openNLPmodels-de-in-R-RStudio-tp4718734p4718745.html Sent from the datatable-help mailing list archive at Nabble.com. From Santib2002 at gmail.com Sat Mar 19 22:59:30 2016 From: Santib2002 at gmail.com (Santib2002) Date: Sat, 19 Mar 2016 14:59:30 -0700 (PDT) Subject: [datatable-help] HELP!! Mann whitney in R. Message-ID: <1458424770369-4718804.post@n4.nabble.com> This may be really basic, but could you help me with this issue? I have an excel file named table1.xls. I need to input this table in r, in order to calculate mann whitney between columns 1 and 2. Could you please show me how to do this task? -- View this message in context: http://r.789695.n4.nabble.com/HELP-Mann-whitney-in-R-tp4718804.html Sent from the datatable-help mailing list archive at Nabble.com. From elaakoaserge at yahoo.fr Sun Mar 20 06:41:59 2016 From: elaakoaserge at yahoo.fr (ELA Serge) Date: Sun, 20 Mar 2016 05:41:59 +0000 (UTC) Subject: [datatable-help] please unsubscribe me References: <207580669.2625274.1458452519796.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <207580669.2625274.1458452519796.JavaMail.yahoo@mail.yahoo.com> please remove my email to the list. Thank you?Serge??ELA? ?AKOA Attach? de Recherche CliniqueClinical Data ManagerIng?nieur Bio-informaticien -------------- next part -------------- An HTML attachment was scrubbed... URL: From irholtman at gmail.com Sun Mar 20 06:44:35 2016 From: irholtman at gmail.com (IR Holtman) Date: Sun, 20 Mar 2016 05:44:35 +0000 Subject: [datatable-help] please unsubscribe me In-Reply-To: <207580669.2625274.1458452519796.JavaMail.yahoo@mail.yahoo.com> References: <207580669.2625274.1458452519796.JavaMail.yahoo.ref@mail.yahoo.com> <207580669.2625274.1458452519796.JavaMail.yahoo@mail.yahoo.com> Message-ID: Remove me too please!! On Sat, Mar 19, 2016, 22:42 ELA Serge wrote: > please remove my email to the list. > > Thank you > > > *Serge ELA AKOA* > Attach? de Recherche Clinique > Clinical Data Manager > Ing?nieur Bio-informaticien > _______________________________________________ > datatable-help mailing list > datatable-help at lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help -------------- next part -------------- An HTML attachment was scrubbed... URL: From suttoncarl at ymail.com Sun Mar 20 19:19:07 2016 From: suttoncarl at ymail.com (Carl Sutton) Date: Sun, 20 Mar 2016 18:19:07 +0000 (UTC) Subject: [datatable-help] HELP!! Mann whitney in R. In-Reply-To: <1458424770369-4718804.post@n4.nabble.com> References: <1458424770369-4718804.post@n4.nabble.com> Message-ID: <1135632685.1856031.1458497947855.JavaMail.yahoo@mail.yahoo.com> 1.? in excel save the file as either .csv or .txt into the same directory you will be writing your script(this saves having to direct R to a path to the data) 2.? use either read.table or read.csv to get the data into memory? ?read.table will get you all you need to know to accomplish this3.? google mann whitney u test R and to get the information to do your testing?Carl Sutton On Saturday, March 19, 2016 3:28 PM, Santib2002 wrote: This may be really basic, but could you help me with this issue? I have an excel file named table1.xls. I need to input this table in r, in order to calculate mann whitney between columns 1 and 2. Could you please show me how to do this task? -- View this message in context: http://r.789695.n4.nabble.com/HELP-Mann-whitney-in-R-tp4718804.html Sent from the datatable-help mailing list archive at Nabble.com. _______________________________________________ datatable-help mailing list datatable-help at lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help -------------- next part -------------- An HTML attachment was scrubbed... URL: From suttoncarl at ymail.com Mon Mar 21 06:55:33 2016 From: suttoncarl at ymail.com (carlsutton) Date: Sun, 20 Mar 2016 22:55:33 -0700 (PDT) Subject: [datatable-help] := and ':=" throwing errors Message-ID: <1458539732478-4718825.post@n4.nabble.com> My goal is to create proportions for several variables, by group, and save these in new columns. So far I have spent most of the day researching this, retaking the Data Camp data table course, and all iterations have failed miserably. Several google searches were not helpful. Console out put (code and error messages below. Hopefully. Proportions.R Carl Sutton ----- Carl Sutton -- View this message in context: http://r.789695.n4.nabble.com/and-throwing-errors-tp4718825.html Sent from the datatable-help mailing list archive at Nabble.com. From my.r.help at gmail.com Mon Mar 21 10:05:54 2016 From: my.r.help at gmail.com (Michael Smith) Date: Mon, 21 Mar 2016 17:05:54 +0800 Subject: [datatable-help] please unsubscribe me In-Reply-To: <207580669.2625274.1458452519796.JavaMail.yahoo@mail.yahoo.com> References: <207580669.2625274.1458452519796.JavaMail.yahoo.ref@mail.yahoo.com> <207580669.2625274.1458452519796.JavaMail.yahoo@mail.yahoo.com> Message-ID: <56EFB972.40005@gmail.com> Just go to the link below. On 03/20/2016 01:41 PM, ELA Serge wrote: > please remove my email to the list. > > Thank you > *Serge ELA AKOA/ > /* > Attach? de Recherche Clinique > Clinical Data Manager > Ing?nieur Bio-informaticien > > > _______________________________________________ > datatable-help mailing list > datatable-help at lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help > From cronacronis at gmail.com Mon Mar 21 09:16:23 2016 From: cronacronis at gmail.com (Cron Acronis) Date: Mon, 21 Mar 2016 08:16:23 +0000 (UTC) Subject: [datatable-help] := and ':=" throwing errors References: <1458539732478-4718825.post@n4.nabble.com> Message-ID: On Sun, 20 Mar 2016 22:55:33 -0700, carlsutton wrote: > My goal is to create proportions for several variables, by group, and > save these in new columns. So far I have spent most of the day > researching this, retaking the Data Camp data table course, and all > iterations have failed miserably. Several google searches were not > helpful. Console out put (code and error messages below. Hopefully. > Proportions.R > > > > Carl Sutton > > > > ----- > Carl Sutton Try this: dt1[, ':='(propta = sum(a)/.N, propt.b = sum(b)/.N), by = c] From mel at mbacou.com Mon Mar 21 12:31:52 2016 From: mel at mbacou.com (Bacou, Melanie) Date: Mon, 21 Mar 2016 07:31:52 -0400 Subject: [datatable-help] HELP!! Mann whitney in R. In-Reply-To: <1135632685.1856031.1458497947855.JavaMail.yahoo@mail.yahoo.com> References: <1458424770369-4718804.post@n4.nabble.com> <1135632685.1856031.1458497947855.JavaMail.yahoo@mail.yahoo.com> Message-ID: <56EFDBA8.8000808@mbacou.com> For smallish spreadsheets, it's often faster to just copy & paste into R (though that's not exactly "reproducible"), using: df <- read.delim("clipboard-128") For larger datasets, using data.table fread() with a CSV file is more efficient: df <- fread(".csv") --Mel. On 3/20/2016 2:19 PM, Carl Sutton wrote: > 1. in excel save the file as either .csv or .txt > into the same directory you will be writing your script(this saves > having to direct R to a path to the data) > 2. use either read.table or read.csv to get the data into memory > ?read.table will get you all you need to know to accomplish this > 3. google mann whitney u test R and to get the information to do your > testing > Carl Sutton > > > On Saturday, March 19, 2016 3:28 PM, Santib2002 > wrote: > > > > This may be really basic, but could you help me with this issue? > I have an excel file named table1.xls. > I need to input this table in r, in order to calculate mann > whitney between > columns 1 and 2. > Could you please show me how to do this task? > > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/HELP-Mann-whitney-in-R-tp4718804.html > Sent from the datatable-help mailing list archive at Nabble.com. > _______________________________________________ > datatable-help mailing list > datatable-help at lists.r-forge.r-project.org > > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help > > > > > _______________________________________________ > datatable-help mailing list > datatable-help at lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help -------------- next part -------------- An HTML attachment was scrubbed... URL: From dominik.danielowski at rwe.com Mon Mar 21 12:11:16 2016 From: dominik.danielowski at rwe.com (RDominik) Date: Mon, 21 Mar 2016 04:11:16 -0700 (PDT) Subject: [datatable-help] HELP!! Mann whitney in R. In-Reply-To: <56EFDBA8.8000808@mbacou.com> References: <1135632685.1856031.1458497947855.JavaMail.yahoo@mail.yahoo.com> <56EFDBA8.8000808@mbacou.com> Message-ID: <1458558676360-4718832.post@n4.nabble.com> If you want to keep your excel file for format reasons you can use the "xlsx" package: library(xlsx) rfile <- read.xlsx("C:/temp/file.xlsx", sheetName="sheet1") Cheers, RDominik -- View this message in context: http://r.789695.n4.nabble.com/Re-HELP-Mann-whitney-in-R-tp4718814p4718832.html Sent from the datatable-help mailing list archive at Nabble.com. From my.r.help at gmail.com Wed Mar 23 03:25:27 2016 From: my.r.help at gmail.com (Michael Smith) Date: Wed, 23 Mar 2016 10:25:27 +0800 Subject: [datatable-help] HELP!! Mann whitney in R. In-Reply-To: <1458558676360-4718832.post@n4.nabble.com> References: <1135632685.1856031.1458497947855.JavaMail.yahoo@mail.yahoo.com> <56EFDBA8.8000808@mbacou.com> <1458558676360-4718832.post@n4.nabble.com> Message-ID: <56F1FE97.4000307@gmail.com> The XLConnect package is also nice. M On 03/21/2016 07:11 PM, RDominik wrote: > If you want to keep your excel file for format reasons you can use the "xlsx" > package: > > library(xlsx) > rfile <- read.xlsx("C:/temp/file.xlsx", sheetName="sheet1") > > Cheers, RDominik > > > > -- > View this message in context: http://r.789695.n4.nabble.com/Re-HELP-Mann-whitney-in-R-tp4718814p4718832.html > Sent from the datatable-help mailing list archive at Nabble.com. > _______________________________________________ > datatable-help mailing list > datatable-help at lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help >