Author Archives: nepalcatmandu

Convert to day of a year in R

In R often time we need to find the exact nth day of a date in that particular year. The snippet below will be very helpful for this: x <- c(‘5/5/2007′,’12/31/2007′,’1/2/2008’) #Convert to day of year (julian date) —  strptime(x,”%m/%d/%Y”)$yday+1 … Continue reading

Aside | Posted on | Tagged | Leave a comment

Import multiple files in R as a dataframe

It is often necessary to input multiple files into R at once. However, it is not straightforward and it would be quite frightening. I myself have spent hours before figuring out. There are many ways to do this. Usually, we … Continue reading

Posted in R program | Tagged , , | Leave a comment

How to change the color of the text selection of your website?

Often times, we don’t even care what is the color if some user selects the text in our website. However, if you do some tweaking then it would be really awesome. You can change the color of the selection and … Continue reading

Posted in Uncategorized | Leave a comment