I have shapefile and I would like to add the number of the class to it using function as the following in python
Python code:
def Soybeans11(feature):
return feature.set("Class",0)
R code:
Soybeans11 <- function(feature){ return feature.set("Class",0)}
but the code in R does not work. could you please help me in this if possible?