Advertisements

# 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

Advertisements

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

Advertisements

Posted in Data analyze, R