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,

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

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

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

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: > > /*

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

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

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

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

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

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

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 var.test > > but it does not wor

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 The posting guide at http://www.R-project.or

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
Thanks Petr, I'm going through the link that you have provided. Merge won't be useful in my case. Let me give the complete picture of what I'm trying to achieve. I'm extracting data from fb pages. I have the data frame 'pages_df' which has all the details of the fb pages. 'Page_id' is the importan

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

2016-03-14 Thread PIKAL Petr
Hi There are several options e.g. http://stackoverflow.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 > -Original Messa

Re: [R] please help me for my project

2015-09-07 Thread Bert Gunter
... But This list has a *no homework* policy, and this sounds like homework. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Sep 7, 2015 at 12:17 PM, John Kane wrote: > Some suggestions on h

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 dears member > I have proj

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/

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

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
Use an 3-dimensional array. ?array And any basic introduction to R. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project

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

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
Hi, May be this helps. list.files() #[1] "file1.txt" "file2.txt" "file3.txt"  lapply(list.files(),function(x) {x1<-read.table(x,header=TRUE);x2<-gsub("txt","png",x);png(x2);plot(col2~col1,data=x1,type="l");dev.off()}) A.K. - Original Message - From: David Lyon To: "r-help@r-project.or

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

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

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

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 some code to

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

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

Re: [R] Please help

2012-07-04 Thread Jun Chen
Many thanks, Jun > Date: Wed, 4 Jul 2012 10:39:29 +0100 > From: kri...@ymail.com > Subject: Re: [R] Please help > To: chensh...@hotmail.com > CC: r-help@r-project.org > > Hello, > > Following lines are wrong: > > x=dim.def.ncdf("Lon","degrees

Re: [R] Please help

2012-07-04 Thread giuseppe calamita
Dear Jun I think you should consider to submit your question to R-SIG (special interest group) about spatial data http://r-sig-geo.2731867.n2.nabble.com/ This will improve the probability you get some help. Cheers Giuseppe Calamita - Giuseppe Calamita PhD at CNR-IMAA Italian National Co

Re: [R] Please help

2012-07-04 Thread Pascal Oettli
Hello, Following lines are wrong: > x=dim.def.ncdf("Lon","degreesE",140.0251:146.6751) > y=dim.def.ncdf("Lat","degreesN",(-31.025):(-38.975)) You have 241 longitudes and 160 latitudes. lon <- seq(from=140.0251, to=146.6751, length.out=241) lat <- seq(from=-38.975, to=-31.025, length.out=160) Reg

Re: [R] please help! Extract the row to the new file by using if-statment

2012-06-01 Thread Sarah Goslee
Hi, On Fri, Jun 1, 2012 at 12:05 PM, pigpigmeow wrote: > Thank, it OK now > but I don't understand what is the meaning of y <- y[!is.na(y[5]),] > Thank in advance! This is very basic R syntax. You should definitely read the Introduction to R, and also ?"[" ?"!" ?is.na Sarah -- Sarah Goslee ht

Re: [R] please help! Extract the row to the new file by using if-statment

2012-06-01 Thread pigpigmeow
Thank, it OK now but I don't understand what is the meaning of y <- y[!is.na(y[5]),] Thank in advance! -- View this message in context: http://r.789695.n4.nabble.com/please-help-Extract-the-row-to-the-new-file-by-using-if-statment-tp4631957p4632090.html Sent from the R help mailing list archive

Re: [R] please help! Extract the row to the new file by using if-statment

2012-05-31 Thread Rainer Schuermann
Not sure whether I understand your data and objectives well enough but here is what I would do: To make my life easier, I used x as a variable name. I'm not using attach(). You can extract your data with something like y <- x[x$wrfta>= 255 | x$wrfta<= 65 & x$wrfrain == 0, ] y <- y[!is.na(y[5]),]

Re: [R] please help!

2012-05-08 Thread Stephen Sefick
I don't know if we can figure that out... I would figure out what these data are, and then read the relevant help files, ?glm, and literature associated with linear modeling. HTH, Stephen On 05/08/2012 01:15 AM, T Bal wrote: Hi, I have a data with the forum a b c 8.9 0

Re: [R] please help!

2012-05-08 Thread ONKELINX, Thierry
>From the posting guide of this mailing list: Basic statistics and classroom >homework: R-help is not intended for these. Ask your fellow students or your teacher. ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitsz

Re: [R] please help me

2012-05-02 Thread Uwe Ligges
On 02.05.2012 02:55, Ulfa Hasanah wrote: hi all,can you help me? index moran is very difficut for me, i have data n neighbor as enclosure: please help me to make the program for find index moran value each variabel,...thank very much Which translates to: please help me, and note that - I

Re: [R] Please Help!

2012-01-31 Thread R. Michael Weylandt
arima is one of the largest R functions and not an easy one to explain, but you can see its source simply by typing arima with no parentheses at the prompt. To get the C functions that are called, look here: https://svn.r-project.org/R/trunk/src/library/stats/src/ You might also check the referenc

Re: [R] Please help!! How do I set graphical parameters for ploting ctree()

2012-01-06 Thread David Winsemius
On Jan 6, 2012, at 6:09 PM, Chris Conner wrote: I'm trying to understand how to set graphical parameters for trees created with the party package. For example take the following code: library(party) data(airquality) airq <- subset(airquality, !is.na(Ozone)) airct <- ctree(Ozone

Re: [R] Please Help

2011-11-12 Thread David Winsemius
Two problems with your post: a) you used a format that is not accepted by the mail server and resulted in all of your linefeeds being removed, so it is now basically unreadable. As the Posting Guide says, please use plain text. (And please read the Posting Guide for yourself ... and do it

Re: [R] please help for mgcv package

2011-06-23 Thread Simon Wood
In the 'inst/scripts' directory of package 'gamair' there are files containing the R code for each chapter of the book (questionable layout uncorrected, but typo free, at least!). Simon On 21/06/11 16:27, pigpigmeow wrote: i read a book from WOOD, there's an example which is talking about th

Re: [R] please help for mgcv package

2011-06-21 Thread Joshua Wiley
On Tue, Jun 21, 2011 at 9:20 AM, Sarah Goslee wrote: > Hi, > > On Tue, Jun 21, 2011 at 11:27 AM, pigpigmeow wrote: >> i read a book from WOOD, there's an example which is talking about the >> pollutant. Read the text carefully!!! >> >> library(gamair) >> library(mgcv) > > data(chicago) # otherw

Re: [R] please help for mgcv package

2011-06-21 Thread pigpigmeow
b<-rep(0,n-11) for(i in 0:(11-10)) b<-b+a[(i+1):(n-11+i)] i don't know what does "rep" mean and for-loop! -- View this message in context: http://r.789695.n4.nabble.com/please-help-for-mgcv-package-tp3614485p3615861.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] please help for mgcv package

2011-06-21 Thread Sarah Goslee
Hi, On Tue, Jun 21, 2011 at 11:27 AM, pigpigmeow wrote: > i read a book from WOOD, there's an example which is talking about the > pollutant. > > library(gamair) > library(mgcv) data(chicago) # otherwise this isn't reproducible > y<-gam(death~s(time,bs="cr",k=200)+s(pm10median,bs="cr")+s(so2med

Re: [R] please help for mgcv package

2011-06-21 Thread David Winsemius
On Jun 21, 2011, at 11:27 AM, pigpigmeow wrote: i read a book from WOOD, there's an example which is talking about the pollutant. library(gamair) library(mgcv) y<-gam(death~s(time,bs="cr",k=200)+s(pm10median,bs="cr") +s(so2median,bs="cr")+s(o3median,bs="cr") +s(tmpd,bs="cr"),data=chicago,fam

Re: [R] please help for mgcv package

2011-06-21 Thread pigpigmeow
it is from Generalized Additive Models an introduction with R by Simon N.Wood . Page 251 -- View this message in context: http://r.789695.n4.nabble.com/please-help-for-mgcv-package-tp3614485p3614535.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] please help! what are the different using log-link function and log transformation?

2011-06-19 Thread Rubén Roa
...@csiro.au Sent: Sun 6/19/2011 2:36 PM To: gloryk...@hotmail.com; r-help@r-project.org Subject: Re: [R] please help! what are the different using log-link function and log transformation? The two commands you give below are certain to lead to very different results, because they are fitting very

Re: [R] please help! what are the different using log-link function and log transformation?

2011-06-19 Thread Bill.Venables
The two commands you give below are certain to lead to very different results, because they are fitting very different models. The first is a gaussian model for the response with a log link, and constant variance. The second is a gaussian model for a log-transformed response and identity link.

Re: [R] please help! what are the different using log-link function and log transformation?

2011-06-19 Thread Rubén Roa
The problem is not that you are new to R. This is a conceptual issue. Let y be the response variable and let {x_i} be a set of predictors. Your first model (identity response and log-link) is saying that y=f(x_1)f(x_2)...f(x_n) + e, e~Normal(0,sigma) i.e. this is an additive observation-error

Re: [R] Please HELP

2011-05-31 Thread Rolf Turner
(1) Use an informative subject line. (2) Do not use html mail. Then you might get a response. cheers, Rolf Turner On 01/06/11 02:12, mustafabinar wrote: > Hi R people. >   > I have a problem. What can I create by using functions the > combinations of distances in multiple compar

Re: [R] Please help

2011-04-04 Thread Steve Lianoglou
Hi, On Mon, Apr 4, 2011 at 5:15 AM, Sadaf Zaidi wrote: > Dear Sir/Madam, > I am stuck with a nagging problem in using R for SVM regression. My data has 5 > dimensions and 400 observations. The independent variables are : > Peb, Ksub, Sub, and Xtt. > The dependent variable is: Rexp. > I tried usin

Re: [R] please help ! label selected data points in huge number of data points potentially as high as 50, 000 !

2011-03-06 Thread csrabak
Em 5/3/2011 21:29, Umesh Rosyara escreveu: Dear All I am reposting because I my problem is real issue and I have been working on this. I know this might be simple to those who know it ! Anyway I need help ! Let me clear my point. I have huge number of datapoints plotted using either base plot f

Re: [R] please help ! label selected data points in huge number of data points potentially as high as 50, 000 !

2011-03-06 Thread Sarah Goslee
I think you've made your problem too complicated. Given your example below (and THANK YOU for including a workable example), is this not what you need? sigdata <- dataf[dataf$p < 0.01,] plot(dataf$xvar, dataf$p) text(sigdata$xvar, sigdata$p, sigdata$name) text() will take vectors of arguments.

  1   2   >