Aakash Bachheriya

Greenhorn
+ Follow
since Apr 08, 2019
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aakash Bachheriya

Created by Surv function
Usage

4 years ago
What should be the optimum number of K-means clusters that we must consider while building this model?
4 years ago
You  can use the rep() function in several ways if you want to repeat the complete vector.
For examples: specify the argument times 1. To repeat the vector c(0, 0, 7) three times,
use this code:

> rep(c(0, 0, 7), times = 4)
[1] 0 0 7 0 0 7 0 0 7 0 0 7 2

We can also repeat every value by specifying the argument each, like this:

> rep(c(2, 4, 2), each = 2)
[1] 2 2 4 4 2 2 3

We can tell R for each value how often it has to repeat:

> rep(c(0, 7), times = c(4,3))
[1] 0 0 0 0 7 7 7 4

In seq, we use the argument length.out to define R. it will repeat the vector until it reaches that length,
even if the last repetition is incomplete.

> rep(1:3,length.out=9)
[1] 1 2 3 1 2 3 1 2 3
4 years ago
I am a student and want to learn data science. I am good at Python, should i learn R too? or can I skip learning it?
4 years ago
What is the role of Pandas/core in the hierarchy of pandas library architecture?
4 years ago
How to access list elements in R?
4 years ago
Can anybody explain me Range in scala? How i can use it ?
4 years ago