Create a vector using R | Question 1
R Programming Language / Vector in R Language
353Program:
numeric_vector <- c(1, 10, 49) character_vector <- c("a", "b", "c") # Complete the code for boolean_vector boolean_vector <- c(TRUE, FALSE, TRUE)
Output:
> numeric_vector [1] 1 10 49 > character_vector [1] "a" "b" "c" > boolean_vector [1] TRUE FALSE TRUE
Explanation:
Vectors are one-dimension arrays that can hold numeric data, character data, or logical data. In other words, a vector is a simple tool to store data. For example, you can store your daily gains and losses in the casinos.
This Particular section is dedicated to Programs only. If you want learn more about R Programming Language. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS