Skip to main content

Is today's world all about creativity and ideation?

Are they the seeds to be nurtured to bring in automation, innovation and transformation.  There is a saying, necessity is the mother of invention. I would say, innovation is amalgamation of creativity and necessity.  We need to understand the ecosystem, to apply creativity and identify the ideas to bring in change. We need to be competent with changing ecosystem and think beyond the possible. What is the biggest challenge in doing this? "Unlearning and Learning", we think the current ecosystem is the best. Be it health, finserve, agriculture or mechanical domain, we need to emphasize with the stakeholders, to come up with the strategy to drive. The very evident example here is the quality of life is changing every millisecond. Few decades back the phone connection was limited to few, but today all the millennials are having a mobile phone. Now phone is not just a medium to talk, but are so powerful devices that an innovative solution can be developed on it....

Basic R programing

 


Hello Data Experts,
 
Let me continue from my last blog http://outstandingoutlier.blogspot.in/2017/08/practical-usage-of-rstudio-features.html  “Practical usage of RStudio features” where I had shared features for R Studio on windows platform.
 
Now that we are ready and familiar with R Studio, next steps are to make our-self comfortable with R Programming.
 
Let me start with a statement R programing is very much like how we operate calculator. We can also call R as a glorified calculator to start with.
 
Few basic tips to keep in mind while working on R:
 
·         Comments start with “#” character.
# Below set of tips are very useful.
 
·         No need to declare variable, assigning a value to a variable directly will work. Assignment of a value to a variable is done by left assign.
a <- 1
 
Please note there are 3 ways to assign a variable
Right Assign            25 -> b
Assign operator       c = 24
Left Assign             a <- 1
(Left assign is the best practice for R programing to do value assignment).
 
·         Help can be invoked by prefixing “?” character.
?Foreign
 
·         Data Type is assigned by R internally based on the value assigned to the variable.
Nu <- 1
St <- “How are you”
Bi <- TRUE
 
·         R programming language is case sensitive, these are 2 different variables.
UC <- “UPPERCASE”
uc <- “LOWERCASE”
 
·         R accepts “.” Character in variables, hence no need to have variable with underscore.
Height.inch <- 23
 
BASIC OPERATORS
Let us start with Data Operators, SUM, SUBSTRACTION, MULTIPLICATION and DIVISION. First let us assign values to variables
FV <- 2
SV <- 6
TV <- 3
 
SUM:
FV + SV
# FV + SV will result 8
 
SUBSTRACTION:
        SV – TV
        # SV – TV will result 3
 
DIVISION:
        SV/TV
        # SV/TV will result 2
 
MULTIPLICATION:
        FV*TV
        # FV*TV will result 6
 
ADVANCED OPERATORS
Let us use advanced operator, POWER, REMAINDER and QUOTIENT
 
POWER
        TV^FV
# TV^FV will result 9, as it will be calculated as 3 to the power 2.
 
REMAINDER
        TV%%FV
        # This will result 1
 
QUOTIENT > DIVISION ADJUSTED TO WHOLE LFET
        TV%/%FV
        # This will result 1
       
RELATIONAL OPERATORS
Let us start with relation operator <, >, !=, ==, <= , >=
 
a <- 4
b <- 9
 
a < b
# This will TRUE
 
a > b
# This will FALSE
 
a != b
# This will TRUE
 
a == b
# This will FALSE
 
# we can also mix and match operators like
a <= b
# This will TRUE
 
a >= b
# This will FALSE
 
a => b
# THIS IS NOT THE RIGHT SYNTAX. HENCE WILL ERROR OUT.
 
I am sure this blog was useful and helped you understand How to use basic Operators using R. With this you are all set to go head and start practicing advance R using RStudio. In my next blog, I will begin with “Reading datasets using R Studio”.
 
I had kept this session light as it is important to have basics clear. Thank you being with me for this blog I hope it was helpful. Kindly share your valuable and kind opinion. Please do not forget to suggest what you would like to understand and hear from me in my future blogs. 
 
Thank you...
Outstanding Outliers:: "AG".

Comments

Popular posts from this blog

Do we really need Data Scientist?

Hello Data Inquisitors, Today while having my discussion with Database expert, there was a healthy discussion between us around "Do we really need Data Scientist?". "DATA SPEAKS WHAT AND HOW ONE WANT TO SEE" - AG Discussion started by one of my dear friend who is the DB expert, he is the database administrator and is serving the industries consuming Data Mining and Data Warehouse techniques. He was very clear when he called out that Data Analytics is like an old wine in the new bottle. It just a new Job title has been created to continuous with thunder in new disruptive world. I appreciated his thought and the sense of attachment to "Data Cloud". Discussion went on for an hour before he embraced the need of Data Scientists.  Data Scientist to me is an Architect who has the skills to project collection of data points i.e., " Data Ocean" to a decision-making Data Visualization asset by using complex stati...

DevOps Models

Hello Everyone, IT industry is going through a Disruptive Evolution, where Artificial Intelligence and Intelligent Automation is helping organization go Lean and Agile. Leaders are at the crossroad where they need to pick the path which will empower their business teams to be more productive and focus on core. In this blog, I tried to invoke a thought process for leaders how they can step up their game by taking baby steps but still following fast lane to reach destination on time. Thought leaders must have been tracking the industry pulse how IT is changing fast pace by adopting Artificial Intelligent Driven Innovative frameworks. To drive Delivery in much more efficient and eloquent way, everyone must adopt new optimized Development and Operations practices to sustain in the current competitive ecosystem (Service or Captive world), by keeping cost to minimal.     IT gurus are smartly redefining their vision and practices towards Lean methodologies.  ...

What's the right time for Digital Marketing?

  Hello Friends, First, let me THANK YOU for taking time out from your demanding timetable to read my articles on Digital Marketing sequence. This is my second write up on Digital Marketing to help Entrepreneurs, Digital Marketers and Small Businesses to understand A to Z about Digital Marketing. In this artefact, I will be concentrating on “When should one go for Digital Marketing?”.   Last article I wrote was focused on “ Why Digital Marketing Strategy is needed? ”. Taking an analogy, like there is life cycle for all human life, Digital Marketing maturity can also be defined as naïve to mature. It is important to understand what should be actioned and when to get necessary benefits. Let me come back to the topic "When should we focus on Digital Marketing?”.   It is imperative to take right actions at right time to get right outcome. Similarly, right Digital Marketing using apt disruptive techniques results can be noticed in form of consumer beh...