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.

AWS.ECommerceService.NoExactMatches: We did not find any matches for your request.

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

Super!

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

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

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

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.

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

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

Thanks

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

Thanks! This is great! 🙂

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?

Thanks a lot for posting this!!! 🙂

thanks! you’re right Giovanni

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

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

awesome video

what does ‘sort’ command do ???

Thank you so much.

a<-seq(10,100, by=10)

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

Hi,

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

or you can see the video in 720p

you are just awesome! thanks.

Thank you very much, I really like R, your videos are very helpfull

I’m a Linux and Apple OS X developer, I’ve done many cool things with R, but as soon as I saw the Windows crap, I was forced by my conscience to stop watching.

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

Examples

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

Thanks for your Tutorial. 😉

Very nice Video, thx a lot. To me personally the Kraut accent is nowhere near as annoying as the one of the indian dude that posted tutorials on the same topic. Kartoffelkopf ;D

That’s because he spelled the word length wrong.

Hi!! I just downloaded the new version of R 2.15.2. On what you explained on minute 5:50 the program recognized the full vector

[1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

[39] 1 1