Explain some of the useful functions provided by R which can perform vector operations.
Let us assign the following vectors v
1 Answer · 1.4K Views · Answered ✓
Browse 123 R questions and answers from learners and industry experts. Find practical fixes, interview prep and step-by-step solutions - or ask your own.
Let us assign the following vectors v
1 Answer · 1.4K Views · Answered ✓
Same as Python, we will be following similar steps in R also while creating a model.We will import the dataset initially
1 Answer · 1.6K Views · Answered ✓
vector=c(1,1,1,1,1,3,3,5,11,18 ....1350) The error is In 1:levels_id : numerical expression has 1350 elements: only the first used The error occured…
1 Answer · 1.1K Views · Answered ✓
One way of importing JSON files is by using the library rjson. Then we can do the following library("rjson")…
1 Answer · 980 Views · Answered ✓
There are many file formats of data to read and analyze but one of the most commonly used format is comma separated value or CSV file.To read a CSV…
1 Answer · 1.4K Views · Answered ✓
To convert such list into a dataframe, we can use the following code df
1 Answer · 929 Views · Answered ✓
factor() function is used when the data mostly contains categorical variables.This specific function will become extremely useful when we begin to…
1 Answer · 1.6K Views · Answered ✓
The goal of a simple linear regression is to find the relationship between a single feature (explanatory variable x) and the outcome. The equation of…
1 Answer · 1.8K Views · Answered ✓
# Simple Linear Regression First we will import the dataset dataset = read.csv('Salary_Data.csv') Now we split the dataset into the Training set and…
1 Answer · 1.1K Views · Answered ✓
Let us create a function to print out “Hello Sam” hello_you
1 Answer · 1.1K Views · Answered ✓
Yes it is possible to repeat a string n number of times in R. For doing that we can use replicate or rep function replicate(3, "string") Output [1]…
1 Answer · 1.0K Views · Answered ✓
If,else and elseif is used to apply logic to our code based on certain conditions. The basic syntax of if,else statement is if (condition) { # Code…
1 Answer · 1.1K Views · Answered ✓
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step Data Science guides from industry experts
Common Data Science interview questions, answered
Guides, tips and career advice on Data Science from JanBask experts.
Data Science The Best Data Science Projects (Beginner To Advanced)
Discover 15 data science project ideas from beginner to advanced levels. Includes tech stacks, time estimates, & real-use cases.…
Data Science Data Science vs Software Engineering - What you should know?
Compare Data Science vs. Software Engineering - explore skills, tools, roles, salaries, and career scope. Discover which tech…
Data Science Top 15 Deep Learning Algorithms You Must Know in 2025
Discover the top 15 deep learning algorithms powering AI in 2025. Learn how deep learning models, DL models, and deep machine…
Data Science Deep Learning Tutorial Guide for Beginners
Deep Learning, Machine Learning & Artificial Intelligence have become trending words of the IT sector today.
Pick another topic to find answers, interview questions, and real-world tips.