R/Class-CRS.R

# Copyright (c) 2003-7 by Barry Rowlingson and Roger Bivand

setClass("CRS", slots = c(projargs = "character"),
# changed to NA_character_ RSB 2020-02-28
	prototype = list(projargs = NA_character_),
	validity = function(object) {
		if (length(object@projargs) != 1)
			return("projargs must be of length 1")
	}
)

Try the sp package in your browser

Any scripts or data that you put into this service are public.

sp documentation built on Nov. 27, 2023, 1:08 a.m.