In: Computer Science
R is one of the most popular programming languages which is highly used in statistical analysis, data analytics, and in scientific research.
=> R programming advantages and disadvantages in healthcare field:
Advantages of R programming in the healthcare sector :
Disadvantages of R programming in healthcare sector:
=> Application of R for data analysis and visualization are :
=> R statements that are used for decision making are:
1. if statement: If a boolean expression evaluation is true then block of statements are executed.
x = 10 // declaring value of x variable
if(x > 2){ //boolean expression (x>2) which is true
print("Hooray")
}
Output of the program:
2. if else statement: here, in if else statement, If a boolean expression evaluation is true then block of statements of if block are executed and if it is False then else block of statements are execute.
x = 10 //assigning value of variable x
if(x > 20){ //boolean expression (x > 20) ie false, so else block of statement execute
print("Hooray")
} else {
print("I love coding")
}
Output of above program:
3. if elseif else statement: here, in R- if elseif else statement ,If a boolean expression evaluation is true then block of statements of if block are executed and if it is false, then elseif block of statement are execute and if elseif boolean expression id False, then else block of statements execute.
x = 10 //assigning value 10 to variable x
if(x > 20){ // boolean expression i.e (x > 20) that is false
print("Hooray")
} else if(x > 15) { // boolean expression ie (x > 15) that is again False
print("I love coding")
} else { // results else block of statement execute
print("Hello world")
}
Output of above program:
=> Two data visualization options in R programming languages are:
1. Bar chart: Most of us are already familiarized with bar charts like a horizontal and vertical bar chart, but in R programming it provides staclk bar chart which further helps to introduce different variables ie:
Execute this in Rstudio or preferred editor, the output is:
Healthcare.ai supports R visualization which helps to categorize data in different categories.
2. Histogram: It is most well known for highly precise and accurate in R programming. It provides estimated probability of variable.
execute this in Rstudio or preferred editor, output is:
Healthcare.ai use this visualization for the probability or estimate time of patient recovery by storing their respective data in the histogram.
=> Microsoft visual studio is the code editor that is used to build web applications, computer programs, websites, web services. It is also used to create .net core applications or asp.net microsoft web applications.
Create a new R project in visual studio:
The impression of the ease of use for this tool is really great. visual basic studio is a user-friendly tool for beginners who has just started to learn programming language.