var = dataframe
str(var)
get data structure of dataframe
head(var, n=x)
get the first x data (x default 6)
tail(var, n=x)
get the last x data (x default 6)
table(tblx$colName)
get the freq of dataframe from categorical column
min(tblx$colName)
get the min value of the column
max(tblx$colName)
get the max value of the column
mean(tblx$colName)
get the mean value of the column
course from GreatLearning
types
- numeric (ex: 1, 2, 3.4 regardless of float and integer)
- character (string with one quote (') or two ("))
- logical (TRUE / T and FALSE / F, if combine in numeric will be T = 1, F = 0)
- complex (numeric with imaginary factor ex 13+6i)