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] [R ] Writing loop to estimate ARCH test for a multiple columns of a data frame?

2020-05-08 Thread Jim Lemon
Hi Subhamitra, I have washed the dishes and had a night's sleep, so I can now deal with your text munging problem. First, I'll reiterate the solution I sent: sp_8_5<-read.table("sp_8_5.tab",sep="\t", header=TRUE,stringsAsFactors=FALSE) library(tseries) library(FinTS) # create a function that

Re: [R] Bug in function arguments autocomplete and ellipsis?

2020-05-08 Thread Roman Olson
Dear All, Thanks for clarifying this. Now I know that this is expected behavior, and will try to place … before the rest of the arguments. Stay home and stay safe! -Roman > 2020. 5. 9. 오전 1:24, Bert Gunter 작성: > > The R > Language Definition [[alternative HTML version deleted]]

Re: [R] Need a suggestion on a package to make a figure

2020-05-08 Thread John Kane
What are you doing? http://adv-r.had.co.nz/Reproducibility.html http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example On Fri, 8 May 2020 at 10:50, aiguo li via R-help wrote: > Hello all, > I need to make a table with a value imaged by greater than certain

Re: [R] Warning in install.packages : converting NULL pointer to R NULL

2020-05-08 Thread Rolf Turner
Hi Rui. Doesn't happen to me under Ubuntu 18.04: install.packages('cowplot',lib=.Rlib) trying URL 'https://cloud.r-project.org/src/contrib /cowplot_1.0.0.tar.gz' Content type 'application/x-gzip' length 1275585 bytes (1.2 MB) == downloaded 1.2

Re: [R] Rtools virus

2020-05-08 Thread Gavan McGrath
Thanks Jeff, It was downloaded from https://cran.r-project.org/bin/windows/Rtools/ Kind Regards, Gavan Dr Gavan McGrath, PhD, B.E. Research Scientist Biodiversity and Conservation Science Department of Biodiversity, Conservation and Attractions Street Address: 17 Dick Perry Avenue, Kensington,

Re: [R] Function Hints in Mac Dark Mode

2020-05-08 Thread Marc Schwartz via R-help
> On May 8, 2020, at 11:02 AM, Jeff Newmiller wrote: > > You seem to be confusing R and RStudio... so yeah, wrong mailing list. I > don't know exactly where you should post either. Perhaps the GitHub issues > page for RStudio? > > On May 6, 2020 12:54:43 PM PDT, Andrew Swift via R-help >

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

Re: [R] Bug in function arguments autocomplete and ellipsis?

2020-05-08 Thread Bert Gunter
It would help if you consulted the docs, in this case, **The R Language Definition** and, in particular, 4.3.2 on argument matching. I won't repeat what it is there, but I believe it will suffice to dispel your confusion. Bert Gunter "The trouble with having an open mind is that people keep

Re: [R] Bug in function arguments autocomplete and ellipsis?

2020-05-08 Thread Duncan Murdoch
On 07/05/2020 3:46 a.m., Roman Olson wrote: Dear All, I am wondering whether function arguments autocomplete causes a bug when additional ellipsis arguments are used. Example: a = function(robot) { cat(robot, "\n") } a(r=5) prints 5, meaning that r is autocompleted to “robot”. Not sure

Re: [R] Rtools virus

2020-05-08 Thread Ivan Krylov
On Fri, 08 May 2020 07:58:34 -0700 Jeff Newmiller wrote: >no one here can follow up on your report because you did not say >precisely which website you downloaded it from To be fair, the SHA-256 sum in the VirusTotal report matches the one of rtools40-x86_64.exe: wget -qO- \

Re: [R] Error in summary.warnings?

2020-05-08 Thread Martin Maechler
> Allison Meisner > on Thu, 7 May 2020 19:32:36 + writes: > I believe there is an error in the summary.warnings function (typically called via 'summary(warnings())'). Below is a minimal working example: > # > testfunction <- function(x){ > if(x > 30){

Re: [R] Warning in install.packages : converting NULL pointer to R NULL

2020-05-08 Thread Rui Barradas
Hello, My main error was that this is the first time it happens and I didn't do any real thinking, I just assumed that it was an upgrade both R and Ubuntu issue. Thanks, the reminder of the differences between R and RStudio was very helpful. Rui Barradas Às 15:30 de 08/05/20, Martin

Re: [R] Function Hints in Mac Dark Mode

2020-05-08 Thread Andrew Swift via R-help
Marc, Yes, that is exactly the issue. I’ll post to r-sig-mac. On May 8, 2020, at 10:11 AM, Marc Schwartz mailto:marc_schwa...@me.com>> wrote: On May 8, 2020, at 11:02 AM, Jeff Newmiller mailto:jdnew...@dcn.davis.ca.us>> wrote: You seem to be confusing R and RStudio... so yeah, wrong

Re: [R] Function Hints in Mac Dark Mode

2020-05-08 Thread Jeff Newmiller
You seem to be confusing R and RStudio... so yeah, wrong mailing list. I don't know exactly where you should post either. Perhaps the GitHub issues page for RStudio? On May 6, 2020 12:54:43 PM PDT, Andrew Swift via R-help wrote: >Sorry, wasn’t sure exactly where to post this but I noticed

Re: [R] Rtools virus

2020-05-08 Thread Jeff Newmiller
Sorry to hear that. It is most likely a false positive (antivirus software has little incentive to minimise false positives), but no one here can follow up on your report because you did not say precisely which website you downloaded it from. On May 5, 2020 8:50:12 PM PDT, Gavan McGrath

[R] Obtain One Row From ggcorr() Matrix

2020-05-08 Thread Sam Rizzuto
Hi all, I am looking to obtain one column/row of a correlation matrix from my data using the function ggcorr() from library(GGally). As an example, using the mtcars dataset, I have the following code that can reproduce one row/column: df <- cor(x = mtcars$mpg, y = mtcars[2:11], use =

[R] Rtools virus

2020-05-08 Thread Gavan McGrath
Hi, My IT department instructed me to uninstall Windows 64-bit: rtools40-x86_64.exe as it contained a virus which they identified at https://www.virustotal.com/gui/file/5c10d60e73dd0186e8f886ef0b9388bb7dbdfdc17366c14c16183edb08fdb58a/detection Kind Regards, Dr Gavan McGrath, PhD, B.E.

[R] Function Hints in Mac Dark Mode

2020-05-08 Thread Andrew Swift via R-help
Sorry, wasn’t sure exactly where to post this but I noticed that with R 4.0.0 when running a Mac in Dark Mode that the Function Hints at the bottom of the Console and Editor windows become invisible. Thanks. __ R-help@r-project.org mailing list --

[R] [R-pkgs] simplePHENOTYPES: SIMulation of Pleiotropic, Linked and Epistatic PHENOTYPES

2020-05-08 Thread Bonfim Fernandes, Samuel
Hi All, I hope this message finds you well. I have developed the simplePHENOTYPES package to simulate single and multiple (correlated) traits in a wide range of scenarios, including additive, dominance, and epistatic (AxA) models. The newest version, simplePHENOTYPES v1.2.4, which has just been

[R] Error in summary.warnings?

2020-05-08 Thread Allison Meisner
I believe there is an error in the summary.warnings function (typically called via 'summary(warnings())'). Below is a minimal working example: # testfunction <- function(x){ if(x > 30){ warning("A big problem (should be 20 of these)") }else{ warning("Bigger problem (should be 30 of

[R] Why doesn't rpart split further

2020-05-08 Thread Kevin Li
Hi, I am using the rpart package to construct regression trees and for the purposes of simulation, would like to the tree completely split: each leaf should contain exactly one observation. However, I have observed that even by setting minsplit = 2, i.e., ``` control <- rpart.control(

[R] Need a suggestion on a package to make a figure

2020-05-08 Thread aiguo li via R-help
Hello all, I need to make a table with a value imaged by greater than certain value as attached.  Could you give me a suggestions on which R package will be good for this type of table? Thanks and stay safe! Aiguo sample_table.pdf Description: Adobe PDF document

[R] Bug in function arguments autocomplete and ellipsis?

2020-05-08 Thread Roman Olson
Dear All, I am wondering whether function arguments autocomplete causes a bug when additional ellipsis arguments are used. Example: a = function(robot) { cat(robot, "\n") } a(r=5) prints 5, meaning that r is autocompleted to “robot”. Not sure if this is normal behavior, but this does not

Re: [R] Warning in install.packages : converting NULL pointer to R NULL

2020-05-08 Thread Martin Maechler
> Rui Barradas > on Fri, 8 May 2020 14:46:45 +0100 writes: > Hello, You are right, > Rscript -e 'install.packages("car")' > doesn't give that message, I will ask RStudio support. > And sorry to spam the list with something I should have > checked, I'm so used to

Re: [R] Warning in install.packages : converting NULL pointer to R NULL

2020-05-08 Thread Rui Barradas
Hello, You are right, Rscript -e 'install.packages("car")' doesn't give that message, I will ask RStudio support. And sorry to spam the list with something I should have checked, I'm so used to working in GUI 's that I forgot about the command line. Thanks, Rui Barradas Às 13:56 de

Re: [R] [R ] Writing loop to estimate ARCH test for a multiple columns of a data frame?

2020-05-08 Thread Subhamitra Patra
Dear Sir, Thank you very much for your wonderful suggestion for my problem. Your suggested code has excellently worked and successfully extracted the statistics and p-value in another R object. Concerning your last suggestion, I attempted to separate the strings with TAB character in the "spout"

Re: [R] Warning in install.packages : converting NULL pointer to R NULL

2020-05-08 Thread Duncan Murdoch
That looks like an RStudio message. Do you get it if you run install.packages() in command line R? Duncan Murdoch On 08/05/2020 8:07 a.m., Rui Barradas wrote: Hello, R 4.0.0 on Ubuntu 20.04, sessionInfo() below. Since I updated to R 4.0 that every time I try to install a package with

[R] Adding overlap legend to a histogram: FIXED!!!!!!!!!!!!

2020-05-08 Thread Ogbos Okike
Dear Jim, This is too great!!! I nearly got lost as I struggle to compare my data with the graph. I have to use a coincident algorithm to compare the two datasets with the histogram before I begin to understand what is going on. Thank you for giving me more than I requested/expected!!! This is

[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

[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.

[R] Warning in install.packages : converting NULL pointer to R NULL

2020-05-08 Thread Rui Barradas
Hello, R 4.0.0 on Ubuntu 20.04, sessionInfo() below. Since I updated to R 4.0 that every time I try to install a package with install.packages() the warning in the title shows up at the end, be the installation successful or not. If it is successful, the package loads with no problems, so

Re: [R] [R ] Writing loop to estimate ARCH test for a multiple columns of a data frame?

2020-05-08 Thread Jim Lemon
1) In general, *apply functions return a list with the number of elements equal to the number of columns or other elements of the input data. You can assign that list as I have to "spout" in the first example. 2) spout<-list() assigns the name "spout" to an empty list. As we are processing

Re: [R] Adding overlap legend to a histogram

2020-05-08 Thread Jim Lemon
Hi Ogbos, While this solution is not entirely correct, I think it is a start. First I took your data files and made them "sourceable" by adding "FD[1|2]<-" at the top and renaming them "FD1.R" and "FD2.R". Running the following code produces something that is at least close to what you want. The

Re: [R] [R ] Writing loop to estimate ARCH test for a multiple columns of a data frame?

2020-05-08 Thread Subhamitra Patra
Dear Sir, Thank you very much for such an excellent solution to my problem. I was trying sapply function since last days, but was really unable to write properly. Now, I understood my mistake in using sapply function in the code. Therefore, I have two queries regarding this which I want to

Re: [R] [R ] Writing loop to estimate ARCH test for a multiple columns of a data frame?

2020-05-08 Thread Jim Lemon
Hi Subhamitra, This isn't too hard: # read in the sample data that was # saved in the file "sp_8_5.tab" sp_8_5<-read.table("sp_8_5.tab",sep="\t", header=TRUE,stringsAsFactors=FALSE) library(tseries) library(FinTS) # using "sapply", run the test on each column

Re: [R] [R ] Writing loop to estimate ARCH test for a multiple columns of a data frame?

2020-05-08 Thread Subhamitra Patra
Dear Sir, Herewith I am pasting a part of my sample data having 12 columns below, and want to calculate ARCH test for the 12 columns by using a loop. Please help me in this regard. Thank you very much for your help. Year_Month A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 94-Jan 0.051197 7.05E-05

Re: [R] Error: Cannot use `+.gg()` with a single argument.

2020-05-08 Thread Rui Barradas
Hello, Richard's answer solves the problem, I'm writing about details in the OP's post. Ana, your code example is missing some library() calls: library(ggplot2) library(ggrepel) library(ggthemes) library(dplyr) # and where to find the data set data(murders, package = "dslabs") As for the

Re: [R] Adding overlap legend to a histogram

2020-05-08 Thread Ogbos Okike
Dear Jim, Thank you for looking into this. Sorry, there was actually no overlap in the small part of the data I reported. My error of omission. So when I run my full data with the adjustment you made, I got some thing that was far from what I was expecting. That tell me that I need to send the