powered by
Takes a data-FeatureCollection and returns a data-FeatureCollection with given number of features at random.
lawn_sample(features = NULL, n = 100, lint = FALSE)
A data-FeatureCollection
(integer) Number of features to generate.
(logical) Lint or not. Uses geojsonhint. Takes up increasing time as the object to get linted increases in size, so probably use by default for small objects, but not for large if you know they are good geojson objects. Default: FALSE
FALSE
Other data functions: lawn_featurecollection(), lawn_feature(), lawn_filter(), lawn_geometrycollection(), lawn_linestring(), lawn_multilinestring(), lawn_multipoint(), lawn_multipolygon(), lawn_point(), lawn_polygon(), lawn_random(), lawn_remove()
lawn_featurecollection()
lawn_feature()
lawn_filter()
lawn_geometrycollection()
lawn_linestring()
lawn_multilinestring()
lawn_multipoint()
lawn_multipolygon()
lawn_point()
lawn_polygon()
lawn_random()
lawn_remove()
# NOT RUN { lawn_sample(lawn_data$points_average, 1) lawn_sample(lawn_data$points_average, 2) lawn_sample(lawn_data$points_average, 3) # }
Run the code above in your browser using DataLab