This function finds the grids located within a given shapefiles regions
metis.gridByPoly( gridTable = NULL, shape = NULL, shapeFolder = NULL, shapeFile = NULL, colName = NULL, dirOutputs = paste(getwd(), "/outputs", sep = ""), fname = "gridByPoly", folderName = NULL, saveFile = F, printFig = F )
gridTable | Default = NULL. Full path to grid file. |
---|---|
shape | Default = NULL, |
shapeFolder | Default = NULL, |
shapeFile | Default = NULL, |
colName | Default = NULL, |
dirOutputs | Default = paste(getwd(),"/outputs",sep=""), |
fname | Default = "gridByPoly" |
folderName | Default ="folderNameDefault", |
saveFile | Default = F. If want csv output then change to T |
printFig | Default = F. If grid overlap with shape is wanted |
Prints out graphic