[R] question re: tidycensus

2021-06-11 Thread Milton O Faison
Hi, all, I'm having a new (for me) problem with tidycensus. When I attempt to pull data at the zcta level using get_acs, I get "GEOMETRYCOLLECTION EMPTY" in the geometry column. It does not happen when I pull data at the census tract level. This is also a fairly new problem, because I was using

[R] Question about sjPlot lines and scale

2021-06-03 Thread Luis Fernando García
Dear all, I am wanting to improve a plot made with the package sjPlot. When plotting this model Plot produced looks like this https://docs.google.com/presentation/d/1Pqm6BcJXdSQ6U1zmv5FV7gBcn1afHHv7rlQHe6j59_c/edit?usp=sharing, especially red and green lines. I just have two concerns with this

Re: [R] question about the difference of AIC()

2021-05-12 Thread Søren Højsgaard
In the first model, I believe you estimate two parameters: the mean and the variance: > fm <- lm(y ~ 1) > 2*2 - 2 * logLik(fm) 'log Lik.' 40.49275 (df=2) > AIC(fm) [1] 40.49275 A zero mean model: fm0 <- lm(y ~ -1) > 2*1 - 2 * logLik(fm0) 'log Lik.' 39.00611 (df=1) > AIC(fm0) [1] 39.00611 Regard

Re: [R] question about the difference of AIC()

2021-05-12 Thread Jinsong Zhao
On 2021/5/12 19:49, Jinsong Zhao wrote: Hi there, I learned that AIC = 2 * npar - 2 * log(logLik(model)), where k is the number of estimated parameters in the model. k should be npar in the above sentence. Sorry for the mistake. For examle: > set.seed(123) > y <- rnorm(15) > fm <- lm(y

[R] question about the difference of AIC()

2021-05-12 Thread Jinsong Zhao
Hi there, I learned that AIC = 2 * npar - 2 * log(logLik(model)), where k is the number of estimated parameters in the model. For examle: > set.seed(123) > y <- rnorm(15) > fm <- lm(y ~ 1) In this example, npar should be 1, so, AIC is: > 2*1 - 2 * logLik(fm) 'log Lik.' 38.49275 (df=2) However

Re: [R] Question about using R sample datasets

2021-05-02 Thread Jeff Newmiller
You have already been reminded that none of us are lawyers. There is license text associated with every package and base R, and it is not necessarily the same for all parts of R, so there is no way for us to answer your question in its vague form and no way for you to rely our opinions even if y

Re: [R] Question about using R sample datasets

2021-05-02 Thread Maja Analytics
Thanks for the advice. What about R code? Is that free to share? I would use my own dataset or made up dataset, so I am only now interested what about R code, can I screenshot it and then explain what is on the photo? Maja ned, 2. svi 2021. u 01:17 David Winsemius napisao je: > Any answer you

Re: [R] Question about using R sample datasets

2021-05-02 Thread David Winsemius
Again, the terms of the license govern the legalities. I don’t think you would need any further efforts at licensing your commentary. Screenshots or text copies would both be just copies and the appropriate citations would probably be all that were needed. I do not think your commentary or expla

Re: [R] Question

2021-05-01 Thread Jim Lemon
Hi Myungjin, The funnel plot is no more than the precision of the estimates of related studies plotted against the estimates. That is, if your measure of precision is the sample size (SS) and the estimate is named E, plot(E,SS) Look at the metafor package for good funnel plot functions. Egger's t

Re: [R] Question

2021-05-01 Thread Bert Gunter
Do note, per the posting guide linked below (which you should read): "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R ), ask questions on R-help. If the question relates to

[R] Question

2021-05-01 Thread Myungjin Jung
Good evening, I have a quick question about the "robumeta" package in R software. Below is my question: Is it possible to create funnel plots as well as assess (Egger's test) and adjust (Trim and fill approach) for publication bias in meta-analysis with RVE methods? Thank you so much for your he

Re: [R] Question about using R sample datasets

2021-05-01 Thread David Winsemius
Any answer you get here will will have all the authority of "some guy on the Internet", but my reading of the licenses is that as long as you give proper credit that you can use any material in teaching or commercial purposes AND derivative works are likewise copy-able on an open source (FOSS) b

[R] Question about using R sample datasets

2021-05-01 Thread Maja Analytics
Hello! I would like to make tutorials for non-data scientists in R on Medium and as LinkedIn articles. Could you tell me if I can use R sample datasets (I would note the acknowledgements on the end) for that? Thanks in advance, kind regards, Maja [[alternative HTML version deleted]] ___

Re: [R] Question about dotwhisker

2020-12-19 Thread Dan Bolser
Sorry, forgot to link the actual vignette: https://cran.r-project.org/web/packages/dotwhisker/vignettes/dotwhisker-vignette.html In fact the vignette states: dwplot(m1_df) #same as dwplot(m1) where m1_df is m1_df <- tidy(m1) They are not the same in either the vignette itself or on my computer.

[R] Question about dotwhisker

2020-12-19 Thread Dan Bolser
Hello, I'm reading this and one part is confusing me (the most ;-) library(dotwhisker) library(broom) library(dplyr) m1 <- lm(mpg ~ wt + cyl + disp + gear, data = mtcars) # Please compare: dwplot(m1) dwplot(tidy(m1)) Why is the dwplot of tidy(m1) so different from the dwplot of m1? I had thou

Re: [R] Question about the package "MatchIt"

2020-10-10 Thread Ehsan Karim
Maria: What you are looking for (propensity score matching on survey data) is discussed in lab 5 components of this series using matchit and matching package: https://www.youtube.com/playlist?list=PL2yD6frXhFob_Mvfg21Y01t_yu1aC9NnP Regards, Ehsan https://ehsank.com/ On Fri., Oct. 9, 2020, 4:0

Re: [R] Question about the package "MatchIt"

2020-10-10 Thread Patrick (Malone Quantitative)
Maria Cristina, The MatchIt homepage at https://gking.harvard.edu/matchit has a link to a mailing list specific to the package and it has searchable archives. You will probably have better luck there than a general R programming list. Though a quick perusal of the user guide at that site makes me

Re: [R] Question about the package "MatchIt"

2020-10-09 Thread Jeremie Juste
Hello Maria Cristina, On Friday, 9 Oct 2020 at 19:39, Maria Cristina Maurizio wrote: > Hi! I'm trying to perform propensity score matching on survey data and so > for each individual observation I have a statistical weight attached. My > question is: is there a way within the package to consider

[R] Question about the package "MatchIt"

2020-10-09 Thread Maria Cristina Maurizio
Hi! I'm trying to perform propensity score matching on survey data and so for each individual observation I have a statistical weight attached. My question is: is there a way within the package to consider these weights in the matching procedure? Thank you very much. -- Maria Cristina Maurizio

Re: [R] question including crossover trials in meta-analysis

2020-09-15 Thread Belgers, V. (Vera)
-project.org Onderwerp: Re: [R] question including crossover trials in meta-analysis Did you first try a web search? -- you should always do this before posting here. "meta-analysis in R" brought up this: https://CRAN.R-project.org/view=MetaAnalysis<https://eur04.safelinks.protection.out

Re: [R] question including crossover trials in meta-analysis

2020-09-15 Thread Michael Dewey
Dear Vera In addition to what you already have you might like to know about the mailing list specifically dedicated to meta-analysis in R. https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis// You might like to search the archives first as this sort of issue does come up there. You are

Re: [R] question including crossover trials in meta-analysis

2020-09-14 Thread Marc Schwartz via R-help
Hi, Bert has pointed you to some R specific packages for meta-analyses via the Task View. It sounds like you may need to first address some underlying conceptual issues, which strictly speaking, is off-topic for this list. That being said, a quick Google search came up with some possible resou

Re: [R] question including crossover trials in meta-analysis

2020-09-14 Thread Bert Gunter
Did you first try a web search? -- you should always do this before posting here. "meta-analysis in R" brought up this: https://CRAN.R-project.org/view=MetaAnalysis Have you looked at this task view yet? Bert Gunter "The trouble with having an open mind is that people keep coming along and st

[R] question including crossover trials in meta-analysis

2020-09-14 Thread Belgers, V. (Vera)
Dear sir/madam, Thank you in advance for taking the time to read my question. I am currently trying to conduct a meta-analysis combining parallel and crossover trials. According to the Cochrane Handbook, I can include crossover trials by using t-paired statistics. So far, I have managed to condu

Re: [R] Question about PERL lookahead construct in regex's

2020-08-12 Thread Bert Gunter
Thank you. That indeed dispels my brain fog! Best, 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 Wed, Aug 12, 2020 at 6:35 AM Stefan Evert wrote: > >

Re: [R] Question about PERL lookahead construct in regex's

2020-08-12 Thread Stefan Evert
> On 10 Aug 2020, at 18:36, Bert Gunter wrote: > > But this appears to be imprecise (it confused me, anyway). The usual sense > of "matching" in regex's is "match the pattern somewhere in the string > going forward." But in the perl lookahead construct it apparently must > **exactly** match *ev

Re: [R] Question about PERL lookahead construct in regex's

2020-08-11 Thread Greg Snow
I think that the current documentation is correct, but that does not mean that it cannot be improved. The key phrase for me is "from the current position" which says to me that the match needs to happen right there, not just somewhere in the rest of the string. If you used the expression " +t" t

[R] Question about PERL lookahead construct in regex's

2020-08-10 Thread Bert Gunter
Folks: Consider: > y <- "xx wt" > grep(" +(?=t)",y, perl = TRUE) integer(0) ## Unexpected. Lookahead construct does not find "t" after space ## But > grep(" +(?=.+t)",y, perl = TRUE) [1] 1 ## Expected. Given pattern for **exact** match, lookahead finds it My concern is: ?regexp says this: "Patte

Re: [R] Question about citing R packages in an academic paper

2020-07-23 Thread Dr. Mehdi Dadkhah
Thank you very much! With best regards Dr. Mehdi Dadkhah Email: drdadk...@outlook.com Website: drdadkhah.click From: Michael Dewey Sent: Thursday, July 23, 2020 1:06 PM To: Dr. Mehdi Dadkhah ; r-help@r-project.org Subject: Re: [R] Question about citing R

Re: [R] Question about citing R packages in an academic paper

2020-07-23 Thread Michael Dewey
Dear Medhi It is good that you are going to cite the packages properly. I do not think it matters too much whether they are in the article itself or in the supplementary material, the important thing is that they are there. You do not have any legal obligation to cite them, as far as I know a

[R] Question about citing R packages in an academic paper

2020-07-21 Thread Dr. Mehdi Dadkhah
Hi, I hope you are doing well! I have a question. I and my colleagues wrote a paper by using R language and its packages. We also used some tutorials. We have words count limitation for our paper. In early version of paper, I cited all packages in the reference list of paper (my paper will be p

Re: [R] Question about package "SentimentAnalysis"

2020-05-09 Thread Mehdi Dadkhah
Thank you! On Sat, May 9, 2020 at 11:44 AM wrote: > Or, to split the paragraph into sentences, analyse each sentence and > decide how to agregate the result... > > > > On 9 May 2020 04:33, Mehdi Dadkhah wrote: > > Thank you! > > On Fri, May 8, 2020 at 10:04 PM John Kane wrote: > > > I think yo

Re: [R] Question about package "SentimentAnalysis"

2020-05-08 Thread Mehdi Dadkhah
Thank you! On Fri, May 8, 2020 at 10:04 PM John Kane wrote: > I think your best bet is to ask the author/maintainer, Stefan Feuerriegel > ,about this. The reference manual > https://cran.r-project.org/web/packages/SentimentAnalysis/SentimentAnalysis.pdf > gives his email address as > > On Fri,

Re: [R] Question about package "SentimentAnalysis"

2020-05-08 Thread John Kane
I think your best bet is to ask the author/maintainer, Stefan Feuerriegel ,about this. The reference manual https://cran.r-project.org/web/packages/SentimentAnalysis/SentimentAnalysis.pdf gives his email address as On Fri, 8 May 2020 at 08:32, Mehdi Dadkhah wrote: > Hi, > I hope you are doing w

[R] Question about package "SentimentAnalysis"

2020-05-08 Thread Mehdi Dadkhah
Hi, I hope you are doing well! I read a vignette ( https://cran.r-project.org/web/packages/SentimentAnalysis/vignettes/SentimentAnalysis.html) about interested package, "SentimentAnalysis". But i faced with a question. In mentioned vignette, the sentiment has been applied on a sentence or multiple

[R] Question about topic modelling

2020-05-08 Thread Mehdi Dadkhah
Hi, I hope you are doing well! I have a question about topic modeling. Please consider summarized steps for making a LDA (Latent Direchlet Allocation) model: 1-importing data 2-making a corpus. 3-pre-processing and cleaning data 4-making term document matrix 5-Apply LDA in topicmodel package. Durin

Re: [R] Question about combining foodwebs and phylogenetic trees

2020-05-05 Thread Bert Gunter
I think it unlikely that you'll get such specific help here. Try posting on: R-SIG-phylo: R SIG on phylogenetic and comparative methods and analyses instead. (I also assume you are aware of: https://CRAN.R-project.org/view=Phylogenetics , but I have no idea whether it is helpful). Bert Gunter

[R] Question about combining foodwebs and phylogenetic trees

2020-05-05 Thread Charles Lehnen
I have trying to combine foodweb outputs like the bipartite package's plotweb() function of bipartiteD3’s bipartite_D3 function with phylogenetic trees, similar to a tanglegram. Because of the very large size and a high amount of variability in my dataset, standard tanglegrams turn out very convolu

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Fomby, Tom
Thank you so much Duncan. I will pitch in. Tom From: Duncan Murdoch Sent: Sunday, May 3, 2020 2:56 PM To: Fomby, Tom; r-help@R-project.org Subject: Re: [R] Question about "sample" function and inconsistent results I am getting across machines. On

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Fomby, Tom
:50 PM To: Fomby, Tom; r-help@R-project.org Subject: Re: [R] Question about "sample" function and inconsistent results I am getting across machines. I just tried both versions, and it's the ASUS that's using the buggy old algorithm. Duncan Murdoch On 03/05/2020 3:32 p.m.,

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Fomby, Tom
ay 3, 2020 2:32 PM To: Fomby, Tom; r-help@R-project.org Subject: Re: [R] Question about "sample" function and inconsistent results I am getting across machines. On 03/05/2020 1:39 a.m., Fomby, Tom wrote: > Please consider the following code: > > set.seed(1) > > t

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Duncan Murdoch
/r-user-groups/. (I haven't checked how similar those two lists are.) Duncan Murdoch Thank you, Tom Fomby Department of Economics SMU Dallas, TX 75275 *From:* Duncan Murdoch *Sent:* Sunday, May 3, 2020 2:32

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Duncan Murdoch
I just tried both versions, and it's the ASUS that's using the buggy old algorithm. Duncan Murdoch On 03/05/2020 3:32 p.m., Duncan Murdoch wrote: On 03/05/2020 1:39 a.m., Fomby, Tom wrote: Please consider the following code: set.seed(1) train.index = sample(181,150) head(train.index) # [1]

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Jeff Newmiller
It is a lot easier from this side of the conversation to view skeptically the claim that all of these installations of R are using the same version than that the software seed has started behaving randomly within the same version of R. On May 2, 2020 10:39:58 PM PDT, "Fomby, Tom" wrote: >Please

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Duncan Murdoch
On 03/05/2020 1:39 a.m., Fomby, Tom wrote: Please consider the following code: set.seed(1) train.index = sample(181,150) head(train.index) # [1] 49 67 103 162 36 159 Result from my ASUS computer # # [1] 68 167 129 162 43 14 Result from my wife's HP Pavilion computer In both cases, versio

[R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Fomby, Tom
Please consider the following code: set.seed(1) train.index = sample(181,150) head(train.index) # [1] 49 67 103 162 36 159 Result from my ASUS computer # # [1] 68 167 129 162 43 14 Result from my wife's HP Pavilion computer In both cases, version 3.6.3 of R are being used. In addition, of

Re: [R] question about system.file()

2020-04-11 Thread Jeff Newmiller
Only you have the power to solve your problem. Follow the instructions in the footer of any R-help email. On April 10, 2020 8:33:41 PM PDT, Anand Menon wrote: >Hello, Could you please help unsubscribe me from these emails. Thank >you. > >Kind Regards, >Anand K Menon >Cell: 1-416-939-3671 > > >On

Re: [R] question about system.file()

2020-04-11 Thread Rui Barradas
Hello, There are instructions to unsubscribe at the bottom of this e-mail and of every R-Help e-mail, see the all capital letters word. Hope this helps, Rui Barradas Às 04:33 de 11/04/20, Anand Menon escreveu: Hello, Could you please help unsubscribe me from these emails. Thank you. Kind R

Re: [R] question about system.file()

2020-04-11 Thread Anand Menon
Hello, Could you please help unsubscribe me from these emails. Thank you. Kind Regards, Anand K Menon Cell: 1-416-939-3671 On Fri, Apr 10, 2020 at 3:46 PM Ana Marija wrote: > Hello, > > I would like to try this example in this link: > > https://www.rdocumentation.org/packages/SNPRelate/version

Re: [R] question about system.file()

2020-04-10 Thread Rasmus Liland
On Fri, Apr 10, 2020 at 2:54 PM Duncan Murdoch wrote: > On 10/04/2020 3:46 p.m., Ana Marija wrote: > > I have in current directory from > > where I would run this function a > > file named output4.bed > > Just use "output4.bed" as the > filename. The system.file() function > is for working out

Re: [R] question about system.file()

2020-04-10 Thread Ana Marija
Got it, thanks! On Fri, Apr 10, 2020 at 2:54 PM Duncan Murdoch wrote: > > On 10/04/2020 3:46 p.m., Ana Marija wrote: > > Hello, > > > > I would like to try this example in this link: > > https://www.rdocumentation.org/packages/SNPRelate/versions/1.6.4/topics/snpgdsBED2GDS > > > > for example this

Re: [R] question about system.file()

2020-04-10 Thread Duncan Murdoch
On 10/04/2020 3:46 p.m., Ana Marija wrote: Hello, I would like to try this example in this link: https://www.rdocumentation.org/packages/SNPRelate/versions/1.6.4/topics/snpgdsBED2GDS for example this line: bed.fn <- system.file("extdata", "plinkhapmap.bed.gz", package="SNPRelate") I have in c

Re: [R] question about system.file()

2020-04-10 Thread Ana Marija
I tried to do this but I got this error: > bed.fn <- system.file("output4.bed", package="SNPRelate") > dim(bed.fn) NULL > fam.fn <- system.file("output4.fam", package="SNPRelate") > bim.fn <- system.file("output4.bim", package="SNPRelate") > snpgdsBED2GDS(bed.fn, fam.fn, bim.fn, "HapMap.gds") Star

[R] question about system.file()

2020-04-10 Thread Ana Marija
Hello, I would like to try this example in this link: https://www.rdocumentation.org/packages/SNPRelate/versions/1.6.4/topics/snpgdsBED2GDS for example this line: bed.fn <- system.file("extdata", "plinkhapmap.bed.gz", package="SNPRelate") I have in current directory from where I would run this

Re: [R] Question about nlminb function

2020-04-07 Thread Lim, Hwanggyu
AM To: Ivan Krylov ; Lim, Hwanggyu Cc: r-help@r-project.org Subject: Re: [R] Question about nlminb function This thread points out the important and often overlooked difference between "convergence" of an algorithm and "termination" of a program. I've been pushing this

Re: [R] Question about nlminb function

2020-04-07 Thread Lim, Hwanggyu
Hello Ivan, Thank you so much for your valuable comments. I will definitely look at the R package of nloptr you introduced. Best, Hwanggyu -Original Message- From: Ivan Krylov Sent: Friday, April 3, 2020 5:25 AM To: Lim, Hwanggyu Cc: r-help@r-project.org Subject: Re: [R] Question

Re: [R] Question about nlminb function

2020-04-03 Thread J C Nash
This thread points out the important and often overlooked difference between "convergence" of an algorithm and "termination" of a program. I've been pushing this button for over 30 years, and I suspect that it will continue to come up from time to time. Sometimes it is helpful to put termination c

Re: [R] Question about nlminb function

2020-04-03 Thread Ivan Krylov
On Thu, 2 Apr 2020 10:26:07 + "Lim, Hwanggyu" wrote: > when n-1th estimates and nth estimates have absolute differences > less than 0.001 for all three parameters, the iteration must stop > I am using nlminb optimization function nlminb function uses the PORT library. According to [1], the

[R] Question about nlminb function

2020-04-02 Thread Lim, Hwanggyu
Hello, My name is Hwanggyu Lim. I am working estimating parameters of non-negative function, which has local maximums. For example, the function has three parameters (e.g., f(a, b, c)) and I need to estimate them. For this, I am using nlminb optimization function and it works fine. Here is my q

Re: [R] Question about autocomplete Keyboard Shortcut in R Markdown Latex

2020-02-05 Thread Duncan Murdoch
On 05/02/2020 12:57 p.m., Jeff Newmiller wrote: The rmarkdown package is not the issue... this question is about editor customization. Rmarkdown can be edited in many text editors and IDEs, and none of them are on topic here. That said, there is a high probability that OP is using the RStudio

Re: [R] Question about autocomplete Keyboard Shortcut in R Markdown Latex

2020-02-05 Thread Jeff Newmiller
The rmarkdown package is not the issue... this question is about editor customization. Rmarkdown can be edited in many text editors and IDEs, and none of them are on topic here. That said, there is a high probability that OP is using the RStudio IDE, and indeed it would be best to ask them for a

Re: [R] Question about autocomplete Keyboard Shortcut in R Markdown Latex

2020-02-05 Thread Bert Gunter
Try posting this at the RStudio Help site, as R Markdown is part of the ecosystem they have created and support. 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 ) O

[R] Question about autocomplete Keyboard Shortcut in R Markdown Latex

2020-02-05 Thread Tao Z
Hi, In R, we know how to autocomplete a function name or some arguments in the function. I usually use “Tab” to achieve this. But when I was preparing my math homework using R Markdown, I want to achieve similar results: for example, I want to autocomplete $\frac{}{}$ when I only typed $\fr$

Re: [R] Question about geometric mean

2019-10-18 Thread Rich Shepard
On Fri, 18 Oct 2019, Mehdi Dadkhah wrote: I am using Interpretive structural modeling (ISM) ... My question is: How should I calculate geometric mean of experts’ opinions ... I'm not a statistician, nor do I know anything about ISM. With that disclosure I offer a couple of thoughts. First,

[R] Question about geometric mean

2019-10-18 Thread Mehdi Dadkhah
Hi, I hope you are doing well. I am using Interpretive structural modeling (ISM) and need to build a “reachability matrix” to use it as the input for “ISM” package. In ISM method, the opinion of some experts should be collected. For example, attached image includes matrices which show opinions of

[R] Question on extracting subsampled features from node in Random forest Package

2019-08-11 Thread Samir Rachid Zaim
Hi all, *Question:* *Is there a way to see what variables are subsampled in a node in a tree in a random forest?* ---

Re: [R] Question about NRC lexicon usage

2019-07-31 Thread Mehdi Dadkhah
Thank you! With best regards, On Wed, Jul 31, 2019 at 1:24 PM peter dalgaard wrote: > It is not obvious that this is an R question, but 2 suggestions > > (a) some emotions are not clearly positive or negative (e.g. anticipation) > (b) emotions possibly not mutually exclusive > &g

Re: [R] Question about NRC lexicon usage

2019-07-31 Thread peter dalgaard
It is not obvious that this is an R question, but 2 suggestions (a) some emotions are not clearly positive or negative (e.g. anticipation) (b) emotions possibly not mutually exclusive -pd > On 31 Jul 2019, at 09:11 , Mehdi Dadkhah wrote: > > Hi, > I hope you are doing well!

[R] Question about NRC lexicon usage

2019-07-31 Thread Mehdi Dadkhah
Hi, I hope you are doing well! I used NRC lexicon and did sentiment analysis on my data. the result is: sentiment count anger 574 anticipation 1400 disgust 236 fear 978 joy 729 sadness578 surprise 405 tru

[R] question about redfit from dplR

2019-07-07 Thread Mark Hall
Hi All, I've been trying to use the redfit function in dplR on an unevenly spaced time series of oxygen isotope values and keep running into the following error messages.  x is a series of oxygen isotope values (all negative numbers)y is a series of calibrated or estimated radiocarbon dates rang

[R] Question Mac OS X compiled binaries for WGCNA f ro R 3.60

2019-05-21 Thread Ricardo Martinez Zamudio
Hello, I was wondering if there are any updates regarding the new release of WGCNA for R 3.60. I am trying to update my R studio to follow up with some analyses. Thanks a lot for your help, Ricardo __ R-help@r-project.org mailing list -- To UNSUBSCRIB

Re: [R] Question concerning Loading large Data Sets

2019-05-07 Thread Eric Berger
I don't think I understand your question. What if you enter class(anno) Does that give anything? On Mon, May 6, 2019 at 2:29 AM David Winsemius wrote: > I wouldn’t have expected an message, but it does raise the question: why > are you making two different copies of the same text file if you

Re: [R] Question concerning Loading large Data Sets

2019-05-05 Thread David Winsemius
I wouldn’t have expected an message, but it does raise the question: why are you making two different copies of the same text file if you are concerned about size issues? — David Sent from my iPhone > On May 5, 2019, at 5:14 PM, Spencer Brackett > wrote: > > Also, > > In case there is any

Re: [R] Question concerning Loading large Data Sets

2019-05-05 Thread Spencer Brackett
Also, In case there is any confusion... "~/Vakul's GBM code" was set up in the working directory (via setwd) as the folder in which the file 'mapper.txt' is contained... thereby making the "~/Vakul's GBM code/mapper.txt" as shown. Should I perhaps reset my working directory to the file I'm trying

[R] Question concerning Loading large Data Sets

2019-05-05 Thread Spencer Brackett
Good evening, I am attempting to reproduce the following lines of code... library(data.table) anno = as.data.frame(fread(file = "file name", sep ="\t", header = T)) The following is my attempt... > library(data.table) > mapper <- read.delim("~/Vakul's GBM code/mapper.txt") > View(mapper) ##

Re: [R] Question about addressing a data frame

2019-04-25 Thread Nitu, Laurentiu
AM To: Nitu, Laurentiu Cc: r-help@r-project.org Subject: Re: [R] Question about addressing a data frame is.na<http://is.na>(DF) is a matrix for a data.frame DF. The semantics of '[" are different for matrices and data.frame and that can cause confusion > DF <- data.frame(X=

Re: [R] Question about addressing a data frame

2019-04-25 Thread William Dunlap via R-help
is.na(DF) is a matrix for a data.frame DF. The semantics of '[" are different for matrices and data.frame and that can cause confusion > DF <- data.frame(X=c(101,NA,NA), Y=c("one","two",NA), row.names=c("i","ii","iii")) > is.na(DF) # returns a matrix when given a data.frame X Y i FA

[R] Question about addressing a data frame

2019-04-25 Thread Nitu, Laurentiu
Hello, I have this data frame [algae] in the package DMwR. I thought I understand how to refer an element but I cannot explain... is.na(algae) is giving us the a logical vector with TRUE being the na's. which(is.na(algae)) gives the positions on the elements in the data frame where is.na retur

[R] Question about behavior of sample.kind in set.seed (R 3.6)

2019-04-11 Thread Elizabeth Purdom
Hello, I am trying to update a package for the upcoming release of R, and my unit tests are affected by the change in the sample. I understand that to reproduce the old sampling, I need to set sample.kind=“Rounding” in RNGkind or set.seed. But I am confused by the behavior of the sample.kind ar

Re: [R] Question regarding the dcast function

2019-03-21 Thread PIKAL Petr
shape2) should be enough to make function dcast available. Maybe you could spent some time reading R-intro docs. Cheers Petr > -Original Message- > From: R-help On Behalf Of Marie-joe Kfoury > Sent: Thursday, March 21, 2019 9:28 AM > To: r-help@r-project.org > Subject: [

Re: [R] Question regarding the dcast function

2019-03-21 Thread Sarah Goslee
Hi, dcast() is a function, not a package, so R can't find it in the package archive. You need to install the package that contains it. Probably you want reshape2 install.packages("reshape2") Sarah On Thu, Mar 21, 2019 at 9:54 AM Marie-joe Kfoury wrote: > > Hi, > > > I am having a problem with

[R] Question regarding the dcast function

2019-03-21 Thread Marie-joe Kfoury
Hi, I am having a problem with installing the dcast function in R 3.5.3 Here is the message that I am getting when trying to install it: > install.packages("dcast") Installing package into �C:/Users/marie/Documents/R/win-library/3.5� (as �lib� is unspecified) Warning message: package �dcast� is

Re: [R] Question about bindata

2019-02-17 Thread إيمان إسماعيل محمد
Thanks a lot Jeff I sent to authors and I hope can find these function or even alternatives On Sun, 17 Feb 2019 at 17:11, Jeff Newmiller wrote: > I would guess in an archived version of the package [1], though they may > have been moved to another package. Such an old package probably will not

Re: [R] Question about bindata

2019-02-17 Thread Jeff Newmiller
I would guess in an archived version of the package [1], though they may have been moved to another package. Such an old package probably will not work on a modern version of R... you can extract the functions and see if they still run. Note that those functions may have theoretical issues or m

[R] Question about bindata

2019-02-17 Thread إيمان إسماعيل محمد
Hi all, I am wondering that I can't find the following functions: - higher.cor - input.cor - pairprob - pdef in bindata lib as mentioned in the following paper: http://epub.wu.ac.at/486/1/document.pdf How can I reach these functions?? Thanks [[alternative HTML version delet

Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread إيمان إسماعيل محمد
even I tried to use another library mipfp to generate multivariate Bernoulli *using the following:* > p.joint <- ObtainMultBinaryDist(corr = corr_mat[1:10,1:10], marg.probs = probs[1:10]) *it Shows:* Problematic pairs: row col [1,] 10 9 [2,] 9 10 Warning messages: 1: In Corr2PairProbs(co

Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread إيمان إسماعيل محمد
*Here Sample of Code for 10 variables:* > probs_10 = probs[1:10] > probs_10 [1] 9.795272e-01 9.331778e-01 6.764349e-01 9.884067e-02 9.52e-05 3.499417e-03 2.380556e-05 9.826457e-01 9.628633e-01 8.874949e-01 > corr_mat_10 = corr_mat[1:10,1:10] > corr_mat_10 [,1] [,2]

Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread Eric Berger
Hi Eman, It helps if you create a small example that reproduces the problem and then post the code with your question. This will help people determine what is causing the problem. Best, Eric ‪On Mon, Feb 11, 2019 at 11:52 AM ‫إيمان إسماعيل محمد‬‎ < emanismail...@gmail.com> wrote:‬ > I need to s

[R] Question about bindata lib in high dimensions

2019-02-11 Thread إيمان إسماعيل محمد
I need to simulate data for 2000 binary variables given a vector of marginal probabilities and a correlation matrix. I used bindata library, but it give me Not all probabilities are between 0 and 1. Error in Element ( i , j ): Admissible values are in [.]. Error in commonprob2sigma(commonprob

Re: [R] Question

2019-01-08 Thread Jeff Newmiller
Er, just keep it simple, Marc... give one option: library(lattice) If you _ever_ use require() without acting upon the return value then you are setting yourself or someone else up for confusing missing objects errors someday for no good reason. This _isn't_ just personal preference... by choo

Re: [R] Question

2019-01-08 Thread Rich Shepard
On Tue, 8 Jan 2019, Bert Gunter wrote: I think it's ?install.packages Bert, Of course it is. My apologies to the original poster. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] Question

2019-01-08 Thread Rich Shepard
On Tue, 8 Jan 2019, Marc Schwartz wrote: lattice is a "recommended" package, which means that it is installed by default with any standard R installation. Marc, Thanks for the reminder. Regards, Rich __ R-help@r-project.org mailing list -- To U

Re: [R] Question

2019-01-08 Thread Marc Schwartz via R-help
Guys, lattice is a "recommended" package, which means that it is installed by default with any standard R installation. Thus, all that is required, as Sarah noted in an earlier reply, is either: library(lattice) or require(lattice) depending upon preference. latticeExtra, on the other

Re: [R] Question

2019-01-08 Thread Bert Gunter
I think it's ?install.packages 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 Tue, Jan 8, 2019 at 9:50 AM Rich Shepard wrote: > On Tue, 8 Jan 2019, S. Mahmou

Re: [R] Question

2019-01-08 Thread Rich Shepard
On Tue, 8 Jan 2019, S. Mahmoud Nasrollahi wrote: I have got a problem during working with some package in R and in spite of trying with R help, internet and any other resources I could not succeed. Indeed when I what to install some function like bwplot, boxplot, xyplot I receive this sort of me

Re: [R] Question

2019-01-08 Thread Sarah Goslee
xyplot is not a package, it is a function within the lattice package, which should already be installed. library(lattice) # load the package from the R library ?xyplot # look at the help for the function The others are also functions, not packages. Sarah On Tue, Jan 8, 2019 at 9:15 AM S. Mahmou

[R] Question

2019-01-08 Thread S. Mahmoud Nasrollahi
Dear colleague I have got a problem during working with some package in R and in spite of trying with R help, internet and any other resources I could not succeed. Indeed when I what to install some function like bwplot, boxplot, xyplot I receive this sort of messages: Warning in install.packages

[R] Question about rmgarch package in R

2018-12-01 Thread Daniela Ximena Gualtero Briceño
Good morning, my name is Daniela from Colombia, I am working with rmgarch package, specifically with the cgarchspec function. One argument of this function is the "transformation", which is the type of transformation to apply to the marginal innovations of the GARCH fitted models (transformati

Re: [R] Question Mixed-Design Anova in R

2018-11-23 Thread Lisa van der Burgh
Dear John and Peter, Thank you both for your answers. I am going to try the solutions you gave me! Thanks again, Lisa From: Fox, John Sent: 23 November 2018 16:54:49 To: Lisa van der Burgh Cc: r-help@R-project.org; peter dalgaard Subject: RE: [R] Question

Re: [R] Question Mixed-Design Anova in R

2018-11-23 Thread Fox, John
Dear Lisa, > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of peter > dalgaard > Sent: Friday, November 23, 2018 10:16 AM > To: Lisa van der Burgh <40760...@student.eur.nl> > Cc: r-help@R-project.org > Subject: Re: [R] Quest

<    1   2   3   4   5   6   7   8   9   10   >