Re: [R] What is best way to calculate % of time?

2019-12-25 Thread John Kane
LyX Document Hi Bruce, Combining date and times does not provide for sampling nights that roll over after midnight. Ah yesss legacies The location, date and time does provide unique variables. Ah, i thought so Rounding to nearest minute suffices for a summary of total minutes spent with

Re: [R] What is best way to calculate % of time?

2019-12-25 Thread Neotropical bat risk assessments
Hi Bert, Tnx for taking time to reply. For clarification... the data do EXPLICITLY indicate when each species is active and when a feeding buzz is recorded. That is ALL it provides based on acoustic data recorded in the field.  Only when a species is recorded  is it identified as active. How

Re: [R] What is best way to calculate % of time?

2019-12-25 Thread Bert Gunter
I will not get into your explanation of details that, like John, I find opaque. Please DO read Hadley's manifesto, as it appears that you need to organize your data more appropriately. AFAICS, however, strictly speaking your data cannot answer the question you have posed. **Strictly speaking** to

Re: [R] What is best way to calculate % of time?

2019-12-25 Thread Neotropical bat risk assessments
Tnx John, Yep failed to "reply all" my bad. Yes the mix of "information" on call type and species are in the same field.  It will be a single mouse click to export only the "buzz" data from the master DB as a separate CSV file from the species data. So this could be a new DF/data set for R.

Re: [R] R CMD Batch on Windows and use of the ampersand

2019-12-25 Thread Erin Hodgess
Nice! Thanks so much! Take care, Erin On Wed, Dec 25, 2019 at 1:49 PM Richard M. Heiberger wrote: > Hi Erin. > > I think the easiest way is to use sh, which is included as part of Rtools. > > From the CMD command line, enter > c:/Rtools/bin/sh -i > > You are now running a Unix shell, and all

Re: [R] R CMD Batch on Windows and use of the ampersand

2019-12-25 Thread Richard M. Heiberger
Hi Erin. I think the easiest way is to use sh, which is included as part of Rtools. >From the CMD command line, enter c:/Rtools/bin/sh -i You are now running a Unix shell, and all the behaviors you expect are there, including ";" and "&" Rich On Wed, Dec 25, 2019 at 12:16 PM Erin Hodgess

Re: [R] R CMD Batch on Windows and use of the ampersand

2019-12-25 Thread Erin Hodgess
This is great information! Thank you so much! Sincerely, Erin Erin Hodgess, PhD mailto: erinm.hodg...@gmail.com On Wed, Dec 25, 2019 at 10:44 AM Ivan Krylov wrote: > On Wed, 25 Dec 2019 09:13:28 -0800 > Erin Hodgess wrote: > > > We know that > > > > R CMD BATCH infile outfile & > > > > On

Re: [R] What is best way to calculate % of time?

2019-12-25 Thread John Kane
Hi Bruce, You replied just to me. I have taken the liberty of cc:ing R-help as there lots of more knowledgeable people than me there who may be able to help. In the meantime I remain confused. Here is my impression of the sample data that you supplied. I have combined Date & Time into a single

Re: [R] R CMD Batch on Windows and use of the ampersand

2019-12-25 Thread Ivan Krylov
On Wed, 25 Dec 2019 09:13:28 -0800 Erin Hodgess wrote: > We know that > > R CMD BATCH infile outfile & > > On Linux or Mac will let you continue interactively from the command > line. This is a property of the command line shell being used, not of R CMD BATCH itself. One way to do the same on

[R] R CMD Batch on Windows and use of the ampersand

2019-12-25 Thread Erin Hodgess
Hello! Merry Christmas to those of you celebrating it, and happy holidays to those celebrating other holidays. Here is a question about R CMD BATCH on Windows. We know that R CMD BATCH infile outfile & On Linux or Mac will let you continue interactively from the command line. However, it does

Re: [R] Something is wrong; all the MAE metric values are missing

2019-12-25 Thread Ivan Krylov
Try printing the value of `param` in your `obj` function before calling train() or getTrainPerf(). Optimizers are prone to giving unexpected values [*] in trying to lower the loss function. It might be the case of an unconstrained optimizer leaving the realm of the feasible because no-one told it

[R] Something is wrong; all the MAE metric values are missing

2019-12-25 Thread Neha gupta
Hi I am using Simulated annealing to tune the parameters of xgbtree for regression dataset. When I run the code to tune the parameters of SVM and RF, it works but when I run the same code for xgbTree, it gives stops and give error: Something is wrong; all the MAE metric values are missing:

Re: [R] What is best way to calculate % of time?

2019-12-25 Thread John Kane
I am sorry but I am at a loss here. According to your sample data you have 3 Species : Buzz, Ptedav, Ptemes, but you say that "Buzz" indicates that the bat is feeding. What has that to do with feeding? Assuming Buzz is feeding activity, are all incidents of feeding activity a single point in

[R] What is best way to calculate % of time?

2019-12-25 Thread Neotropical bat risk assessments
Hi all, It seems R has gotten better/more packages in dealing with time data. I want to create "simple" summaries of time for bat activity. Data is all in an Access relational database and exported as a CSV file with 4 columns in this format: Species = a 6 letter code or "Buzz" to indicated