Re: [R] Calculating an index of colocation for a large dataset

2013-06-26 Thread Adams, Jean
Bree, See StackOverflow for my response ... http://stackoverflow.com/questions/17244824/calculating-an-index-of-colocation-for-a-large-dataset-r/17299168#17299168 Jean On Tue, Jun 25, 2013 at 5:00 PM, Bree W wrote: > My apologies for cross-posting and for failing to reply to r-help. I'll get

Re: [R] Calculating an index of colocation for a large dataset

2013-06-25 Thread Bree W
My apologies for cross-posting and for failing to reply to r-help. I'll get the hang of it. This code seems to be getting me quite close, but I've encountered the following error. Error in compute(dat, depths, fish, zoop) : attempt to apply non-function -- View this message in context: http:

Re: [R] Calculating an index of colocation for a large dataset

2013-06-25 Thread Adams, Jean
Bree, You should cc r-help on all correspondence so that the thread of conversation is maintained for all readers. And you shouldn't attach any files. If you want to share some data, used dput(). For example, dput(head(whale)) dput(head(prey)) Give this code a try ... Note that I don't know wh

Re: [R] Calculating an index of colocation for a large dataset

2013-06-24 Thread Adams, Jean
Are you saying that the dive data for a single whale with 8 dives is stored in 8 separate files? How are you reading these files into R? read.table()? Could you post an example of the line of code that reads in the data? Something like this might work for you. # vector of file names file.names

[R] Calculating an index of colocation for a large dataset

2013-06-21 Thread Bree W
I have a complicated, multi-part question. My apologies if I do not make myself clear. I am also a fairly novice R user, so forgive me if this seems rudimentary. I want to calculate a index of colocation for whale dive data and prey distribution data. This entails: Calculating a frequency distribu