### Calendar

December 2017 M T W T F S S « Oct 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

# Category Archives: Data analyze

## 1. COMPUTING RECENCY, FREQUENCY, MONETARY VALUE

# Load text file into local variable called ‘data’ > data = read.delim(file = ‘e:/courses/Big_data/R/Marketinganalzse/purchases.txt’, header = FALSE, sep=’\t’, dec=’.’) # Display what has been loaded. > head(data) V1 V2 V3 1 760 25 2009-11-06 2 860 50 2012-09-28 3 … Continue reading

Posted in Marketing analyze

## R log Function

R log Function log() function computes natural logarithms (Ln) for a number or vector. log10 computes common logarithms (Lg).log2 computes binary logarithms (Log2). log(x,b) computes logarithms with base b. >log(5) #ln5 [1] 1.609438 >log10(5) #lg5 [1] 0.69897 >log2(5) … Continue reading

Posted in Data analyze, R