[R] Partial differential equation

2017-12-18 Thread Timothy Axberg
Hello, I am having troubles with heat conduction problem. Below is the given information. Should I move forward with this problem like any other 1-D PDE? ¶T/¶t = a* (¶^2T/¶x^2) I.C. For t = 0 and 0 £ x £ 10, T = 0 °C B.C. For x = 0 cm and all t , T = 100°C For x = 10 cm and all t , T = 0 °C

Re: [R] chi-square distribution table

2017-12-18 Thread Michael Dewey
You might get better answers if you show us what you attempted and why it did not do what you had wished for. On 18/12/2017 14:41, HATMZAHARNA via R-help wrote: Please could you tell me how to make code to make chi-square distribution table? Please help __

Re: [R] Finding center of mass in a hydrologic time series

2017-12-18 Thread Bert Gunter
... and for the record: The apply() family of functions -- here sapply() -- are *not* vectorized. This means that one should not expect them to be necessarily more efficient than expicit for() loops. Their advantage for many is clarity of code. Cheers, Bert Bert Gunter "The trouble with havin

Re: [R] Finding center of mass in a hydrologic time series

2017-12-18 Thread Eric Berger
Hi Eric, the following works for me. HTH, Eric library(EGRET) StartDate <- "1990-10-01" EndDate <- "2017-09-30" siteNumber <- "1031" QParameterCd <- "00060" Daily <- readNWISDaily(siteNumber, QParameterCd, StartDate, EndDate) # Define 'center of mass' function com <- function(x) { match(

[R] chi-square distribution table

2017-12-18 Thread HATMZAHARNA via R-help
Please could you tell me how to make code to make chi-square distribution table? Please help __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.

[R] chi-square distribution table

2017-12-18 Thread HATMZAHARNA via R-help
Please could you tell me how to make code to outpot chi-square distribution table? Please help __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://ww

[R] chi-square distribution table

2017-12-18 Thread HATMZAHARNA via R-help
Please could you tell me how to make code to outpot chi-square distribution table? Please help __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://ww

Re: [R] Finding center of mass in a hydrologic time series

2017-12-18 Thread Morway, Eric
Eric B's response provided just the kind of quick & simple solution I was hoping for (appears as the function com below). However, I once again failed to take advantage of the power of R and have reverted back to using a for loop for the next step of the processing. The example below (which requi