Re: [R] bootstrap confidence intervals

2021-11-05 Thread David Winsemius
On 11/5/21 1:16 PM, varin sacha via R-help wrote: Dear R-experts, Here is a toy example. How can I get the bootstrap confidence intervals working ? Many thanks for your help library(DescTools) library(boot) A=c(488,437,500,449,364) dat<-data.frame(A) med<-fu

Re: [R] Error in loadNamespace(i, c(lib.loc, .libPaths())

2021-11-05 Thread Jeff Newmiller
You are using github packages. Post your question on the corresponding packege Issues page on GitHub. Such questions are not related to the topic of the R language (read the Posting Guide, which also indicates that this plain text mailing list will strip formatting from your emails, so do send p

Re: [R] extracting a R object from an R image

2021-11-05 Thread Jeff Newmiller
IMO you are being a bit too literal. It is absolutely possible to load the file into a dedicated environment and use the $ or [[]] extraction operator to access a specific object in that environment. ?load ?new.env Or, you can attach the file, copy to a new variable, and detach. (see examples

Re: [R] extracting a R object from an R image

2021-11-05 Thread Bert Gunter
You can't. You can only save and load whole .RData files. You can, of course, save and load separate R objects in separate files. But note in ?save.image: "For saving single R objects, saveRDS() is mostly preferable to save(), notably because of the functional nature of readRDS(), as opposed to lo

[R] Error in loadNamespace(i, c(lib.loc, .libPaths())

2021-11-05 Thread Bogdan Tanasa
Dear all, i am using Monocle3 in order to study disease development by single-cell technologies : https://cole-trapnell-lab.github.io/monocle3/ When I am installing additional packages like "spData" from https://nowosad.github.io/spData/, I am getting the message : Error in loadNamespace(i, c

[R] extracting a R object from an R image

2021-11-05 Thread Bogdan Tanasa
Dear all, I saved my work in a Rimage that contains multiple objects ; the objects were generated with Monocle3 : https://cole-trapnell-lab.github.io/monocle3/docs/starting/ one object is called CDS. How shall I extract this object CDS (that has a complex structure) from the R image ? thank y

[R] bootstrap confidence intervals

2021-11-05 Thread varin sacha via R-help
Dear R-experts, Here is a toy example. How can I get the bootstrap confidence intervals working ? Many thanks for your help library(DescTools) library(boot)   A=c(488,437,500,449,364) dat<-data.frame(A) med<-function(d,i) { temp<-d[i,] HodgesLehmann(A) } boot.out<-

Re: [R] Which version of R install for mac

2021-11-05 Thread Marc Schwartz via R-help
Hi, Not sure where you have been looking, but on CRAN: https://cran.r-project.org/index.html there is a box at the top of the main page to Download R for macOS, which brings you to: https://cran.r-project.org/bin/macosx/ The first version there, 4.1.2, which is the pkg binary for macOS 10.1

[R] Which version of R install for mac

2021-11-05 Thread Mark Don Young
I am having trouble finding a version of R install compatible with my mac. I have an older Macbook pro 2016 with the latest version of Big Slur 11.6. Intel core i5 2.9 Ghz-Dual-Core. Is there a version of R compatible with my computer? Thanks Mark [[alternative HTML version deleted]]

Re: [R] Date

2021-11-05 Thread Val
Thank you All. The issue was not reading different file. I just mistyped the column name, instead of typing My_date I typed mydate in the email. The problem is solved by using this dat=read.csv("myfile.csv",stringsAsFactors=FALS) suggested by Jim. On Thu, Nov 4, 2021 at 7:58 PM Jeff Newmiller

[R] How to select single table with ODB package

2021-11-05 Thread Luigi Marongiu
Hello, I am connecting R to a libreoffice-generated database (.odb) using the ODB package. I would like to link a dataframe to a specific table, but I cannot manage to extract a given table: ``` > db = odb.open(".../LOdatabase.odb", jarFile = NULL) > odb.tables(db) $demographic field.name field.ty

Re: [R] heatmap ploting

2021-11-05 Thread Jim Lemon
Hi Steve, That plot looks to me as though a value-to-color transformation is performed on the logarithm of gene expression. The scale bar can be roughly reproduced like this: library(plotrix) plot(0,xlim=c(0,3)) gradient.rect(0,-0.1,3,0.1, col=color.scale(seq(0,3,0.1), c(0.7,1,1,1,0.7,0.2), c(0

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

[R] heatmap ploting

2021-11-05 Thread Stephen HonKit Wong
Dear Community, I have an example heatmap plot in this link which was generated by java I believe, I want to make a similar plot in R. Any clues on how to do it? Thanks. The column is a gene, and the rows are dif