Home / MCQ Bank / Computer
Computer Data Manipulation With Dplyr

In dplyr, what does the slice_sample() function do?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • Samples random rows from a data frame

Related Computer Questions

Which Python library is commonly used for machine learning and predictive modeling? What does the command routerA (config) #line cons 0 allow you to perform next? Which assertion method is commonly used in MiniTest for testing equality of values? The function computes the exponential function of x. What will be the output of the following C# code? class maths { public int x; public double y; public int add(int a, int b) { x = a + b; return x; } public int add(double c, double d) { y = c + d; return (int)y; } public maths() { this.x = 0; this.y = 0; } } class Program { static void Main(string[] args) { maths obj = new maths(); int a = 4; double b = 3.5; obj.add(a, a); obj.add(b, b); Console.WriteLine(obj.x + " " + obj.y); Console.ReadLine(); } }