Re: [R] Row exclude

2022-01-29 Thread David Carlson via R-help
It is possible that there would be errors on the same row for different columns. This does not happen in your example. If row 4 was "John6, 3BC, 175X" then row 4 would be included 3 times, but we only need to remove it once. Removing the duplicates is not necessary since R would not get confused,

Re: [R] Row exclude

2022-01-29 Thread Val
Hi all, Thank you so much for the useful help and many options that you gave me. Sorry for the delay response, I was away for a while On Sat, Jan 29, 2022 at 3:35 PM Avi Gross via R-help wrote: > Rui has indeed improved my first attempt in several ways so my comments > are now focused on

Re: [R] progress of LDA algorithm...

2022-01-29 Thread Bert Gunter
I presume this is in some specialized package that you have not told us about -- topicmodels maybe? It is therefore off topic here. In any case, this is the sort of question for which you should contact the package maintainer (?maintainer). As your question may also intersect with high

Re: [R] Row exclude

2022-01-29 Thread Bert Gunter
Rui: You made my day! -- or at least considerably improved it. Your solution was clever and clear. IMHO, it is also a terrific example of why one should expend the effort to really learn the core features of the language before plunging into packages with alternative paradigms. (But lots of wise

Re: [R] GGPLOT: Superscript text in body of plot

2022-01-29 Thread Rui Barradas
Hello, And with annotate, the warning goes away. ggplot(jjdata, aes(x=x, y=y))+ geom_point(size=2,shape=1)+ annotate( "text", x=3, y=7.5, label="R^{2} == 0.23", parse = TRUE ) Hope this helps, Rui Barradas Às 20:04 de 29/01/2022, Rui Barradas escreveu: Hello, Here

Re: [R] GGPLOT: Superscript text in body of plot

2022-01-29 Thread Rui Barradas
Hello, Here is a way. ggplot(jjdata, aes(x=x, y=y))+ geom_point(size=2,shape=1)+ geom_text(x=3, y=7.5, label=expression(paste(R^2 == '0.23'))) Hope this helps, Rui Barradas Às 19:32 de 29/01/2022, Sorkin, John escreveu: Can you help me create text that has a superscript 2? I am

Re: [R] Row exclude

2022-01-29 Thread Avi Gross via R-help
[NOTE: This is a re-send. I see it mangled multiple lines of code in sequence and so I shifted my temporary email sender to not use any form of rich text. Below would be the message I intended to send including code looking normal. As many other messages I create benefit from HTML, I may have

Re: [R] Row exclude

2022-01-29 Thread Rui Barradas
Hello, Thanks for the comments, a few others inline. Às 18:04 de 29/01/2022, Avi Gross escreveu: There are many creative ways to solve problems and some may get you in trouble if you present them in class while even in some work situations, they may be hard for most to understand, let alone

Re: [R] Row exclude

2022-01-29 Thread Avi Gross via R-help
There are many creative ways to solve problems and some may get you in trouble if you present them in class while even in some work situations, they may be hard for most to understand, let alone maintain and make changes. This group is amorphous enough that we have people who want "help" who are

Re: [R] Remove

2022-01-29 Thread Rui Barradas
Hello, This question is repeated [1]. [1] https://stat.ethz.ch/pipermail/r-help/2022-January/473663.html Rui Barradas Às 02:20 de 29/01/2022, Val escreveu: Hi All, I want remove row(s) that contains a character string in an integer column or a digit in a character column Sample data dat1