num_1.2.TrueelseI_am_not_a_valid_nameI_am_a_Pretty#_namevec_1 with values (7, 24, 8, 26), get its length, and find out its type.char_1 with values (“I”, “am”, “learning”, “R!”), get its length, find out its type, and concatenate the vector into a single string with space as the separator.char_1 defined in Q2, find the number of characters in each string, and convert each string to upper case.vec_1 and char_1 are of character type.class1 <- c(7, TRUE). Which of the following is the class of class1?class2 <- c(7, TRUE, "char"). Which of the following is the class of class2?rep() function to create the stringc("sheep","pig", "cat","sheep","pig", "cat","sheep","pig", "cat")
rep() function to create the stringc("sheep","sheep","pig","pig","pig","pig","cat","cat","cat")