Hello.
We had been assigned to do laboratory work with R studio at University.
I need help. I had imported data to my R studio.
First exercise is to choose 3 variables from many. I did this with:
choose3variables<-select(name, Variable1:Variable2:Variable3) .
The second task is to class these variables. I did it with Variable1<-class(Variable1) and for the others too
The third task is to count mean, median, max, min, var, sd. Now these functions does not work and here are errors:
When I write mean(Variable1) it shows the:
[1] NA
Warning message:
In mean.default(Variable1) :
argument is not numeric or logical: returning NA
When I write median(Variable1) it shows: [1] "numeric"
When I write max/min(Variable1) it shows: [1] "numeric"
When I write var(Variable1) it shows:
Warning message:
In var(Kintamasis1) : NAs introduced by coercion
When I write sd(Variable1) it shows:
[1] NA
Warning message:
In var(if (is.vector(x) || is.factor(x)) x else as.double(x), na.rm = na.rm) :
NAs introduced by coercion
What should I do?
Please help me,
Thank you so much