This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# read_dir | |
# description | |
# | |
# read files with specific extensions in the directory as dataframes | |
# args | |
# | |
# directory : directory should not end with "\" | |
# extensions : extensions of the files to be selected as a character |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Store and retrieve R objects from password protected a file on disk | |
# *************** | |
# Purpose | |
# *************** | |
# | |
# Store R objects into password protected 7z file | |
# Read them into a R environment | |
# *************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Vignette: `csv_process` (csv_disk_utils_R)" | |
author: "Srikanth KS" | |
date: "17 February 2016" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Page ranges to print on both sides of a sheet ---- | |
# author : Srikanth KS (talegari) | |
# contact : gmail me at sri dot teach | |
# version : 1 | |
# last updated : 31st Dec 2015 | |
# purpose : If your printer prints on one side(you manually | |
# turn and feed the papers) and you need to print | |
# multiple pages per sheet | |
# load libraries ---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nextChannel ---- | |
# | |
# predict next possible channel using previously used channels. | |
# This is more of a quick hack than a timeseries algorithm. | |
# It does not take care of seasonal changes or long-term changes, | |
# If you are looking for more, use Arima or ETS timeseries methods. | |
# idea | to predict channel preference based on few | |
# | previously used channels. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------------------------------------------------------- | |
# customer lifecycle value calulation (CLV,LCV,LTV) | |
# python version : 2.7.10 | |
#---------------------------------------------------------- | |
# facilitate division | |
from __future__ import division | |
# clvBasic ---- | |
# define clv for finite or infinite horizon(from geometric series) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################################################################### | |
# utilities | |
####################################################################### | |
# author : talegari (Srikanth KS) | |
# license : GNU AGPLv3 (http://choosealicense.com/licenses/agpl-3.0/) | |
####################################################################### | |
# intro ---- | |
# This is a set of quick utilities(functions) written in R(3.2.2) |
NewerOlder