Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Testing
Feedback
Ask a Question
What will the following lines of code return x <- matrix(1:18, 6, 3) apply(x, 2, sum)
Home
Data Handling
What will the following lines of code return x <- matrix(1:18, 6, 3)...
May 27, 2019
in
Data Handling
Q: What will the following lines of code return
x <- matrix(1:18, 6, 3)
apply(x, 2, sum)
#datahandling
1
Answer
0
votes
May 27, 2019
vector of 3 elements
Related questions
0
votes
Q: what will following lines of code return x<-matrix(1:18,6,3)____-
Jun 7, 2019
in
Data Handling using R
#datahandling
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)
May 27, 2019
in
Data Handling
#datahandling
+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?
May 27, 2019
in
Data Handling
#datahandling
0
votes
Q: The fraction (5x-11)/(2x2 + x - 6) was obtained by adding the two fractions A/(x + 2) and B/(2x - 3). The values of A and B must be, respectively: (a) 5x, -11, (b) -11, 5x, (c) -1, 3, (d) 3, -1, (e) 5, -11
May 21, 2019
in
Mathematics
#maths
#mathematics
+1
vote
Q: If there are 6 terms in a series, then find the sum of geometric series 2, 6, 18, 54, ----
May 27, 2019
in
Other
#job
#aptitude-test
career-test
reasoning-questions
quantitative-aptitude
jobs
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from x where there are not matching values in y, keeping just columns from x?
Jun 7, 2019
in
Data Handling using R
#datahandling
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from x and y irrespective of matching values?
Jun 7, 2019
in
Data Handling using R
#datahandling
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from y, and all columns from x and y?
Jun 7, 2019
in
Data Handling using R
#datahandling
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from x where there are matching values in y, and all columns from x and y?
Jun 7, 2019
in
Data Handling using R
#datahandling
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from x where there are matching values in y, keeping just columns from x?
Jun 7, 2019
in
Data Handling using R
#datahandling
...