I have this function
GWR.function <- function(shape1,shape2,shape3,x,y,...)
there are 3 shapefiles, I want R to allow shape2 and shape3 to be missing.
Although for example if I use a if(missing(shape2)) {} and then input:
GWR.function(NY.council.data,Borough.Areas,'PERCENT.WHITE.NON.HISPANIC',
'PERCENT.NRECEIVES.PUBLIC.ASSISTANCE','PERCENT.FEMALE','PERCENT.MALE')
R will not recognise that there is only 2 shapefiles and that the second one is missing.