For the complete documentation index, see llms.txt. This page is also available as Markdown.

Variable$get_statistics

Variable$get_statistics() → list

Fetches the statistics for the variable, returning a named list corresponding to the VariableStatistics resource definition.

If the statistics haven't yet been computed, will wait for statistics to compute before returning. Will raise an error if the variable does not exist.

Returns:

Examples:

table <- redivis$organization("Demo")$dataset("iris_species")$table("iris")

statistics <- table$variable("sepalLengthCm")$get_statistics()

print(statistics)

{
	"kind": "variableStatistics",
	"status": "completed",
	"count": 150,
	"numDistinct": 35,
	"min": 4.3,
	"max": 7.9,
	"mean": 5.8433333333333355,
	"approxMedian": 0.8280661279778625,
	...
}

Was this helpful?