H Hello I need help with these tasks only what I can do I write in the end please check someone and answer if they can help
Fixed a Vekor named, with 20 random values between 10 and 40
a vector named imt with 50 values randomly drawn from the interval 35 to 120
a factor vector encoding the animals of the VP as 'h', 'k' and 'r' in random order.
a factor that divides the subjects into two groups according to the vector, one group containing values greater than the mean and the other values less than or equal to the mean. For this, it may be necessary to first create any vector with 50 digits, and then replace the digits with indexing.
Then determine the mean, standard deviation, corrected sample variance, and uncorrected sample variance of the first ZVA.
Also, give the following values: * the values of the female VP's imt vector whose fixed values are greater than 25. * the animals of the VP who are in the above-average group of the second factor and have imt values below 100 * the sexes of the VP who have imt values below 100 but above 45.
Mit freundlichen Grüßen ist der erste deutsche Beitrag, den ich gesehen habe, und ich weiß nicht, wie viele deutsche Sprecher in der Community sind. Hier.
Hello I need help with these tasks only what I can do I write in the end please check someone and answer if they can help
Fixed a Vekor named, with 20 random values between 10 and 40
a vector named imt with 50 values randomly drawn from the interval 35 to 120
a factor vector encoding the animals of the VP as 'h', 'k' and 'r' in random order.
a factor that divides the subjects into two groups according to the vector, one group containing values greater than the mean and the other values less than or equal to the mean. For this, it may be necessary to first create any vector with 50 digits, and then replace the digits with indexing.
Then determine the mean, standard deviation, corrected sample variance, and uncorrected sample variance of the first ZVA.
Also, give the following values: * the values of the female VP's imt vector whose fixed values are greater than 25. * the animals of the VP who are in the above-average group of the second factor and have imt values below 100 * the sexes of the VP who have imt values below 100 but above 45.
# if you want to make reproducible include the next line
# set.seed(137)
tags <- factor(c("h", "k", "r"))
sample(tags, 15, replace = TRUE)
#> [1] k h h k k h k r k k h k r k k
#> Levels: h k r
a factor that divides the subjects into two groups according to the vector test, where one group should contain values greater than the mean and the other values less than or equal to the mean. For this, it may be necessary to first create any vector with 50 digits, and then replace the digits with indexing.
means factor of test with valus<=mean , test with results > mean. how i write this in 1 Code
new Vector i make is : v<-c(1:50)
Also factor is a class in R with specific properties. Are you trying to create an object like the help example
(ff <- factor(substring("statistics", 1:10, 1:10), levels = letters))
#> [1] s t a t i s t i c s
#> Levels: a b c d e f g h i j k l m n o p q r s t u v w x y z