Quantcast
Channel: Codemiles.com Programming Forums - All Topics
Viewing all articles
Browse latest Browse all 36

Get Difference in days between two dates as a number

$
0
0
The following R script subtracts two dates and get the difference in days. The dates are in the String format. Thus, the R script has to use date format to convert the strings into dates.

[code=php]


diff
=as.Date(strptime("2004-02-03"...

Statistics : Posted by msi_333 • on Tue Apr 04, 2017 9:01 pm • Replies 0 • Views 7

Viewing all articles
Browse latest Browse all 36

Trending Articles