Re: [R] please help generate a square correlation matrix

2024-07-28 Thread Richard O'Keefe
> so I want to measure how strong the exclusiveness between two specific > > mutation types across those patients with at least one mutation type. > > > > > > Then put the pair of mutations with strong negative mutations on the top > > rows by order of negative mutat

Re: [R] please help generate a square correlation matrix

2024-07-27 Thread Yuan Chun Ding via R-help
O'Keefe ; r-help@r-project.org Subject: Re: [R] please help generate a square correlation matrix Your expanded explanation helps clarify your intent. Herewith some comments. Of course, feel free to ignore and not respond. And, as always, my apologies if I have failed to comprehend your intent.

Re: [R] please help generate a square correlation matrix

2024-07-27 Thread Bert Gunter
gative correlated mutations, > the drug treatment for cancer patients is usually only for those patients > carrying the specific mutation, > > then it is informative to know how strong the negative correlation when > considering different combination of treatment strategies. > > >

Re: [R] please help generate a square correlation matrix

2024-07-27 Thread Yuan Chun Ding via R-help
mutation, then it is informative to know how strong the negative correlation when considering different combination of treatment strategies. Ding From: R-help On Behalf Of Richard O'Keefe Sent: Saturday, July 27, 2024 4:47 AM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] please

Re: [R] please help generate a square correlation matrix

2024-07-27 Thread Richard O'Keefe
;-gene22mut.coded > > > > r <- P <- matrix(NA, nrow = 22L, ncol = 22L, > > > > dimnames = list(names(dat), names(dat))) > > > > > > > > for(i in 1:22) { > > > >#i=1 > > > >x <- dat[[i]]

Re: [R] please help generate a square correlation matrix

2024-07-27 Thread Richard O'Keefe
t: Thursday, July 25, 2024 11:26 AM > > > To: Rui Barradas ; r-help@r-project.org > > > Subject: Re: [R] please help generate a square correlation matrix > > > > > > HI Rui, Thank you for the help! You did not remove a row if zero values > > > exist in bot

Re: [R] please help generate a square correlation matrix

2024-07-25 Thread Bert Gunter
tem2[,2]) > >r[i, j] <- tmp3$estimate > > P[i, j] <- tmp3$p.value > > } > >} > > } > > r<-as.data.frame(r) > > P<-as.data.frame(P) > > > > From: R-help On Behalf Of Yuan Chun Ding via > > R-help >

Re: [R] please help generate a square correlation matrix

2024-07-25 Thread Rui Barradas
5, 2024 11:26 AM To: Rui Barradas ; r-help@r-project.org Subject: Re: [R] please help generate a square correlation matrix HI Rui, Thank you for the help! You did not remove a row if zero values exist in both column pair, right? Ding From: Rui Barradas Sent: Thursday, July 25, 2024 11: 15 AM To: Yua

Re: [R] please help generate a square correlation matrix

2024-07-25 Thread Yuan Chun Ding via R-help
.test(tem2[,1],tem2[,2]) r[i, j] <- tmp3$estimate P[i, j] <- tmp3$p.value } } } r<-as.data.frame(r) P<-as.data.frame(P) From: R-help On Behalf Of Yuan Chun Ding via R-help Sent: Thursday, July 25, 2024 11:26 AM To: Rui Barradas ; r-help@r-project.org Subject: Re: [

Re: [R] please help generate a square correlation matrix

2024-07-25 Thread Yuan Chun Ding via R-help
HI Rui, Thank you for the help! You did not remove a row if zero values exist in both column pair, right? Ding From: Rui Barradas Sent: Thursday, July 25, 2024 11:15 AM To: Yuan Chun Ding ; r-help@r-project.org Subject: Re: [R] please help generate a square correlation matrix Às 17: 39 de

Re: [R] please help generate a square correlation matrix

2024-07-25 Thread Rui Barradas
Às 17:39 de 25/07/2024, Yuan Chun Ding via R-help escreveu: Hi R users, I generated a square correlation matrix for the dat dataframe below; dat<-data.frame(g1=c(1,0,0,1,1,1,0,0,0), g2=c(0,1,0,1,0,1,1,0,0), g3=c(1,1,0,0,0,1,0,0,0), g4=c(0,1,0,1,

[R] please help generate a square correlation matrix

2024-07-25 Thread Yuan Chun Ding via R-help
Hi R users, I generated a square correlation matrix for the dat dataframe below; dat<-data.frame(g1=c(1,0,0,1,1,1,0,0,0), g2=c(0,1,0,1,0,1,1,0,0), g3=c(1,1,0,0,0,1,0,0,0), g4=c(0,1,0,1,1,1,1,1,0)) library("Hmisc") dat.rcorr = rcorr(as.matrix(dat)) da

Re: [R] Please help - my IP was blacklisted

2023-03-14 Thread Ivan Krylov
В Tue, 14 Mar 2023 02:03:29 +0200 Guy Kelman пишет: > A while ago I tried to bundle packages for offline installations. For > this I created a script that would access > ftp://cran.r-project.org/pub/R/src/contrib/ for each package in a > loop. Next time, follow the instructions at https://cran.r

[R] Please help - my IP was blacklisted

2023-03-14 Thread Guy Kelman
Dear r-help@, A while ago I tried to bundle packages for offline installations. For this I created a script that would access ftp://cran.r-project.org/pub/R/src/contrib/ for each package in a loop. The first trial was bugous and it generated many bad URL requests to cran.r-project.org >From that m

Re: [R] Please help me debugg

2021-11-05 Thread Ivan Krylov
On Fri, 5 Nov 2021 12:29:21 +0530 Shrinivas Dharma wrote: > I am trying to run the following double loop which I have written > but it is not running. Thanks for providing the code, but it's much easier to help you if you provide the data, too. Use dput(head(...)) to make it easy for us to copy

[R] Please help me debugg

2021-11-05 Thread Shrinivas Dharma
I am trying to run the following double loop which I have written but it is not running. Unable to get my head around the mistake. Please try to spot the bug and help > for(i in 1:122){ + for(j in 1:68){ + if(V(FriendGraph)$name[i]==names[j]){ + gender_vector[i]<-sex[j] + break;} + else{gender_ve

Re: [R] please help with "could not find function "ComBat.mc" "

2020-11-12 Thread Yuan Chun Ding
: Re: [R] please help with "could not find function "ComBat.mc" " Hi Yuan, The package named "Enmix" is maintained on Bioconductor. It seems to be specific to particular lab equipment and so all I can advise is: 1) Try your question on the Bioconductor help list 2) I

Re: [R] please help with "could not find function "ComBat.mc" "

2020-11-11 Thread Jim Lemon
Hi Yuan, The package named "Enmix" is maintained on Bioconductor. It seems to be specific to particular lab equipment and so all I can advise is: 1) Try your question on the Bioconductor help list 2) If no help there contact Zongli Xu (the maintainer) Jim On Thu, Nov 12, 2020 at 11:40 AM Yuan Ch

[R] please help with "could not find function "ComBat.mc" "

2020-11-11 Thread Yuan Chun Ding
Hi All, I am very sorry to bother you. This week, I updated my R from 3.5.3  to 4.0.3, reinstalled all required R packages and reran the following R code; then got the following error: could not find function "ComBat.mc". > #' firstly Removing chip-well batch effects using ComBat from the

Re: [R] Please help translate this program in C++ to R

2019-12-15 Thread Richard O'Keefe
As a C implementation of merge sort, that is the very reverse of impressive. I would not translate *that* code into anything. There is a fundamental difference between between arrays in C and arrays in R, and it is the same as the difference between Python and R. You are MUCH better to start from

Re: [R] Please help translate this program in python to R.

2019-12-15 Thread Richard O'Keefe
The obvious question is "why?" If you just want to sort stuff, ?sort and ?order tell you about the sorting methods available in R. If you want to translate this specific algorithm into R for some reason, (a) if you don't know enough about array processing in R to do this yourself, how are you

Re: [R] Please help translate this program in python to R.

2019-12-14 Thread Eric Berger
And similar to my response to the C++ question you posted, it is possible to incorporate Python code into R programs using the reticulate package. On Sun, Dec 15, 2019 at 5:58 AM Boris Steipe wrote: > > See my response to the C++ question you posted a minute later. > > B. > > > > > > On 2019-12-1

Re: [R] Please help translate this program in C++ to R

2019-12-14 Thread Eric Berger
It is fairly easy to incorporate C++ code into R programs using the Rcpp package. Definitely worth the effort to learn how to do this. On Sun, Dec 15, 2019 at 5:48 AM Boris Steipe wrote: > > See this thread why that's a bad idea ... > https://stackoverflow.com/questions/26080716/merge-sort-in-r

Re: [R] Please help translate this program in python to R.

2019-12-14 Thread Boris Steipe
See my response to the C++ question you posted a minute later. B. > On 2019-12-15, at 05:35, Александр Дубровский wrote: > > # Iterative Merge sort (Bottom Up) > > # Iterative mergesort function to > # sort arr[0...n-1] > def mergeSort(a): > >current_size = 1 > ># Outer loop for t

Re: [R] Please help translate this program in C++ to R

2019-12-14 Thread Boris Steipe
See this thread why that's a bad idea ... https://stackoverflow.com/questions/26080716/merge-sort-in-r ... and use the code given there, or give us some context why a literal translation would be important to you. Cheers, Boris > On 2019-12-15, at 05:37, Александр Дубровский wrote: > > /*

[R] Please help translate this program in C++ to R

2019-12-14 Thread Александр Дубровский
/* Iterative C program for merge sort */ #include #include /* Function to merge the two haves arr[l..m] and arr[m+1..r] of array arr[] */ void merge(int arr[], int l, int m, int r); // Utility function to find minimum of two integers int min(int x, int y) { return (xhttps://stat.ethz.ch/mailman/l

[R] Please help translate this program in python to R.

2019-12-14 Thread Александр Дубровский
# Iterative Merge sort (Bottom Up) # Iterative mergesort function to # sort arr[0...n-1] def mergeSort(a): current_size = 1 # Outer loop for traversing Each # sub array of current_size while current_size < len(a) - 1: left = 0 # Inner loop for merge call

Re: [R] Please help with ggplot error Resolved!

2019-06-12 Thread Bill Poling
Hello Rui, yes, I thought of that and rebooted RStudio and only loaded the specific pkgs for this project and that fixed that issue. Thank you Rui! WHP From: Rui Barradas Sent: Wednesday, June 12, 2019 3:01 PM To: Bill Poling ; r-help (r-help@r-project.org) Subject: Re: [R] Please help

Re: [R] Please help with ggplot error

2019-06-12 Thread Rui Barradas
quot;NULL" WHP From: Rui Barradas Sent: Wednesday, June 12, 2019 2:03 PM To: Bill Poling ; r-help (r-help@r-project.org) Subject: Re: [R] Please help with ggplot error Hello, Works with me, as soon as I corrected "Loess" to "loess". Hope this helps, Rui Barradas

Re: [R] Please help with ggplot error

2019-06-12 Thread Bill Poling
: no applicable method for 'margin' applied to an object of class "NULL" WHP From: Rui Barradas Sent: Wednesday, June 12, 2019 2:03 PM To: Bill Poling ; r-help (r-help@r-project.org) Subject: Re: [R] Please help with ggplot error Hello, Works with me, as soon as I corre

Re: [R] Please help with ggplot error

2019-06-12 Thread Bill Poling
Oh my, sheesh! Oh my gosh! UGH! Thank you Rui! WHP From: Rui Barradas Sent: Wednesday, June 12, 2019 2:03 PM To: Bill Poling ; r-help (r-help@r-project.org) Subject: Re: [R] Please help with ggplot error Hello, Works with me, as soon as I corrected "Loess" to "loess&quo

Re: [R] Please help with ggplot error

2019-06-12 Thread Rui Barradas
Hello, Works with me, as soon as I corrected "Loess" to "loess". Hope this helps, Rui Barradas Às 18:56 de 12/06/19, Bill Poling escreveu: #RStudio Version 1.2.1335 sessionInfo() #R version 3.6.0 Patched (2019-05-19 r76539) #Platform: x86_64-w64-mingw32/x64 (64-bit) #Running under: Windows 1

[R] Please help with ggplot error

2019-06-12 Thread Bill Poling
#RStudio Version 1.2.1335 sessionInfo() #R version 3.6.0 Patched (2019-05-19 r76539) #Platform: x86_64-w64-mingw32/x64 (64-bit) #Running under: Windows 10 x64 (build 17134) Hello I am getting an error for which I have googled to remedy but have not found a resource for it. I found this but it

Re: [R] please help me a little

2018-02-09 Thread Jeff Newmiller
I don't use coxphf, but it is generally a bad idea to reference variables via multiple environments (e.g. global and the data= argument in this case) directly from within a formula. Just use FAM138A.chr wherever you have used test[,6] and it should work. -- Sent from my phone. Please excuse my

[R] please help me a little

2018-02-09 Thread Ding, Yuan Chun
Hi R Users, I am very frustrated with the following code. Please do me a favor to run it. after reading into the test data set (I also pasted the data set below), the first line of code for "res_coxphf" did not work and generated the error code below. but the other three line worked well. the

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-05 Thread Mark Sharp
I am trying to figure out the algorithm you are using to calculate event_episodes, event_status, and start_minutes. Where does the 129600 come from? Why is the start(minutes) 0 for the last row instead of 40? Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jul 5, 2017, at 1:03 AM, Sunny

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-05 Thread Bert Gunter
Strictly speaking, this is reliability, not survival, data, since failed pumps are apparently repaired and put back in service as new. Also, it is not clear from your data whether there is interval censoring: is the recorded "event" time (failure) the actual failure time -- so no censoring -- or th

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-04 Thread Sunny Singha
Mark, Below is the sampled simulated granular data format for pumps for trial period of 3 months that I need to transform for survival analysis: 3 months = (60*24*90) minutes i.e 129600 minutes pump_id timingsevents vibration temprature flow pump1 01-07-2017 00:00 0

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-04 Thread Mark Sharp
A small example data set that illustrates your question will be of great value to those trying to help. This appears to be a transformation that you are wanting to do (timestamp to units of time) so a data representing what you have (dput() is handy for this) and one representing what you want t

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-04 Thread Sunny Singha
Thanks Boris and Bret, I was successful in simulating granular/transactional data. Now I need some guidance to transform the same data in format acceptable for survival analysis i.e below format: pump_id | event_episode_no. | event(0/1) | start | stop | time_to_dropout The challenge I'm experienc

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-06-28 Thread Boris Steipe
In principle what you need to do is the following: - break down the time you wish to simulate into intervals. - for each interval, and each failure mode, determine the probability of an event. Determining the probability is the fun part, where you make your domain knowledge explicit and i

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-06-27 Thread Bert Gunter
I think you need to find a local consultant. Someone here might have a suggestion or two where to look (as I do below), but this list only provides help on R programming code, not statistical issues (see programming guide below for details). You might wish to have a look at the CRAN survival analy

[R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-06-27 Thread sandeep Rana
Hi friends, I haven't done such a simulation before and any help would be greatly appreciated. I need your guidance. I need to simulate end to end data for Reliability/survival analysis of a Pump ,with correlation in place, that is at 'Transactional level' or at the granularity of time-minutes

Re: [R] Please help with creating the improved image with pheatmap package

2016-10-03 Thread Jim Lemon
Hi Maryam, Your labels have been "greeked" as the font is too small to be displayed properly. If you must use PNG format, specify your image file at least twice as high. png("pheatmap.png",width=1254,height=5000) PDF would be a better choice as you can just zoom in and scroll down. Jim On Mon,

Re: [R] Please help with creating the improved image with pheatmap package

2016-10-03 Thread David Winsemius
> On Oct 3, 2016, at 4:43 AM, maryam moazam wrote: > > Hi all, > > I'm trying to show about 190 items using "pheatmap" package. I'm working > with R 3.3.1 on windows 7. I used the following code: > > pheatmap(mat_data, cellwidth=20, cluster_rows = FALSE, cluster_cols = > FALSE, fontsize=5, fon

[R] Please help with creating the improved image with pheatmap package

2016-10-03 Thread maryam moazam
Hi all, I'm trying to show about 190 items using "pheatmap" package. I'm working with R 3.3.1 on windows 7. I used the following code: pheatmap(mat_data, cellwidth=20, cluster_rows = FALSE, cluster_cols = FALSE, fontsize=5, fontsize_row=5, margins=c(5,10)) The resulted image is attached. Please

Re: [R] Please help me, I'm trying to update my version of R

2016-08-23 Thread KMNanus
Thanks for getting back to me. Worked like a charm. Ken kmna...@gmail.com 914-450-0816 (tel) 347-730-4813 (fax) > On Aug 22, 2016, at 11:45 PM, Thomas Mailund wrote: > > Hi Ken, > > You are trying to install R as a package. That won't work. The .pkg file you > downloaded from https://cra

Re: [R] Please help me, I'm trying to update my version of R

2016-08-22 Thread Berend Hasselman
Follow up on my previous mail. See the FAQ for OS X :https://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html Read the section "3.2 Installation of packages". It tells it all. (reachable from the contents entry "How to install packages"). Berend > On 23 Aug 2016, at 08:27, Berend Hasselman wro

Re: [R] Please help me, I'm trying to update my version of R

2016-08-22 Thread Berend Hasselman
> On 22 Aug 2016, at 22:17, KMNanus wrote: > > I’m a newbie running 3.2.4 on a mac equipped with Yosemite (10.10.5). > > I want to update to 3.3.1 and have downloaded the package, but have not been > able to install it. I’ve tried install.packages("R-3.3.1.tar.gz”) and > install.packages("R-

Re: [R] Please help me, I'm trying to update my version of R

2016-08-22 Thread Thomas Mailund
Hi Ken, You are trying to install R as a package. That won't work. The .pkg file you downloaded from https://cran.r-project.org/bin/macosx/ is an installer, though, so if you just double-click on it, it should take you through the installation. After that you probably need to install a number o

[R] Please help me, I'm trying to update my version of R

2016-08-22 Thread KMNanus
I’m a newbie running 3.2.4 on a mac equipped with Yosemite (10.10.5). I want to update to 3.3.1 and have downloaded the package, but have not been able to install it. I’ve tried install.packages("R-3.3.1.tar.gz”) and install.packages("R-3.3.1.pkg”) after downloading both files. I get an error

Re: [R] Please help: cannot import files from Windows into R

2016-07-14 Thread William Dunlap via R-help
The file may have been stored in the UTF-16 encoding (what Windows Notepad calls "Unicode"). If so, adding fileEncoding="UTF-16" to the read.table command might read it correctly. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Jul 14, 2016 at 3:49 PM, Christa Rose wrote: > Can someone pl

Re: [R] Please help: cannot import files from Windows into R

2016-07-14 Thread John Dougherty
Christa, As others are noting, the file is not a text file. Open the file in Notebook or Notepad. If the editor complains, then open it in Word. Save it as a "plain text" file. You will have to choose the file type in the "Save As" dialog. You may run into other issues such as the field separ

Re: [R] Please help: cannot import files from Windows into R

2016-07-14 Thread Duncan Murdoch
On 14/07/2016 6:49 PM, Christa Rose wrote: Can someone please help? The read.table command is not working for me I think because Windows has my account name stored as "Christa Rose" with a space in it. Is this a problem? I have tried many syntax iterations, and cannot get around this. I don't t

Re: [R] Please help: cannot import files from Windows into R

2016-07-14 Thread Jim Lemon
Hi Christa, The error messages tell you that the file contains NULL characters, which can cause problems with reading files. You can remove these characters with a "hex editor". I am not familiar with those used on Windows, but look at this Web page: http://alternativeto.net/software/okteta/?platf

[R] Please help: cannot import files from Windows into R

2016-07-14 Thread Christa Rose
Can someone please help? The read.table command is not working for me I think because Windows has my account name stored as "Christa Rose" with a space in it. Is this a problem? I have tried many syntax iterations, and cannot get around this. Here is an example of the syntax I've used: > RanMinePl

Re: [R] Please help -- Cbind data frames within LIST() in R

2016-03-15 Thread PIKAL Petr
ot;, "19:00", "21:00", "23:00", "3:00", "5:00", "7:00", "9:00" ), class = "factor"), Kontrolor = structure(c(6L, 6L, 6L, 6L, 6L, 6L, NA, NA, NA), .Label = c("CLLAB", "KOŠUTKOVÁ", "KOUTNÁ PETRA", "KOVÁŘO

Re: [R] please help

2016-03-14 Thread John Kane
In line John Kane Kingston ON Canada > -Original Message- > From: bgunter.4...@gmail.com > Sent: Mon, 14 Mar 2016 07:45:28 -0700 > To: damjanfaks2...@gmail.com > Subject: Re: [R] please help > > ... also, **if** this is homework, this list has a no homework poli

Re: [R] please help

2016-03-14 Thread John Kane
John Kane Kingston ON Canada > -Original Message- > From: damjanfaks2...@gmail.com > Sent: Mon, 14 Mar 2016 09:43:45 +0100 > To: r-help@r-project.org > Subject: [R] please help > > Dear all, > > with the below 2 files I would like to to the t.test and va

Re: [R] please help

2016-03-14 Thread Bert Gunter
... also, **if** this is homework, this list has a no homework policy. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Mar 14, 2016 at 1:43 AM, Dam

Re: [R] please help

2016-03-14 Thread S Ellison
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Damjan / > Subject: [R] please help > > Dear all, > > with the below 2 files I would like to to the t.test and var.test > > but it does not work. > > Can you help me ? > Dear Damjan

[R] please help

2016-03-14 Thread Damjan /
Dear all, with the below 2 files I would like to to the t.test and var.test but it does not work. Can you help me ? thanks BR letost_ur 19721608.3 19731825.6 19741646.8 19751718.8 19761837.5 19771905.9 19781694.6 19791928.3 19801632.6 19812064.4 1982

Re: [R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread PIKAL Petr
Hi From: Sunny Singha [mailto:sunnysingha.analyt...@gmail.com] Sent: Monday, March 14, 2016 10:37 AM To: r-help; PIKAL Petr Subject: Re: [R] Please help -- Cbind data frames within LIST() in R Thanks Petr, I'm going through the link that you have provided. Merge won't be useful in my

Re: [R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread Sunny Singha
overflow.com/questions/6988184/combining-two-data-frames-of-different-lengths > > http://stackoverflow.com/questions/7196450/create-a-data-frame-of-unequal-lengths > > but maybe you want to do actually merging > > see > > ?merge > > Cheers > Petr > > > -Origina

Re: [R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread PIKAL Petr
nal Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Sunny > Singha > Sent: Monday, March 14, 2016 8:16 AM > To: r-help > Subject: [R] Please help -- Cbind data frames within LIST() in R > > Hi, > Please help and guide. I want to cbind datafram

[R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread Sunny Singha
Hi, Please help and guide. I want to cbind dataframes within the list object: List object 'post_data' contains below sampled data frames: post_data $posts from_id user_name post_msg $comm comm_id from_id message $Likes username like_id *Note: The columns in each data frame

Re: [R] please help me for my project

2015-09-07 Thread Bert Gunter
uggestions on how to ask a question on the R-help list > > John Kane > Kingston ON Canada > > >> -Original Message- >> From: ghada.f...@gmail.com >> Sent: Mon, 7 Sep 2015 16:57:19 +0300 >> To: r-help@r-project.org >> Subject: [R] please help me fo

Re: [R] please help me for my project

2015-09-07 Thread John Kane
Some suggestions on how to ask a question on the R-help list John Kane Kingston ON Canada > -Original Message- > From: ghada.f...@gmail.com > Sent: Mon, 7 Sep 2015 16:57:19 +0300 > To: r-help@r-project.org > Subject: [R] please help me for my project > > Hello

[R] please help me for my project

2015-09-07 Thread Ghada Almousa
Hello dears member I have project to analysis clusters algorithm in R "K-mean, Hierarchical, Density based and EM" I want to calculate Cluster instance , number of iteration , sum of squared error SSE and the accuracy for each cluster algorithms that i mention above And the log likelihood for EM an

Re: [R] Please Help how to execute R via php script

2015-08-18 Thread Loris Bennett
Joseph Mbowe writes: > Dear R members, I want to call my R script thorough php but no I am not > getting output > When I call my r script by bat file works fines also when run by Rstudio it > works fines > but when i cant call via php > here is the php code: > exec('C:/"Program Files"/R/R-3.2.0/

[R] Please Help how to execute R via php script

2015-08-18 Thread Joseph Mbowe
Dear R members, I want to call my R script thorough php but no I am not getting output When I call my r script by bat file works fines also when run by Rstudio it works fines but when i cant call via php here is the php code: ' ; ?> here is R script args=(commandArgs(TRUE)) library(ggplot2) l

Re: [R] please help me in r

2015-04-28 Thread Jim Lemon
Hi Ghada, The value returned by Mclust ("m" in your example) has different components from say the hierarchical clustering. The second argument for "cluster.stats" is the cluster IDs of the objects in the initial set. Perhaps if you call it like this: cluster.stats(d,m$classification) I don't hav

[R] please help me in r

2015-04-28 Thread Ghada Almousa
Hello dears I using (R tool) in my project and I want to compare the results betwen k-mean cluster ,Hierarchical cluster and EM cluster I use cluster.stats() it's work on k-mean cluster and hrarichal cluster but not work in EM Hello Dears I Use R tool in my project I want to do comparison of t

Re: [R] Please help! Matrices and parameter of time

2014-04-01 Thread Jeff Newmiller
This mailing list has a no homework policy (read the Posting Guide, please, which also requests that you post in plain text format only). If this is not homework then you will have to be a bit more specific about what you know and what you don't in order to get useful help. Questions about why y

Re: [R] Please help! Matrices and parameter of time

2014-04-01 Thread David Carlson
..@r-project.org] On Behalf Of ANNA SIMEONIDOU Sent: Tuesday, April 1, 2014 3:37 AM To: r-help@r-project.org Subject: [R] Please help! Matrices and parameter of time Hi, Well, the solution to my problem maybe is easy, but i have really stuck with this. I have a process which evolves in three times, so t

[R] Please help! Matrices and parameter of time

2014-04-01 Thread ANNA SIMEONIDOU
Hi, Well, the solution to my problem maybe is easy, but i have really stuck with this. I have a process which evolves in three times, so there is the parameter of time (t=1,2,3).More particularly i have three 4*4 matrices, one for each time. In other words each element has three cordinates: tim

Re: [R] Please help

2014-03-31 Thread arun
Hi, replace `lst2` with: #Subset of data lst1Sub <- lapply(lst1Not1970,function(x) x[c(1:25, 18707:18708)]) lst2 <- lapply(lst1Sub,function(x) {dateSite <- gsub("(.*G.{3}).*","\\1",x); dat1 <- data.frame(Year=as.numeric(substr(dateSite,1,4)), Month=as.numeric(substr(dateSite,5,6)),Day=as.numeri

Re: [R] Please help

2014-03-31 Thread Zilefac Elvis
Thanks AK. Great job. I appreciate your effort. Atem. On Monday, March 31, 2014 11:28 AM, arun wrote: Hi, replace `lst2` with: #Subset of data lst1Sub <- lapply(lst1Not1970,function(x) x[c(1:25, 18707:18708)]) lst2 <- lapply(lst1Sub,function(x) {dateSite <- gsub("(.*G.{3}).*","\\1",x); dat1 <

Re: [R] Please help

2014-03-30 Thread arun
Hi Atem, Try this: I created 3 folders (Precip, Tmax, Tmin) within the folder "sample" #working directory: sample list.files() #[1] "Imputation_Daily_Sim01.dat""Imputation_Daily_Sim02.dat" #[3] "Imputation_Daily_Sim03.dat""Precip" #[5] "Sim1971-2000_Daily_Sim001.

Re: [R] Please help me to short my code

2013-11-08 Thread arun
Hi, Try either: Ceramic <- read.table("ceramic.dat",header=TRUE) Ceramic1 <- Ceramic Ceramic$indx <- ((seq_len(nrow(Ceramic))-1)%/%60)+1 library(plyr) DF1 <- data.frame(M=as.vector(t(ddply(Ceramic,.(indx), colwise(mean))[,-1])), S=as.vector(t(ddply(Ceramic,.(indx),colwise(sd))[,-1])),Rep = 60)  co

[R] Please Help FDR BH correction of pvalues

2013-04-10 Thread David Lyon
I have a matrix of p values below. Column1 are the analytes and the other columns are p values comparing time points. How do I convert this table of pvalues into adjust p values for FDR/BH This is wrong does anyone know how to fix this code a<-read.table("file", header=T, sep"\t") b<-as.numeric

Re: [R] please help, iteration through a list of files and plot each one

2013-04-01 Thread Shane McMahon
There's probably a better way to do it, but here's one way: require(stringr) windows() file_list <- list.files(pattern=".txt") for (file in file_list) { dataset <- read.table(file, header=TRUE, sep="\t") plot(dataset) savePlot(filename=str_replace(file,".txt",""),type="png")

Re: [R] please help, iteration through a list of files and plot each one

2013-04-01 Thread arun
K. - Original Message - From: David Lyon To: "r-help@r-project.org" Cc: Sent: Tuesday, April 2, 2013 12:13 AM Subject: [R] please help, iteration through a list of files and plot each one I have many files in 1 directory, file names end in .txt. Each file has 2 columns col1 co

[R] please help, iteration through a list of files and plot each one

2013-04-01 Thread David Lyon
I have many files in 1 directory, file names end in .txt. Each file has 2 columns col1 col2 2 3 3 4 4 5 5 6 I want to make a list of the file names and iterate through each plotting them in a separate file $filename\.png with the png swapped for txt. So far I have this, can someone help

Re: [R] Please help R error message "masked from 'package:utils':combn"

2013-01-24 Thread MacQueen, Don
After you get that message, use conflicts() (and read the help page for the conflicts function) -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 1/23/13 10:04 PM, "Fumie Sugahara" wrote: >Hi > >The message occurred

Re: [R] Please help R error message "masked from 'package:utils':combn"

2013-01-23 Thread Pascal Oettli
Hi, It means that the functions "combn" from the package "utils" is masked because a function with the same name exists in loaded package "combinat". You still can access the one from the package "utils" using: > utils::combn HTH, Pascal Le 24/01/2013 15:04, Fumie Sugahara a écrit : Hi Th

[R] Please help R error message "masked from 'package:utils':combn"

2013-01-23 Thread Fumie Sugahara
Hi The message occurred from R, when I was selected of "optimization > block diagonal Fhiser matrix" and used the attached file on PFIM. Could you please advise me about the following message? * Loading required pakage: combinat Attaching package:'combinat' The follow

[R] Please help me

2012-11-24 Thread emable_wahid
i want to generate an odf report using R, the report is generated but the run stop just after the instruction: odfWeave(inputFile,outputFile) and i get this error: Error in odfWeave(inf, outf) : Error removing work dir please help me it's an emergency. thanks -- View this message in context:

Re: [R] Please help a struggling student with data set-up for

2012-10-18 Thread Asa Johannesen
t couldn't also be attributed to items within that condition. So long as this isn't an issue for you, you should be fine. Freya -- Message: 72 Date: Wed, 17 Oct 2012 16:47:08 -0400 From: Ista Zahn To: Ralitt Cc: r-help@r-project.org Subject: Re: [R]

Re: [R] Please help a struggling student with data set-up for lmer crossed random effects

2012-10-17 Thread Ista Zahn
Hi, On Wed, Oct 17, 2012 at 3:25 PM, Ralitt wrote: > Hi all, > I am just starting my first models in R and am having trouble with some of > the basics. > > The main things at the moment are about setting up my data correctly. I > have a repeated measures design-all participants complete 4 experi

[R] Please help a struggling student with data set-up for lmer crossed random effects

2012-10-17 Thread Ralitt
Hi all, I am just starting my first models in R and am having trouble with some of the basics. The main things at the moment are about setting up my data correctly. I have a repeated measures design-all participants complete 4 experimental conditions. I want to fit a linear mixed effects model w

Re: [R] Please help on Sweave question

2012-09-30 Thread Duncan Murdoch
On 12-09-30 2:18 PM, Andras Farkas wrote: Dear All, I have reviewed some examples over the net on this issue, but still not getting the results. I have the following text and code i would like to place into a pdf with sweave, but I would like to change the margins on the produced document. T

[R] Please help on Sweave question

2012-09-30 Thread Andras Farkas
Dear All,     I have reviewed some examples over the net on this issue, but still not getting the results. I have the following text and code i would like to place into a pdf with sweave, but I would like to change the margins on the produced document. The options(width=60) I guess should do thi

Re: [R] Please help....normalization by the median of some control genes

2012-08-24 Thread Roebuck,Paul L
On 8/23/12 7:37 AM, "David Lyon" wrote: > Can someone show me some code to do normalization by the median of some > control genes for the example below? > Many Many Thanks in advance > > > This strategy selects a subset of genes (called ³control genes²) and makes the > median of their data distri

Re: [R] Please help....normalization by the median of some control genes

2012-08-23 Thread arun
HI, You could try: limma package: normalizeWithinArrays() A.K. - Original Message - From: David Lyon To: "r-help@r-project.org" Cc: Sent: Thursday, August 23, 2012 8:37 AM Subject: [R] Please helpnormalization by the median of some control genes Can someone show me so

Re: [R] Please help....normalization by the median of some control genes

2012-08-23 Thread Rui Barradas
Hello, I'm not sure I understand what you want. You want the medians to be "similar"? Why not equal? (The code below assumes ids represent genes.) d <- read.table(text=" id1id2id3 control10.80.70.6 control20.60.20.4 probe10.30.20.5 probe

[R] Please help....normalization by the median of some control genes

2012-08-23 Thread David Lyon
Can someone show me some code to do normalization by the median of some control genes for the example below? Many Many Thanks in advance This strategy selects a subset of genes (called “control genes”) and makes the median of their data distribution similar across arrays.         id1    id2 

Re: [R] Please help

2012-07-06 Thread Pascal Oettli
, after running the script, there is a error I really unable to understand: error at data.frame(..., check.names = FALSE) : parameter value mean different rows 0, 31981 If you can understand what the problem is, please as kind as offer me a direction. Many thanks,

Re: [R] Please help

2012-07-04 Thread Pascal Oettli
;degreesN",as.double(lat)) However, after running the script, there is a error I really unable to understand: error at data.frame(..., check.names = FALSE) : parameter value mean different rows 0, 31981 If you can understand what the problem is, please as kind a

Re: [R] Please help

2012-07-04 Thread Jun Chen
parameter value mean different rows 0, 31981 If you can understand what the problem is, please as kind as offer me a direction. Many thanks, Jun > Date: Wed, 4 Jul 2012 10:39:29 +0100 > From: kri...@ymail.com > Subject: Re: [R] Please help > To: chensh...@hotmai

  1   2   3   >