Re: [R] (no subject)

2024-10-01 Thread avi.e.gross
scale up to any size easily, if not as compactly. -Original Message- From: R-help On Behalf Of Izmirlian, Grant (NIH/NCI) [E] via R-help Sent: Tuesday, October 1, 2024 7:54 AM To: R-help@r-project.org Subject: [R] (no subject) I would go with unlist on x,single bracket subsetted on f

[R] (no subject)

2024-10-01 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
I would go with unlist on x,single bracket subsetted on f x <- list(`1` = c(7, 13, 1, 4, 10), `2` = c(2, 5, 14, 8, 11), `3` = c(6, 9, 15, 12, 3)) f <- factor(rep(1:3,5)) unlist(x[f]) Yes, unsplit() it is. I was messing around with ave() (which can be hammered into submiss

Re: [R] (no subject)

2024-09-16 Thread Francesca
Sorry, my typing was corrected by the computer. When I have a NA, there should be a missing value. So, if a group has 2 values and a NA, the two that have values, should be replaced by the mean of the two, the third should be NA. The NA is the participant that dropped out. On Tue, 17 Sept 2024 at

Re: [R] (no subject)

2024-09-16 Thread Bert Gunter
Hmmm... typos and thinkos ? Maybe: mean_narm<- function(x) { m <- mean(x, na.rm = T) if (is.nan (m)) NA else m } -- Bert On Mon, Sep 16, 2024 at 4:40 PM CALUM POLWART wrote: > > Rui's solution is good. > > Bert's suggestion is also good! > > For Berts suggestion you'd make the list bit >

Re: [R] (no subject)

2024-09-16 Thread CALUM POLWART
Rui's solution is good. Bert's suggestion is also good! For Berts suggestion you'd make the list bit list(mean = mean_narm) But prior to that define a function: mean_narm<- function(x) { m <- mean(x, na.rm = T) if (!is.Nan (m)) { m <- NA } return (m) } Would do what you suggested in your r

Re: [R] (no subject)

2024-09-16 Thread Rui Barradas
Às 15:23 de 16/09/2024, Francesca escreveu: Sorry for posting a non understandable code. In my screen the dataset looked correctly. I recreated my dataset, folllowing your example: test<-data.frame(matrix(c( 8, 8, 5 , 5 ,NA ,NA , 1, 15, 20, 5, NA, 17, 2 , 5 , 5, 2 , 5 ,NA, 5 ,10, 10, 5

Re: [R] (no subject)

2024-09-16 Thread Bert Gunter
Incidentally, if you intend to use these means for further analytical purposes, you may produce irreproducible conclusions: after all, a mean of 10 things is more *meaningful* than a mean of 2. However, that is a discussion too far for this list. Consult your local statistical resources if you need

Re: [R] (no subject)

2024-09-16 Thread Bert Gunter
It's NA *not* Na. Details matter. Ah, but note: > mean(c(NA,NA), na.rm = TRUE) [1] NaN So if that might happen, you'll have to write your own mean function, say mymean(), to do what you want. I leave that (simple) pleasure to you. -- Bert On Mon, Sep 16, 2024 at 8:05 AM Francesca wrote: > > Al

Re: [R] (no subject)

2024-09-16 Thread Francesca
All' Na Is Na. Il lun 16 set 2024, 16:29 Bert Gunter ha scritto: > See the na.rm argument of ?mean > > But what happens if all values are NA? > > -- Bert > > > On Mon, Sep 16, 2024 at 7:24 AM Francesca > wrote: > > > > Sorry for posting a non understandable code. In my screen the dataset > > l

Re: [R] (no subject)

2024-09-16 Thread John Kane
Hi, Thanks for the revised dataset. The R-list does not accept HTML s a safety measure so it strips everything down to text which is what gives us the very garbled text so you need to always send in text format. The best way to supply sample data is using the dput() function. The dput() funct

Re: [R] (no subject)

2024-09-16 Thread Bert Gunter
See the na.rm argument of ?mean But what happens if all values are NA? -- Bert On Mon, Sep 16, 2024 at 7:24 AM Francesca wrote: > > Sorry for posting a non understandable code. In my screen the dataset > looked correctly. > > > I recreated my dataset, folllowing your example: > > test<-data.fr

Re: [R] (no subject)

2024-09-16 Thread Francesca
Sorry for posting a non understandable code. In my screen the dataset looked correctly. I recreated my dataset, folllowing your example: test<-data.frame(matrix(c( 8, 8, 5 , 5 ,NA ,NA , 1, 15, 20, 5, NA, 17, 2 , 5 , 5, 2 , 5 ,NA, 5 ,10, 10, 5 ,12, NA), c( 18, 5,

Re: [R] (no subject)

2024-09-16 Thread Rui Barradas
Às 08:28 de 16/09/2024, Francesca escreveu: Dear Contributors, I hope someone has found a similar issue. I have this data set, cp1 cp2 role groupid 1 10 13 4 5 2 5 10 3 1 3 7 7 4 6 4 10 4 2 7 5 5 8 3 2 6 8 7 4 4 7 8 8 4 7 8 10 15 3 3 9 15 10 2 2 10 5 5 2 4 11 20 20 2 5 12 9 11 3 6 13 10 13 4

[R] (no subject)

2024-09-16 Thread Francesca
Dear Contributors, I hope someone has found a similar issue. I have this data set, cp1 cp2 role groupid 1 10 13 4 5 2 5 10 3 1 3 7 7 4 6 4 10 4 2 7 5 5 8 3 2 6 8 7 4 4 7 8 8 4 7 8 10 15 3 3 9 15 10 2 2 10 5 5 2 4 11 20 20 2 5 12 9 11 3 6 13 10 13 4 3 14 12 6 4 2 15 7 4 4 1 16 10 0 3 7 17 20 15

Re: [R] (no subject)

2023-01-26 Thread Hasan Diwan
Upananda. On Mon, 16 Jan 2023 at 12:55, Upananda Pani wrote: > Greetings! I would like to know how to create the lag variable for my data. > Kindly provide a link to your data, on a publicly accessible page or a means to generate fake data that illustrates your issue. -- H -- OpenPGP: https://

[R] (no subject)

2023-01-16 Thread Upananda Pani
Dear Members, Greetings! I would like to know how to create the lag variable for my data. # Load data and create time series object oil <- read_xlsx("crudefinal.xlsx") pricet=ts(oil$price, start = c(2020, 22), frequency = 365) roilt=ts(diff(log(oil$price))*100,start=c(2020,22),freq=

Re: [R] (no subject)

2022-11-25 Thread Ebert,Timothy Aaron
ntile function." Please clarify the question. Tim -Original Message- From: R-help On Behalf Of ASHLIN VARKEY Sent: Friday, November 25, 2022 1:34 AM To: r-help@r-project.org Subject: [R] (no subject) [External Email] How to calculate AIC , when the distribution have only quantil

[R] (no subject)

2022-11-25 Thread ASHLIN VARKEY
How to calculate AIC , when the distribution have only quantile function [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

Re: [R] (no subject)

2022-11-07 Thread Ivan Krylov
On Sun, 6 Nov 2022 23:34:46 + Nick Wray wrote: > Most of the sets work fine with MICE but with a few I get an error > message: > > This data set, which generated the error message has five columns > > iter imp variable > 1 1 986Error in terms.formula(tmp, simplify = TRUE) : > invalid

[R] (no subject)

2022-11-06 Thread Nick Wray
Hello - I am using the MICE package to impute missing values - the input data are up to six vectors of parallel hourly temperature measurements for Scottish weather stations across a calendar year. None of the vectors have more than 5% NAs as I have filtered ones with more out. Most of the sets wo

Re: [R] (no subject)

2022-10-06 Thread Ivan Krylov
Hi Julie, В Thu, 6 Oct 2022 10:58:51 -0400 Julie Coughlin пишет: > Can you send me a later version of r programming to use on my macos > version 10.12.6? The newest r program is not compatible with my > macbook. Since R 4.0.0, the official builds of R require macOS ≥ 10.13. The Homebrew project

Re: [R] (no subject)

2022-10-06 Thread Rui Barradas
Hello, I am not a Mac user but have you tried the official R downloads web site, The Comprehensive R Archive Network - CRAN? Here is the link: https://cran.r-project.org/ Hope this helps, Rui Barradas Às 15:58 de 06/10/2022, Julie Coughlin escreveu: Hi , Can you send me a later version of

[R] (no subject)

2022-10-06 Thread Julie Coughlin
Hi , Can you send me a later version of r programming to use on my macos version 10.12.6? The newest r program is not compatible with my macbook. Thank you, Julie :) [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To

Re: [R] (no subject)

2022-05-05 Thread Avi Gross via R-help
t.org; Ariyan Khayer Sent: Thu, May 5, 2022 7:28 pm Subject: Re: [R] (no subject) Sigh. You _do_ have a source... the Internet. But to get off the dime, try https://rstudio-education.github.io/hopr. Once you have some familiarity with basic programming concepts in R, do read the manuals that come w

Re: [R] (no subject)

2022-05-05 Thread Jeff Newmiller
Sigh. You _do_ have a source... the Internet. But to get off the dime, try https://rstudio-education.github.io/hopr. Once you have some familiarity with basic programming concepts in R, do read the manuals that come with R when you install it... and for contributed packages, vignettes are parti

[R] (no subject)

2022-05-05 Thread Ariyan Khayer
Hello.i was interested in learning about programming.(Especially R) but I do not have any source to study and learn from.can you help me with that? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and m

Re: [R] (no subject)

2021-11-09 Thread Arnaud FELD
Thanks for your answer. That is helpful even if that is disappointing for me ;) I can see now that, as R (base and recommended packages) has had contributions from a lot of people, it's not like a package, you just can't have a punctual "okay do what you want". I'll have to stick with a slow window

Re: [R] (no subject)

2021-11-09 Thread Duncan Murdoch
On 09/11/2021 3:52 p.m., Jeff Newmiller wrote: I understand that, but the reason he gives for copying code from the stats package is to change the license. That decision seems like something that requires a very direct communication with/permission from the maintainer. The stats package doesn

Re: [R] (no subject)

2021-11-09 Thread Jeff Newmiller
I understand that, but the reason he gives for copying code from the stats package is to change the license. That decision seems like something that requires a very direct communication with/permission from the maintainer. On November 9, 2021 12:21:18 PM PST, Duncan Murdoch wrote: >On 09/11/20

Re: [R] (no subject)

2021-11-09 Thread Duncan Murdoch
On 09/11/2021 2:45 p.m., Jeff Newmiller wrote: This question isn't a "how to do package development" question... this is about a specific package so you should send email to the package developer identified by the maintainer() function. I think Arnaud is the package developer; his question is

Re: [R] (no subject)

2021-11-09 Thread Duncan Murdoch
On 09/11/2021 8:27 a.m., Arnaud FELD wrote: Hi, I use that mailing list because I’ve tried to send a message to the r-core address and received : "Non-members are typically *NOT* allowed to post messages to this private developers' list. Please use an appropriate mailing list (from http://www.

Re: [R] (no subject)

2021-11-09 Thread Jeff Newmiller
This question isn't a "how to do package development" question... this is about a specific package so you should send email to the package developer identified by the maintainer() function. I can't foresee this request finding a positive response from R Core, but email seems the most correct ap

Re: [R] (no subject)

2021-11-09 Thread Bert Gunter
Questions about package development should be posted to R-package-devel (**not R-devel**). See https://www.r-project.org/mail.html for details. (I am not sure that they get into legal weeds there, but it seems like the right place to try). Bert Gunter "The trouble with having an open mind is th

[R] (no subject)

2021-11-09 Thread Arnaud FELD
Hi, I use that mailing list because I’ve tried to send a message to the r-core address and received : >"Non-members are typically *NOT* allowed to post messages to this >private developers' list. Please use an appropriate mailing list (from >http://www.r-project.org/mail.html). For R packages, us

Re: [R] (no subject)

2021-10-06 Thread Bert Gunter
Perhaps it's R packages and the security policies -- checks for malicious software, etc. -- of the repositories on which they reside that Thomas should be concerned with. R, itself, is fine(checksums are provided), but, as you say, can be programmed to do anything. So R packages can certainly do da

Re: [R] (no subject)

2021-10-06 Thread Ivan Krylov
On Tue, 5 Oct 2021 22:20:33 + Thomas Subia wrote: > Some co-workers are wondering about how secure R software is. I'm afraid that this question is too hard to answer without their threat model. Secure against what, specifically? > Is there any documentation on this which I can forward to th

[R] (no subject)

2021-10-06 Thread Thomas Subia
Colleagues, Some co-workers are wondering about how secure R software is. Is there any documentation on this which I can forward to them? All the best, Thomas Subia Quality Engineer __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] (no subject)

2020-12-11 Thread Rasmus Liland
On 2020-12-12 01:14 +0500, Anas Jamshed wrote: > On Sat, Dec 12, 2020 at 1:12 AM Rasmus Liland wrote: > > > > Anas Jamshed, > > > > I do not need to explain why I am tired > > at all. Not at all. > > but plz try to help me Once upon a midnight dreary, while I pondered, weak and weary, Over many

Re: [R] (no subject)

2020-12-11 Thread Rasmus Liland
On 2020-12-11 22:19 +0500, Anas Jamshed wrote: > On Fri, Dec 11, 2020 at 10:17 PM Rasmus Liland wrote: > > > > Sorry, I think I am too tired atm. I > > took this pneumonia vaccine, and it > > really banged me up you know ... > > > > Maybe someone else can row this ship > > ashore again ... > > wh

Re: [R] (no subject)

2020-12-11 Thread Rasmus Liland
On 2020-12-11 22:09 +0500, Anas Jamshed wrote: > On Fri, Dec 11, 2020 at 9:51 PM Rasmus Liland wrote: > > > > Say, how do I create fit3, eset, design, > > etc. ... > > > > R > > library(oligo) > if (!requireNamespace("BiocManager", quietly = TRUE)) > install.packages("BiocManager") > BiocManager::

Re: [R] (no subject)

2020-12-11 Thread Rasmus Liland
On 2020-12-11 21:04 +0500, Anas Jamshed wrote: > On Fri, Dec 11, 2020 at 9:03 PM Anas Jamshed wrote: > > On Fri, Dec 11, 2020 at 8:37 PM Rasmus Liland wrote: > > > > > > I think that's too many unspecific lines > > > and too large files directly here on > > > email (24MiB!). > > > > > > Would you p

Re: [R] (no subject)

2020-12-11 Thread Rasmus Liland
On 2020-12-11 20:14 +0500, Anas Jamshed wrote: > On Fri, Dec 11, 2020 at 7:49 PM Rasmus Liland wrote: > > > On 2020-12-11 19:16 +0500, Anas Jamshed wrote: > > > On Fri, Dec 11, 2020 at 6:37 PM Rasmus Liland wrote: > > > > On 2020-12-11 18:08 +0500, Anas Jamshed wrote: > > > > > > > > > > > > > An

Re: [R] (no subject)

2020-12-11 Thread Rasmus Liland
On 2020-12-11 19:16 +0500, Anas Jamshed wrote: > On Fri, Dec 11, 2020 at 6:37 PM Rasmus Liland wrote: > > On 2020-12-11 18:08 +0500, Anas Jamshed wrote: > > > > > > > Anas Jamshed, > > > > I found this > > > > https://support.bioconductor.org/p/130817/ > > > > maybe it helps ... > > still have the

Re: [R] (no subject)

2020-12-11 Thread Rasmus Liland
On 2020-12-11 18:08 +0500, Anas Jamshed wrote: > when I tried to install oligo package by > > if (!requireNamespace("BiocManager", quietly = TRUE)) > > install.packages("BiocManager") > > BiocManager::install("oligo > > It gives me the following eroor: > > Warning messages: > 1: In file.co

[R] (no subject)

2020-12-11 Thread Anas Jamshed
when I tried to install oligo package by if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("oligo It gives me the following eroor: Warning messages: 1: In file.copy(savedcopy, lib, recursive = TRUE) : problem copying C:\Users\USER\

Re: [R] (no subject)

2020-10-01 Thread Peter Dalgaard
Then please follow the link in the footer. Other recipients can't help you. > On 1 Oct 2020, at 09:30 , Marte Lilleeng wrote: > > I want to unsubscribe from this list. > > -- > Mvh Marte Synnøve Lilleeng > tlf 97 74 38 12 > > [[alternative HTML version deleted]] > > __

[R] (no subject)

2020-10-01 Thread Marte Lilleeng
I want to unsubscribe from this list. -- Mvh Marte Synnøve Lilleeng tlf 97 74 38 12 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] (no subject)

2020-06-05 Thread Aimin Yan
I want the stacked bar and its legend following the order as tr from left to right like the following: "100.0.250ng_CellLine_0" "75.25.250ng_CellLine_0" "50.50.250ng_CellLine_0" "10.90.250ng_CellLine_0" "1.99.250ng_CellLine_0" "0.100.250ng_CellLine_0" "100.0.500ng_CellLine_0" "75.25.500ng_CellLine

Re: [R] (no subject)

2020-05-14 Thread Ivan Krylov
Dear Luigi, These questions (and your previous one about R on Chromebook) are best directed to the R-SIG-Debian mailing list [*], or maybe Ubuntu forums [**]. I think that they are off-topic here on R-help. Here is a short advice: try to make sure that you have the r-recommended package installed

[R] (no subject)

2020-05-14 Thread Luigi Marongiu
Dear all, I am trying to upgrade from ubuntu 19 to 20 but I got some R stuff that stop the process: ``` $ apt list --upgradable Listing... Done r-cran-kernsmooth/xenial 2.23-15-3xenial0 amd64 [upgradable from: 2.23-15-3build2] r-cran-nnet/xenial 7.3-12-2xenial0 amd64 [upgradable from: 7.3-12-2build

Re: [R] (no subject)

2020-03-08 Thread Eric Berger
I have no experience with these packages/libraries. I did a Google search on 'R interface for G@RCH' and there seemed to be a number of relevant hits, such as https://faculty.chicagobooth.edu/ruey.tsay/teaching/bs41202/sp2009/G@RCH_info.txt HTH, Eric On Sun, Mar 8, 2020 at 12:42 PM Jim Lemon

Re: [R] (no subject)

2020-03-08 Thread Jim Lemon
Hi Meryem, It seems that OxMetrics is the underlying environment for G@RCH and OxConsole (command line) is free for academic use. (https://www.doornik.com/products.html). A quick glance didn't reveal any interface for R. Jim On Sun, Mar 8, 2020 at 9:27 PM meryem khanniji wrote: > > Hello to all

[R] (no subject)

2020-03-08 Thread meryem khanniji
Hello to all R users' , I need to get the Ox interface in R, can anyone help me to know if the garchOxfit is still working . Also i want to know if there is a way to get G@RCH package. Thanks in advance [[alternative HTML version deleted]] __ R

Re: [R] (no subject)

2020-01-20 Thread Jeff Newmiller
Per the Posting Guide... stop sending HTML-formatted email to this mailing list. The formatting gets stripped out anyway and introduces confusion. Gmail _has_ this option, but you must specify it before you send the email. Also, try to use Reply-all when discussing the same topic to keep related

Re: [R] (no subject)

2020-01-20 Thread Jeff Newmiller
Per the Posting Guide... stop sending HTML-formatted email to this mailing list. The formatting gets stripped out anyway and introduces confusion. Gmail _has_ this option, but you must specify it before you send the email. Also, try to use Reply-all when discussing the same topic to keep related

[R] (no subject)

2020-01-20 Thread Paul Bernal
Example of conversion to decimal of a signed binary number in two's complement representation Let's convert to decimal the following signed binary number: 10110010 10110010 = -1×27 + 0×26 + 1×25 + 1×24 + 0×23 + 0×22 + 1×21 + 0×20 = -128 + 32 + 16 + 2 = -78. that operation ilvoves base 2 raised to

[R] (no subject)

2019-11-16 Thread imran damkar
I want to check if boot strapping can prove helpful in improving homogeneity of variance. If it does so, I would like to perform hypothesis testing on same transformed data( bootstrapped data),by using non-parametric anova . How can I store new bootstrapped data set in data frame? Data is 5 point

Re: [R] (no subject)

2019-11-05 Thread David Winsemius
This question is off-topic for rhelp despite your use of an R package because it is a request for advice for statistical issues, rather than about R coding. You should read the Posting guide where you are advised of this concern. You are also asked to post in plain text and include an informati

[R] (no subject)

2019-11-05 Thread imran damkar
Greetings, I have collected the data based on 5 point likert scale(very low, low, neutral, high,very high) on the factor considered by individual before making investment decision. There are five factors (D.Vs) Influencing investment decisions. I am interested in knowing whether there is significan

Re: [R] (no subject)

2019-11-04 Thread Kevin Thorpe
Have you read the help pages of the two functions? That is where I would start. -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla Lana School of Public Health University of Toronto email: ke

[R] (no subject)

2019-11-04 Thread imran damkar
Hi, I would like to know what is the difference between function oneway_test and independence_test of coin package. You will highly appreciated Regards [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE a

[R] (no subject)

2019-09-05 Thread pusuluri madhu
Please unsubscribe me -- *Madhu Pusuluri, Ph D* *Visiting Scientist* *Genomics & Trait discovery- Genetic Gains* *International Crops Research Institute for the Semi-Arid Tropics (ICRISAT)* *Patancheru, Hyderabad, Telangana 502324, INDIA.* *E-mail: **m.pusul...@cgiar.org **; madhupusul...@gm

[R] (no subject)

2019-08-05 Thread Mangalani Makananisa
Dear all, I have been reading some documentations including Latent variable Modeling using R and I am confronted with some challenges. Could you please direction/guidance me with the following problem? If I am given continuous time series ‘quarterly data’ with three indicators (Y1, Y2 and Y3) an

[R] (no subject)

2019-04-30 Thread Haddison Mureithi
Hello guys this problem was never answered and I happened to come across the same problem , kindly help. This is a simple R program that I have been trying to run. I keep running into the "singular matrix" error. I end up with no sensible results. Can anyone suggest any changes or a way around this

[R] (no subject)

2019-04-29 Thread mahboobe akhlaghi
Hello. I have a question from kamila package. I run this package on my data and the database is on SQL server. now, I have an error that I don't know what should I do. kamrespresc<-kamila(conVarsPresc,catVarsFacPresc,numClust=3,numInit=10) Error in matrix(data = log(gtools::rdirichlet(n = numClust,

[R] (no subject)

2019-04-24 Thread Mahnoor Malik
[[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide com

[R] (no subject)

2019-04-23 Thread Abs Spurdle
Note that your post has no subject line. I can't find it in my emails, which may explain why no one else has replied. > fo<-h~a+b*log(dbh)+c*(log(dbh))^2+1.3 I'm assuming that you want to fit a model with three parameters, a, b and c. This would be a linear model (linear in the parameters). I'm g

[R] (no subject)

2019-04-18 Thread Catalin Roibu
Dear R users, I want to compute a nlm for each plot an species and after that to save the regression coef for each species and plot. Thanks for your help! I tried something like this s<-data.frame(unique(ah$sp)) pl<-data.frame(unique(ah$plot)) z<-data.frame(matrix(nrow=0, ncol=5)) for(i in 1:nr

Re: [R] (no subject)

2019-02-11 Thread Adrian Johnson
Pardon me, I forgot to add subject line. -Adrian. On Sun, Feb 10, 2019 at 3:49 PM Adrian Johnson wrote: > > Dear group, > > I have two large matrices. > > Matrix one: is 24776 x 76 (example toy1 dput object given below) > > Matrix two: is 12913 x 76 (example toy2 dput object given below) > > Colu

[R] (no subject)

2019-02-10 Thread Adrian Johnson
Dear group, I have two large matrices. Matrix one: is 24776 x 76 (example toy1 dput object given below) Matrix two: is 12913 x 76 (example toy2 dput object given below) Column names of both matrices are identical. My aim is: a. Take each row of toy2 and transform vector into UP (>0) and DN (

Re: [R] (no subject)

2019-02-10 Thread Hasan Diwan
This is spam, right? -- H On Sun, 10 Feb 2019 at 12:36, Diego Miro wrote: > 4 xxx ff > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-h

[R] (no subject)

2019-02-10 Thread Diego Miro
4 xxx ff [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and prov

Re: [R] (no subject)

2019-02-03 Thread Rui Barradas
Hello, It is just a guess but I bet that what the OP means is f <- function(x) { 2 + x^2 - x^3 } uniroot(f, lower = 1, upper = 2) To the OP: please learn how to write math in R *before* trying to solve problems. Hope this helps, Rui Barradas Às 16:07 de 02/02/2019, Berend Hasselman e

Re: [R] (no subject)

2019-02-02 Thread Berend Hasselman
> On 1 Feb 2019, at 12:41, malika yassa via R-help wrote: > > Please, can you help me I have a equation to solve by newton method but I can > not do it > for example > > f<-function(x) { > > > 2+X2-X3=0} > this equation have un solution in [1,2] > is there a function in R for solve it or i

Re: [R] (no subject)

2019-02-02 Thread Hasan Diwan
Look at the rootSolve package[1] for what you need. Hope it helps... -- H On Sat, 2 Feb 2019 at 06:46, malika yassa via R-help wrote: > Please, can you help me I have a equation to solve by newton method but I > can not do it > for example > > f<-function(x) { > > > 2+X2-X3=0} > this equation ha

[R] (no subject)

2019-02-02 Thread malika yassa via R-help
Please, can you help me I have a equation to solve by newton method but I can not do it for example f<-function(x) { 2+X2-X3=0} this equation have un solution in [1,2] is there a function in R for solve it or i have to programme it [[alternative HTML version deleted]] _

Re: [R] (no subject)

2019-01-10 Thread Bert Gunter
Please post on R-package-devel, not here. That list is specifically devoted to such issues. This list is about R programming help. -- 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

[R] (no subject)

2019-01-10 Thread Sam Albers
Hello all, I am experience some issues with building a package that we are hosting on GitHub. The package itself is quite large. It is a data package with a bunch of spatial files stored as .rds files. The repo is located here: https://github.com/bcgov/bcmaps.rdata If we clone that package to l

Re: [R] (no subject)

2018-12-03 Thread Jeremie Juste
Hello, Can you provide more information? What is your operating system? What is your database management system (sqlite, mySQL,...) What package do you use to import the data in R from the database? What is the default language on your computer? Are the variables not in farsi fine? My guess is th

Re: [R] (no subject)

2018-12-02 Thread Jeff Newmiller
It is possible that this is not an RStudio-specific issue in spite of the initial phrasing. Mahboobe: If when you use Rgui (Windows) or R.app (Mac) or plain R at the command line (any OS) you still have problems, then you may need to ask for help here or in R-sig-mac or R-sig-debian or R-sig-f

Re: [R] (no subject)

2018-12-02 Thread Duncan Murdoch
On 02/12/2018 6:51 AM, mahboobe akhlaghi wrote: Hi, I have a question about R Studio. I have a database in SQL. now, I combined SQL and R Studio. the levels of a variable is in farsi. so when I want to read some variables, in R Studio are "???" . I want to show them in farsi. what should I do

[R] (no subject)

2018-12-02 Thread mahboobe akhlaghi
Hi, I have a question about R Studio. I have a database in SQL. now, I combined SQL and R Studio. the levels of a variable is in farsi. so when I want to read some variables, in R Studio are "???" . I want to show them in farsi. what should I do to have right words in R Studio? Thanks. -- Bes

Re: [R] (no subject)

2018-10-22 Thread PIKAL Petr
Sent: Saturday, October 20, 2018 3:04 PM > To: r-help@r-project.org > Subject: [R] (no subject) > > hello > please you help mei have this functionx<-rnorm(10,0,1)f<-fuction(u,x) > {exp((x- > u)}I want to calculate the integral of this function for each value of >

Re: [R] (no subject)

2018-10-20 Thread Bert Gunter
Jeremie's suggestion of course will fail if some of the off-diagonal elements are the same as those on the diagonals. The request doesn't make a lot of sense to me, but if "m" is the matrix, m[row(z) != col(z)] reliably extracts the vector of non-diagonal entries, which can then be dimensioned

Re: [R] (no subject)

2018-10-20 Thread Jeremie Juste
Hello, Be sure to include the mailing list, when you reply. In this way to improve your chances of obtaining a good answer and everyone benefits. May be something like this ? aa <- matrix(1:9,3,3) matrix(as.numeric(aa)[!as.numeric(aa) %in% diag(aa)],2,3) [,1] [,2] [,3] [1,]24

Re: [R] (no subject)

2018-10-20 Thread Jeremie Juste
malika yassa via R-help writes: Hello, Can you specify what you mean by deleting exactly? Do you want to have zero in the diagonal or do you want to extract the non-diagonal part? Besides your matrix is not a square matrix. Do you really want to extract the non-diagonal part of a non square mat

[R] (no subject)

2018-10-20 Thread malika yassa via R-help
hello please you help mei have this functionx<-rnorm(10,0,1)f<-fuction(u,x)  {exp((x-u)}I want to calculate the integral of this function for each value of x{for(i in 1:lenght(x) integrate(f,lower=1,upper=4) }but I can not find the vector of resulatwhere is the errorthinks [[alternativ

[R] (no subject)

2018-10-20 Thread malika yassa via R-help
hellowplease,do you help mei have this matrixm<-matrix(( 1:12, nrow = 3 ) I want to delete the diagonal values of this matrix can anyone do thisthinks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

[R] (no subject)

2018-08-21 Thread jsebastiantello
hi R https://goo.gl/G8X41r __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal,

[R] (no subject)

2018-08-20 Thread Giuseppa Cefalu
Hello, I have a list of lists. The lists in the list of lists are file names. I use lapply to read and merge the contents of each list in the list of lists (3 merged contents in this case which will be the content of 3 files). Then, I have to change the name of the 3 resulting files and final

Re: [R] (no subject)

2018-08-07 Thread Jim Lemon
Hi malika, You don't seem to have defined your functions correctly. For example: H<-function(u,x1) would define an empty function H if that command worked, but it doesn't Jim On Tue, Aug 7, 2018 at 3:51 PM, malika yassa via R-help wrote: > hellothis is my programmeyou can help me, i cann't fo

[R] (no subject)

2018-08-06 Thread malika yassa via R-help
hellothis is my programmeyou can help me, i cann't found a solution for H  and this  function i calculate for all value for x1thank you x<-rexp(N,2) z<-rnorm(0,1,n) g=k)-k*(Z-m<=-k)} k1<-function(u,x1){-1/(2*pi)exp((x1-u)/h1} for (i in 1:n) {k1(u,x1)=integrate(-1/(2*pi)exp((x1-u)/h1,lower=

Re: [R] (no subject)

2018-07-30 Thread Bert Gunter
How can one possibly answer this without knowing the structure of your dataset? -- 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, Jul 30, 2018 at 8

[R] (no subject)

2018-07-30 Thread Baojun Sun
The book "Introduction to Statistical Learning" gives R scripts for its labs. I found a script for ridge regression that works on the dataset the book uses but is unusable on other datasets I own unless I clean the data. I'm trying to understand the syntax for I need for data cleaning and am stuc

Re: [R] (no subject)

2018-07-21 Thread Rui Barradas
Hello, Please always write to r-help, not to me personally, even if I was able to be of assistance in the past. As for your question, your code has several problems. 1) rowSums and colSums return vectors, not matrices. Even if they did, see point 3) below. 2) You define K = 0 then in X[1]

Re: [R] (no subject)

2018-07-16 Thread Rui Barradas
Hello, Please repost in plain text, NO HTML formating. Also, you are missing an open parenthesis right after while: while( sum(abs(Sb-D-Sc-t(Pi))>1E-5)){ Hope this helps, Rui Barradas Às 14:25 de 15-07-2018, Atanasio Alberto Tembe Tembe escreveu: Hello! Is there anyone who can help me to

Re: [R] (no subject)

2018-07-15 Thread Thierry Onkelinx
Dear Laura, I came across the anipaths package (https://cran.r-project.org/web/packages/anipaths/vignettes/anipaths.html) It might be useful for you. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK /

Re: [R] (no subject)

2018-07-15 Thread Jeff Newmiller
I think you are missing a parenthesis around your condition [1][2]. For future reference: a) You should post the code you ran as well as the error message... it is unusual for the error message alone to be enough to figure out the problem. In fact, try to make a "reproducible example" [3][4][5].

[R] (no subject)

2018-07-15 Thread Atanasio Alberto Tembe Tembe
Hello! Is there anyone who can help me to this the error bellow? Ijust started using R recently. Thank you while sum(abs(Sb-D-Sc-t(Pi))>1E-5{Error: unexpected symbol in "while sum"> > k=K+1> > for(i in 1:nrow(c1)){+ + for(j in 1:ncol(c1)){+ + if

[R] (no subject)

2018-07-15 Thread Nelson Sibanda via R-help
UNSCRIBE [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provi

  1   2   3   4   5   6   7   8   9   10   >