print(krit)
names weight
1 may 36
2 mayer 49
3 mayo 35
4 mali 50
> mean(krit$weight)
[1] 42.5
> typeof(weight)
[1] "double"
> typeof(names)
[1] "character"
Why is the weight column a double vector and not integer vector? At what point do you specify a vector should be an integer or double? Does this pose any sign towards data analysis with R?
as.integer().as.integer(1.5)where you should be rounding explicitly