Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
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)...
asked
May 27, 2019
in
Data Handling
by
tempuser
What will the following lines of code return
x <- matrix(1:18, 6, 3)
apply(x, 2, sum)
#datahandling
DataHandling-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 27, 2019
by
tempuser
vector of 3 elements
Related questions
0
votes
Q: what will following lines of code return x<-matrix(1:18,6,3)____-
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
#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)
asked
May 27, 2019
in
Data Handling
by
tempuser
#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: If there are 6 terms in a series, then find the sum of geometric series 2, 6, 18, 54, ----
asked
May 27, 2019
in
Other
by
rajeshsharma
#job
#aptitude-test
career-test
reasoning-questions
quantitative-aptitude
jobs
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
asked
May 21, 2019
in
Mathematics
by
sheetalkhandelwal
#maths
#mathematics
Mathematics-questions-answers
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?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
#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?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
#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?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
#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?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
#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?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
#datahandling
0
votes
Q: If the shape of the Tensor is 2 x 1 x 3 x 1, performing torch.sqeeze() will output Tensor of shape _______.
asked
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
tensor
shape
0
votes
Q: For x = torch.Tensor([1, 2, 3, 4]), after x = torch.unsqueeze(x, 0) x will be of the shape _______.
asked
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
torch-tensor
0
votes
Q: If the shape of the Tensor is 2 x 1 x 3 x 1, performing torch.sqeeze() will output Tensor of shape _______.
asked
Jan 26, 2021
in
IONIC
by
SakshiSharma
#torch
pytorch
framework
+2
votes
Q: Two vectors X and Y are defined as follows – X <- c(3, 2, 4) and Y <- c(1, 2). What will be output of vector Z that is defined as Z <- X*Y.
asked
Jul 28, 2019
in
R Language
by
Aarav2017
#r-language
#r-programming
#r-course
#r-tutorial
#r-question-answer
#r-interview-question
#r-basics
#r-test
#what-is-r
#learn-r
0
votes
Q: Applying lapply function on a matrix returns
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
...