R-Basic: Part II- concatenate, class(), names(), multi entry vector, vector coercion etc.
Overview Create numeric and character vectors. Name the columns of a vector. Generate numeric sequences. Access specific elements or parts of a vector. Coerce data into different data types as needed. Sort vectors in ascending and descending order. Extract the indices of the sorted elements from the original vector. Find the maximum and minimum elements, as well as their indices, in a vector. Rank the elements of a vector in increasing order. Perform arithmetic between a vector and a single number. Perform arithmetic between two vectors of the same length. And Some sample Q/As Vector aka Variable The most basic units available in R to store data set are called vectors. A data set often has multiple variables. Vectors can be created using ‘c’ known as concatenate. country <- c( "Bangladesh" , "Cameroon" , "Croatia" ) codes <- c(Bangladesh = 880 , Cameroon = 237 , Croatia = 385 ) codes Bangladesh Cameroon Croatia 880 237 38...