Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Ask a Question
Applying lapply function on a matrix returns
Home
Data Handling
Applying lapply function on a matrix returns
asked
May 27, 2019
in
Data Handling
by
tempuser
Q:
Applying lapply function on a matrix returns
#datahandling
DataHandling-questions-answers
1
Answer
0
votes
answered
May 27, 2019
by
tempuser
Answer is list
Related questions
0
votes
Q: Which function is very similar to lapply?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
0
votes
Q: For a given matrix mat, how do you increment every element of the matrix by 3 and return a vector. (I) sapply(mat, function(x,y) sum(x)+y,y=3) (II) sapply(mat, function(x) sum(x)+3)
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
0
votes
Q: Which function can be used when a vector needs to be split into groups defined by a classifying factor, compute a function on the subsets, and return the results?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
0
votes
Q: What will the following lines of code return x <- matrix(1:18, 6, 3) apply(x, 2, sum)
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: The function write.csv() exports data into a file. However, this function by default adds rownames to the file. Which argument can be used to turn off addition of rownames?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: A hospital data contains patient's age and treatment they are undergoing. Which function can be used to find average of patients undergoing each of the treatments?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
0
votes
Q: The function read.csv() imports data into
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
0
votes
Q: Which function is used over the margins of an array
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+2
votes
Q: In the mtcars dataset, how many cars provide a mileage of less than 20 mpg?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: What is the average mileage of a car in the mtcars dataset
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: Which of the following functions lists all columns in a dataset with few values from each column?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: Which of the following functions does not list the total number of observations in a dataset?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: Which of the following functions can be used to find the number or rows and columns in a dataset?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
0
votes
Q: Which package is used to import data from a SQL server to R?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
0
votes
Q: data handling
asked
Sep 3, 2019
in
Data Handling
by
Robin
#datahandling
DataHandling-questions-answers
+1
vote
Q: If x and y are two tbls, which of the following joins return all rows from x and y irrespective of matching values?
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: dplyr never prints row names since no dplyr method is guaranteed to preserve them.
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: In the iris dataset, how many flowers havePetal.Length/Petal.Width ratio of less than 10
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: In the iris dataset, how many flowers of species setosa havePetal.Length/Petal.Width ratio of less than 10.
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: In the hflights dataset, how many flights were cancelled in the month of January 2011
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
...