Re: [R] Fitting Mixed Distributions in the fitdistrplus package

2020-10-21 Thread aBBy Spurdle , ⍺-Male
dmixgampar <- function (x, param1, param2, ...) { #compute density at x } On Wed, Oct 21, 2020 at 8:03 PM Charles Thuo wrote: > > Dear Sirs, > > The below listed code fits a gamma and a pareto distribution to a data set > danishuni. However the distributions are not appropriate

Re: [R] how do I remove entries in data frame from a vector

2020-10-21 Thread Ana Marija
Makes sense, thank you! On Wed, 21 Oct 2020 at 17:46, Rolf Turner wrote: > > On Wed, 21 Oct 2020 16:15:22 -0500 > Ana Marija wrote: > > > Hello, > > > > I have a data frame with one column: > > > > > remove > > > > V1 > > > > 1 ABAFT_g_4RWG569_BI_SNP_A10_35096 >

Re: [R] how do I remove entries in data frame from a vector

2020-10-21 Thread Rolf Turner
On Wed, 21 Oct 2020 16:15:22 -0500 Ana Marija wrote: > Hello, > > I have a data frame with one column: > > > remove > > V1 > > 1 ABAFT_g_4RWG569_BI_SNP_A10_35096 > 2 ABAFT_g_4RWG569_BI_SNP_B12_35130 > 3 ABAFT_g_4RWG569_BI_SNP_E09_35088 > 4 ABAFT_g_4RWG569_BI_

Re: [R] how do I remove entries in data frame from a vector

2020-10-21 Thread Ana Marija
Thank you so much! On Wed, Oct 21, 2020 at 4:47 PM Rui Barradas wrote: > > Hello, > > To remove the file extension it's much easier to use base R > > > filename <- tools::file_path_sans_ext(basename(celFiles)) > > > Hope this helps, > > Rui Barradas > > Às 22:41 de 21/10/20, Rui Barradas escreveu

Re: [R] how do I remove entries in data frame from a vector

2020-10-21 Thread Rui Barradas
Hello, To remove the file extension it's much easier to use base R filename <- tools::file_path_sans_ext(basename(celFiles)) Hope this helps, Rui Barradas Às 22:41 de 21/10/20, Rui Barradas escreveu: Hello, This is probably because basename keeps the file extension, try instead filename

Re: [R] how do I remove entries in data frame from a vector

2020-10-21 Thread Rui Barradas
Hello, This is probably because basename keeps the file extension, try instead filename <- sub("(^[^\\.]*)\\..+$", "\\1", basename(celFiles)) celFiles[!filename %in% as.character(remove$V1)] Hope this helps, Rui Barradas Às 22:15 de 21/10/20, Ana Marija escreveu: Hello, I have a data fram

[R] how do I remove entries in data frame from a vector

2020-10-21 Thread Ana Marija
Hello, I have a data frame with one column: > remove V1 1 ABAFT_g_4RWG569_BI_SNP_A10_35096 2 ABAFT_g_4RWG569_BI_SNP_B12_35130 3 ABAFT_g_4RWG569_BI_SNP_E09_35088 4 ABAFT_g_4RWG569_BI_SNP_E12_35136 5 ABAFT_g_4RWG569_BI_SNP_F11_35122 6 ABAFT_g_4RWG569_BI_SNP_F12_351

Re: [R] AES spesification

2020-10-21 Thread Rui Barradas
Hello, You can subset the data argument. And if you are plotting one year only, there's no point in color = year. ggplot(subset(mpg, year == 1999), aes(displ, hwy)) + geom_point() If you are loading package dplyr, you can filter directly to ggplot: library(dplyr) mpg %>% filter(year ==

Re: [R] AES spesification

2020-10-21 Thread Dr. Robin Haunschild
Hi, what about this one? ggplot(data=mpg[mpg$year==1999,], aes(x=displ, y=hwy))+ geom_point() Best, Robin On 10/21/20 3:37 PM, Engin Yılmaz wrote: > Dear > > I use dataset , as called "mpg" > > This is code > > ggplot(data=mpg)+ geom_point(mapping = aes(x=displ, y=hwy, colour=year)) > > Bu

[R] AES spesification

2020-10-21 Thread Engin Yılmaz
Dear I use dataset , as called "mpg" This is code ggplot(data=mpg)+ geom_point(mapping = aes(x=displ, y=hwy, colour=year)) But I would like to see only "year of 1999" in this relationship between x and y variables How could I change the code in this direction? I found the following code libr

[R] Fitting Mixed Distributions in the fitdistrplus package

2020-10-21 Thread Charles Thuo
Dear Sirs, The below listed code fits a gamma and a pareto distribution to a data set danishuni. However the distributions are not appropriate to fit both tails of the data set hence a mixed distribution is required which has ben defined as "mixgampar" as shown below. library(fitdistrplus) x<-