Saturday, April 8, 2023

R Tutorial Playlist - Basic Types

 Keep in mind that R treats all of values as arrays or even as tables of values, out of the box. Types of values, we are dealing with in R are characters, logical and numeric.

R is not strict with variable types.

a= 10

a="ho ho" or 

a= False

all of those examples are totally fine. Plus there is one more way more preferable to R coders to assign value to a variable:

a <- "some value"

You could do something like

"some value"->b

but previous example is preferable

In this video we are also talking about function invisible that is going to prevent printing of variable value to the screen.

With function typeof you can print type of a variable.

If you want to see, how all of this works in real example, check this video on our YouTube channel.



No comments:

Post a Comment