[R] Remove reciprocal data from a grouped animal social contact dataset

2013-04-26 Thread Cat Cowie
Hi r-help forum, I have been collecting contact data (with proximity logger collars) between a few different species of animal. All animals wear the collars, and any contact between the animals should be detected and recorded by both collars. However, this isn't always the case and more contacts

[R] Creating %d/%m/%Y %H:%M:%S format from separate date and time columns

2013-04-12 Thread Cat Cowie
Hi R forum, Each row of my data (below) show a new contact event between animals. In order to ultimately look at the patterns of intervals between contacts, I need to calculate a contact end time. The contact starts at the date and time shown in V4 and V5, and lasts for the duration shown IN

Re: [R] Creating %d/%m/%Y %H:%M:%S format from separate date andtimecolumns

2013-04-12 Thread Cat Cowie
Thanks, Cat On 12 April 2013 15:00, Gerrit Eichner gerrit.eich...@math.uni-giessen.de wrote: Hello, Cat, see inline below. Hth -- Gerrit On Fri, 12 Apr 2013, Cat Cowie wrote: Hi R forum, Each row of my data (below) show a new contact event between animals. In order to ultimately

Re: [R] Error message in dredge function (MuMIn package) with binary GLM

2013-04-01 Thread Cat Cowie
Hi all, My replies within the forum aren't getting approved, though my emails always go through, so here is my reply to a question I previously posted (all questions and answers shown). Thanks, Cat I'm having trouble with the model generating 'dredge' function in the MuMIn 'Multi-model

[R] Create values based on a table of conditions

2013-03-29 Thread Cat Cowie
Hi R help forum, I have a simple data frame of four columns - one of numbers (really a categorical variable), one of dates and one of data. I have over 500,000 data points to work with, spread over 40 files, each named after a different animal. These are contact data recorded by proximity

[R] Error message in dredge function (MuMIn package) used with binary GLM

2013-03-29 Thread Cat Cowie
Hi all, I'm having trouble with the model generating 'dredge' function in the MuMIn 'Multi-model Inference' package. Here's the script: globalmodel- glm(TB~lat+protocol+tested+ streams+goats+hay+cattle+deer, family=binomial) chat- deviance(globalmodel)/59 #There we 59 residual degrees of

[R] Reassign values based on multiple conditions

2013-03-15 Thread Cat Cowie
Hi all, I have a simple data frame of three columns - one of numbers (really a categorical variable), one of dates and one of data. Imagine: collar date data 1 01/01/2013 x 2 02/01/2013 y 3 04/01/2013 z 4 04/01/2013 a 5 07/01/2013 b The 'collar' is a GPS collar that's been worn by an animal