Atomic Vectors

You're currently learning a lecture from the course: 

... 

Prerequisite Terminologies

In order to have thorough understanding of the main topic, you should have the basic concept of the following terms:

Duration: 

Transcription

By:

Hamsa Ehsan

Introduction:

Atomic Vectors are the simplest objects in the R Programming Language. In R, variables are actually known as vectors as the values/elements stored by them are all of the same type not arbitrary like ‘lists’ and they are stored in one dimension.


Steps:

  • Open RStudio and save your ‘.r’ file.

  • If you want to store the same type of data, the atomic vectors are the best way to do that because they allow the efficient retrieval and storage of data.

  • You can utilize vectors as:

vector_name <- value/elements

Where you can store single or multiple elements in a vector.

  • If you want to check if a variable is a vector or not, the you can use this built-in function:

Is.vector( vector_name)

If the result comes TRUE, then it is a vector.


Summary:

In this video, we learnt about Atomic Vectors in R and how they can be created. We also discussed how we can use them and why we do we use them.

File(s) Section

If a particular file is required for this video, and was discussed in the lecture, you can download it by clicking the button below.

Get in touch with us

Tel: +92 314 7785980

Email: Contact@BioCode.ltd

  • Black Instagram Icon
  • Facebook

© Copyright 2020 BioCode Ltd. - All rights reserved.