Subsetting for a minimum number of locations for MCP in R

醉酒当歌 提交于 2019-12-12 01:37:13

问题


I'm using adehabitat to create mcps for annual and seasonal ranges. my csv is set up as a binary system for categorizing the seasons. it looks like this across the top:

anid - date - easting - northing - annual - seasonA - seasonB - seasonC

However, some of my animals do not have enough locations for each season.

My first subset looks like this:

seasonA <-locations[locations$seasonA==1]

And when I make my table:

t2<-table(seasonA$anid)

t2

I see that some of the animals have less than 30 locations.

So, I would like to further subset my data so that when I write my MCP, I am only using the animals with at least 30 locations.

来源:https://stackoverflow.com/questions/35183087/subsetting-for-a-minimum-number-of-locations-for-mcp-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!