powered by
argument %isa% type argument %hasa% property argument %hasall% property
%isa% checks if an object is of the given type.
%isa%
%hasa% checks if an object has a given property. This can be any named element of a list or data.frame.
%hasa%
%as%
5 %isa% numeric Point(r,theta, 'polar') %as% { o <- list(r=r,theta=theta) o@system <- 'polar' o } p <- Point(5, pi/2, 'polar') p
Run the code above in your browser using DataLab