Skip to content

Instantly share code, notes, and snippets.

View furqon's full-sized avatar

furqon

  • Juragan Sinda
View GitHub Profile
@furqon
furqon / inbuilt_func_in_r.md
Created June 18, 2021 03:44
Inbuilt Function in R

Inbuilt Function in R

Basic

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

@furqon
furqon / learn_r.md
Last active June 18, 2021 01:18
Learning R

Learn R

course from GreatLearning

Introduction

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)