R basics

Introduction to R (Part 2) Data types in R

#########DATA TYPES########## #mainly six (6) types #Type 1: Vector ##Six types of vector:logical(T/F),numeric, integer, complex, charater a=TRUE #logical b=FALSE #logical c=20.5 #numeric d=7L #integer #L to mention integer e=10+5L #comples f=”Research HUB” #charater vec= c(1,4,3,7,90,30,40) #to create a vector vec vec2=c(“hello”, “sorry”, “buzinga”) vec2 sortvec=sort(vec) #sorted from small to large sortvec sortvec2=sort(vec2) #sorted alphabatically sortvec2 vec[4] #gives the vaue in

Continue reading

The ResearchHUB

A platform to support quality academic research. The goal is to raise awareness among young students and researchers about the need of good research, and guide them to achieve excellence in academia. The platform is run by a team of aspiring PhD students residing in many different countries of the world.

NEWSLETTER