Zend Anwar

Full stack web developer

Month: February 2018

Method overloading example in python

class Localbus: def sayLocal(self, busName=None): if busName is not None: print(‘Hello ‘ + busName) else: print(‘Hello ‘) obj = Localbus() obj.sayLocal() obj.sayLocal(‘Alif’) Output ============= Hello Hello Alif class Human: def sayHello(self, name=None, age=None): if name is not None and age is None: print(‘Hello ‘ + name) elif age is not None and age is not […]

Read More

R Variable Assignment

var_assign1 valid Variable can use in number,underscore var_assign% Invalid Can’t use ‘%’.  dot(.) and underscore allowed. 2var_assign invalid Variable can’t start with number .var_assign , var.assign valid Can start with a dot(.) and the dot(.) with join. .2var_assign invalid Variable started with dot & number _var_assign invalid Variable starts with _ which is not valid

Read More

R data types

R not like other programming languages like C and java,the variables are not declared as some data type. R basically object base.There are many types of R-objects. The frequently used ones are − Vectors Lists Matrices Arrays Factors Data Frames These objects is the vector object and there are six data types of these atomic […]

Read More

R script

# My first program in R Programming > strVar <- “Hello, World!” > print ( strVar) [1] “Hello, World!” Comments #This is R comments  

Read More

Hello world in R

print(“Hello World”)

Read More

R graphics engine version 12 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed.

This warning message mean that, The current RStudio version is 1.0.143. Download and install the newest version. > RStudio.Version()$version [1] ‘0.99.896’ Please update your version.

Read More