Hi Charles.
https://cran.r-project.org/web/packages/rgrs/index.html
https://cran.r-project.org/bin/windows/Rtools/
What operating system are you using?
Hope this helps.
~Caitlin
On Fri, Oct 23, 2020 at 11:41 PM Charles Thuo wrote:
> I have attempted to install the packages Rtools and rgrs
I have attempted to install the packages Rtools and rgrs but the
install.packages command yields a message that the same are not available
for R version 4.0.
How do i get around this as i need the said packages to implement some
credit scoring GLMs using the " rgrs" package.
With Regards,
Char
Dear Charles,
Please, when you have questions about fitdistrplus, contact directly the
authors of the package and not R-help.
When fitting non « standard » distributions with fitdistrplus, you should
define by yourself the density and the cumulative distribution functions, or
load a package wh
Blast it, *I forgot that and I usually load Hmisc as a default.*
On Fri, 23 Oct 2020 at 23:24, Richard M. Heiberger wrote:
> To John and everyone else,
>
> Please add Hmisc::latex to your how-to-make-beautiful-tables-in-r
> document.
> We first included latex() in S in 1995, and it is still a
That latex() function is the best thing since sliced bread, Coca Cola, etc.!
Thanks
On Fri, Oct 23, 2020 at 9:24 PM Richard M. Heiberger wrote:
> To John and everyone else,
>
> Please add Hmisc::latex to your how-to-make-beautiful-tables-in-r
> document.
> We first included latex() in S in 19
To John and everyone else,
Please add Hmisc::latex to your how-to-make-beautiful-tables-in-r document.
We first included latex() in S in 1995, and it is still actively
maintained and improved.
Rich
Here are the first few lines of ?latex
Convert an S object to LaTeX, and Related Utilities
Desc
This comes with no guarantee since i have only tried one or two packages
mentioned but have a look at https://rfortherestofus.com/2019/11/how-to-make-beautiful-tables-in-r/";> R
Tables.
On Fri, 23 Oct 2020 at 20:28, Dennis Fisher wrote:
> R 4.0.2
> OS X
>
> Colleagues
>
> I have the unfortunate
I would go straight to Word using flextable (table layout) and officer
(Word-specific formatting) within an rmarkdown document (e.g. bookdown::
word_document2 to manage overall structure and generate captions). Officer
without rmarkdown may be able to generate true Word captions with bookmarks t
Patrick
Doing this in Excel is certainly an option. But I would like to learn how to
do it in R.
Dennis
Dennis Fisher MD
P < (The "P Less Than" Company)
Phone / Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com
> On Oct 23, 2020, at 6:15 PM, Patrick (Malone Quantitative)
> wrote:
>
Will this need to be done many times? If not, it might be just as easy
to apply conditional formatting to cells after they're already in
Excel.
On Fri, Oct 23, 2020 at 8:28 PM Dennis Fisher wrote:
>
> R 4.0.2
> OS X
>
> Colleagues
>
> I have the unfortunate need to create a large number of tables
R 4.0.2
OS X
Colleagues
I have the unfortunate need to create a large number of tables (destined for a
Word document). I need to color cells depending on the contents, e.g., blue if
the value is < 0.5, red if the value is > 1.5.
If the output went initially to Excel, that would work; outputt
Good to hear you've made such progress. Just a couple of comments:
- You should use points3d() rather than rgl.points(). The latter is a
low level function that may have unpleasant side effects, especially
mixing it with other *3d() functions like persp3d().
- There are several ways to draw a
I can't compete with Gabor's "elegant" solution, but I don't understand why
your original "ugly" approach doesn't work.
g <- function(lambdas, f){
z <- as.character(f)
for(i in seq_along(lambdas))
z[3]<- sub(paste0("lambdas[", i, "]"), lambdas[i], z[3], fixed =
TRUE)
formula(paste
Hello,
First coerce the column birth to class Date, then subset.
data$birth <- as.Date(data$birth)
i <- data$birth > as.Date("1979-01-01")
subdata <- data[i, ]
To write back to Excel, use write.csv or a package able to write Excel
files directly.
Hope this helps,
Rui Barradas
Às 12:23 d
Dear All,
Thanks a lot for the useful help again. I manage to get it done up to a
point where I think I
just need to apply some smoothing/interpolation to get denser points, to
make it nice.
Basically, I started from Duncen's script to visualize and make the
clipping along a plane
at a slice.
Then
Hello,
What about this?
straightline <- function(x, slope, intercept) slope*x + intercept
p <- ggplot(data = trainset, aes(x=x, y=y, color=z)) +
geom_point() +
geom_ribbon(aes(ymin = straightline(x, slope_1, intercept_1 + 1/w[2]),
ymax = straightline(x, slope_1, intercept
Dear R community
There is a new version of the openSTARS package (preparing GIS data for
stream analysis) available on CRAN.
Major updates are:
- catch errors arising in GRASS 7.8 due to changes in v.to.db
- update setup_grass_environment; there is no need any more to initGRASS
before
Plea
Hi all,
I have a dataframe call "data", and have lots of rows. One of them
is data$`birth`
my data has been imported from an excel file in RSTUDIO
I want to obtain in a function all rows (with the names) where
data$`birth` is bigger than 1979/01/01 and extract in a excel file as an
output (a sub
r-help Forum
Has anyone worked with puling ACLED (https://acleddata.com/#/dashboard) via
the ACLED API and R?
Jeff Reichman
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https:
Thanks, Gabor! Very elegant!
> On Oct 23, 2020, at 4:15 PM, Gabor Grothendieck
> wrote:
>
> Recursively walk the formula performing the replacement:
>
> g <- function(e, ...) {
>if (length(e) > 1) {
>if (identical(e[[2]], as.name(names(list(...) {
> e <- eval(e, list(
Recursively walk the formula performing the replacement:
g <- function(e, ...) {
if (length(e) > 1) {
if (identical(e[[2]], as.name(names(list(...) {
e <- eval(e, list(...))
}
if (length(e) > 1) for (i in 1:length(e)) e[[i]] <- Recall(e[[i]], ...)
}
Suppose I have a formula like this:
f <- y ~ qss(x, lambda = lambdas[1]) + qss(z, lambdas[2]) + s
I’d like a function, g(lambdas, f) that would take g(c(2,3), f) and produce
the new
formula:
y ~ qss(x, lambda = 2) + qss(z, 3) + s
For only two qss terms I have been using
Thank you, but this split the area into two and distorts the shape of
the plot. (compared to
```
p + geom_abline(slope = slope_1, intercept = intercept_1 - 1/w[2],
linetype = "dashed", col = "royalblue") +
geom_abline(slope = slope_1, intercept = intercept_1 + 1/w[2],
Hi All,
WriteXLS version 6.0.0 has been released and is available on CRAN.
The key changes are:
1. More robust handling of embedded newline ('\n') and carriage return ('\r')
characters, double quotes, and two character sequences of a backslash character
('\') followed by another character, wit
Hi
What about something like
p+geom_ribbon(aes(ymin = slope_1*x + intercept_1 - 1/w[2],
ymax = slope_1*x + intercept_1 + 1/w[2], fill = "grey70", alpha=0.1))
Cheers
Petr
> -Original Message-
> From: Luigi Marongiu
> Sent: Friday, October 23, 2020 11:11 AM
> To: PIKAL Petr
> Cc: r-help
also from this site: https://plotly.com/ggplot2/geom_ribbon/
I get the answer is geom_ribbon but I am still missing something
```
#! plot
p = ggplot(data = trainset, aes(x=x, y=y, color=z)) +
geom_point() + scale_color_manual(values = c("red", "blue"))
# show support vectors
df_sv = trainset[svm_
I tried from this website
https://community.rstudio.com/t/fill-area-between-lines-using-ggplot-in-r/35355/2
it looked promising but did not work for me:
```
#! plot
p = ggplot(data = trainset, aes(x=x, y=y, color=z)) +
geom_point() + scale_color_manual(values = c("red", "blue"))
# show support ve
I don't know if I can find a case similar to my need.
I tried with:
```
p = p + geom_abline(slope = slope_1, intercept = intercept_1, col =
"royalblue4")
p = p + geom_line() +
geom_hline(yintercept = 5) +
theme_classic() +
geom_ribbon(aes(ymin=intercept_1 - 1/w[2],ymax=intercept_1 +
1/w[2]),
Hi
Did you try google? I got several answers using your question
e.g.
https://stackoverflow.com/questions/54687321/fill-area-between-lines-using-g
gplot-in-r
Cheers
Petr
> -Original Message-
> From: R-help On Behalf Of Luigi Marongiu
> Sent: Friday, October 23, 2020 9:59 AM
> To: r-hel
Hello,
I am running SVM and showing the results with ggplot2. The results
include the decision boundaries, which are two dashed lines parallel
to a solid line. I would like to remove the dashed lines and use a
shaded area instead. How can I do that?
Here is the code I wrote..
```
library(e1071)
lib
30 matches
Mail list logo