R Tutorial #2 - Math with Scalars and Vectors - Statistical Programming Language R

preview_player
Показать описание
Part 2 of my R Tutorial - Doing Math with Scalars Vectors.

I show how to create variables in R and how to assign values (scalars or vectors) to them. I also show how to calculate with those variables in R and I use some mathematical functions like sum, prod, min, max, mean, var.
Рекомендации по теме
Комментарии
Автор

great work. I would recommend zooming on smaller part of the monitor so it makes it easier for us to read.

repsieximo
Автор

Nevermind. I figured it out. For my version it seems to be "by=" not " by" ". Back to the video. Thanks again, this is great.

erics.
Автор

you are just awesome bro!!! the exact stuff i needed!!!

SoHoTandCool
Автор

Thank you very much!! Your videos are very helpful to me as well!!!!

mewhoi
Автор

prod returns the product of all the values present in its arguments

Examples

print(prod(1:7)) == print(gamma(8))

eddiegashi
Автор

awesome video
what does 'sort' command do ???

codenamerishi
Автор

If would like to have a vector that contains 40 1s you may use replicate function instead. Ex.. items <- rep(1, 40)

SuperReprise
Автор

In SPSS, you have the table where you put all o the coding number such as 2, 2, 4, 1 (if you know what I mean). In R, where is the data take from? Excel?. Thank you very much.

GHXL
Автор

"sort" command puts the lowest value first and the highest value at the last. regards!

leonardogutierrez
Автор

Firstly, thanks for making this video. Its already been a help to me, and I'm only three minutes in.

I am trying to change the "step size", but I'm missing something. I've tried it a couple of ways:

a <- seq(10, 100, by"10)
a<-seq(10, 100, by"10)
a<-c(10:100, by"10) ....and so on and so on, but R doesn't want to listen to me. What am I doing wrong?

erics.
Автор

What is the sign typed before the o.5 and in the other steps ?

waleedmahmoud
Автор

Super!
Can anyone tell me please what is Product [prod(a) I mean]?

maziarkr
Автор

Please use a bigger font size, when you record a video tutorial ..

Thanks

kgangavaram
Автор

@waleedmahmoud02 I made the video into 720p hd and it shows an = sign

MrKernkraft
Автор

Hi,
how can u get a sequence of length 40 with 1 printed 40 times... ie  1 1 1 1 1... 40times??? awaiting reply

Roshan
Автор

That's because he spelled the word length wrong.

giovanni