> Ted Harding
> on Thu, 31 May 2018 07:10:32 +0100 writes:
> Well pointed out, Jim!
> It is infortunate that the documentation for options(digits=...)
> does not mention that these are *significant digits*
> and not *decimal places* (which is what Joshua seems to wan
Well pointed out, Jim!
It is infortunate that the documentation for options(digits=...)
does not mention that these are *significant digits* and not
*decimal places* (which is what Joshua seems to want):
"‘digits’: controls the number of digits to print when
printing numeric values."
On the fa
On Thu, May 31, 2018 at 03:30:42PM +1000, Jim Lemon wrote:
> Because there are no values in column ddd less than 1.
Whoa!
Thank you for pointing that out.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman
Hi Joshua,
Because there are no values in column ddd less than 1.
itemInfo[3,"ddd"]<-0.3645372
itemInfo
aaa bbb ccc dddeee
skill 1.396 6.225 0.517 5.775 2.497
predict 1.326 5.230 0.462 5.116 -2.673
waiting 1.117 4.948NA 0.365 NA
complex 1.237 4.170 0.220 4.
R version 3.5.0 (2018-04-23) -- "Joy in Playing"
Platform: x86_64-pc-linux-gnu (64-bit)
options(digits=3)
itemInfo <- structure(list("aaa" = c(1.39633732316667, 1.32598263816667,
1.1165832407, 1.23651072616667, 1.0536867998, 1.0310073738,
0.9630728395, 0.7483865045, 0.620086646166
The printed output is an issue (I've emailed the maintainer about it) however,
I think I figured it out.
It seems that the function is not vectorized, making me need to do the
following:
mutate(SG=map2(T,p,function(x,y) DTp(x,y))
This was able to get the correct results. Like usual, the erro
Hi Shawn,
I don't think it has anything to do with the tidyverse. If you keep
simplifying your example you'll get all the way down to
> DTp(T=c(279,294),p=c(0.46,0.46))
[1] 1000.12283
--Ista
On Wed, May 30, 2018 at 2:14 PM, Shawn Way wrote:
> I'm trying to use the IAPWS95 package with the tidy
I'm trying to use the IAPWS95 package with the tidyverse packages. For some
reason, the function is not outputting the correct rho.
A minimal example with results is below. I've also included the definition of
the DTp function from the IAPWS95 library.
li
Hi Folks,
I have just started using dplyr and could use some help getting unstuck. It
could well be that dplyr is not the package to be using, but let me just pose
the question and seek your advice.
Here is my basic data frame.
head(h)
subject ageGrp ear hearingGrp sex freq L2 Ldp
Dear Jim,
Thank you so much. The code works perfectly and is very fast for the large
amounts of data that I am processing!
Thanks again!
Sincerely,
Shouro
On Tue, May 29, 2018 at 11:50 PM, jim holtman wrote:
> Forgot the year if you also want to summarise by that.
>
>
> > x <- structure(list
> Sarah Goslee
> on Wed, 30 May 2018 05:03:56 -0400 writes:
> Hi,
> You're mixing base plot and ggplot2 grid graphics, which as you've
> discovered doesn't work.
> Here's av strategy that does:
> https://cran.r-project.org/web/packages/egg/vignettes/Ecosystem.html
Hi,
You're mixing base plot and ggplot2 grid graphics, which as you've
discovered doesn't work.
Here's av strategy that does:
https://cran.r-project.org/web/packages/egg/vignettes/Ecosystem.html
This vignette has a good overview, well as info specific to that package.
Sarah
On Wed, May 30, 20
Hi
You combine basic graphic (par) and grid graphic (ggplot), which is possible
but not strightforward.
You could check it e.g.
par(mfrow=c(1,2))
plot(1,1)
plot(1,2)
library(ggplot2)
d <- ggplot(diamonds, aes(carat, price))
d + geom_point(alpha = 1/10)
d + geom_point(alpha = 1/20)
In grid graphi
You might find the patchwork library helpful (plot_layout function)
https://github.com/thomasp85/patchwork
I'm not sure if it's on CRAN but you can devtools::github_install it.
Cheers,
Alex
On Wed, May 30, 2018 at 6:42 PM, greg holly wrote:
> Hi all;
>
> I need to put 12 different plot2 into
Hi all;
I need to put 12 different plot2 into the same matrix. So my array for the
matrix will be par(mfrow=c(3,4)). I am running ggplot2 to produce my 12
plots. For some reason, par(mfrow=c(3,4)) did not turn out 3*4 matrix.
my basic R codes for each plot is
par(mfrow=c(3,4))
library(ggplot2)
p
15 matches
Mail list logo