adplus-dvertising
frame-decoration

Question

What will be the output of the following R code?
> x <- as.POSIXct("2012-10-25 01:00:00")
> y <- as.POSIXct("2012-10-25 06:00:00", tz = "GMT")
> y-x

a.

Time difference of 1 hour

b.

Time difference of 1 min

c.

Time difference of 1 sec

d.

Time difference of 5 sec

Posted under R Programming

Answer: (a).Time difference of 1 hour

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following R code?

Similar Questions

Discover Related MCQs

Q. Which of the following return a subset of the columns of a data frame?

Q. Point out the correct statement?

Q. _________ extract a subset of rows from a dataframe based on logical conditions.

Q. _________ generate summary statistics of different variables in the data frame, possibly within strata.

Q. Point out the wrong statement?

Q. ________ add new variables/columns or transform existing variables.

Q. The _______ operator is used to connect multiple verb actions together into a pipeline.

Q. The dplyr package can be installed from GitHub using the _______ package.

Q. The dplyr package can be installed from CRAN using __________

Q. Which of the following object is masked from ‘package: stats’?

Q. The _________ function can be used to select columns of a data frame that you want to focus on.

Q. Point out the correct statement?

Q. ________ function is similar to the existing subset() function in R but is quite a bit faster.

Q. Columns can be arranged in descending order too by using the special ____ operator.

Q. Point out the wrong statement?

Q. The _________ function is used to generate summary statistics from the data frame within strata defined by a variable.

Q. The ______ operator allows you to string operations in a left-to-right fashion.

Q. There is an SQL interface for relational databases via the _______ package.

Q. dplyr can be integrated with the ________ package for large fast tables.

Q. Which of the following function is similar to summarize?