Explain with example how to create sequence using R.
To create sequence of vectors or simply numbers, we use seq() function such as seq(0,20) It will create a sequence of numbers from 0 to 20 such as…
1 Answer · 1.6K 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.
To create sequence of vectors or simply numbers, we use seq() function such as seq(0,20) It will create a sequence of numbers from 0 to 20 such as…
1 Answer · 1.6K Views · Answered ✓
Nested for loop means We can nest for loops inside one another,but we need to be careful as every additional for loop nested inside another may cause…
1 Answer · 1.6K Views · Answered ✓
Let us assign to a variable bill bill=c(46,33,39,37,46,30,48,32,49,35,30,48) sum(bill) To get the months he spent greater than 40 dollars,…
1 Answer · 955 Views · Answered ✓
Let us create two lists. l1
1 Answer · 1.1K Views · Answered ✓
A data frame is a 2 dimensional structure containing data in the form of rows and columns. A data frame is used to easily represent data in the form…
1 Answer · 1.4K Views · Answered ✓
For unsupervised learning, we will be performing clustering algorithms such as K-Means algorithm. First let us read the data crime
1 Answer · 1.0K Views · Answered ✓
To find out the index of an element, we have a function called match which returns the first encounter of a match. Let us define a vector of 10…
1 Answer · 1.0K Views · Answered ✓
data
1 Answer · 1.6K Views · Answered ✓
Let us use a mt cars datasets inside R df
1 Answer · 1.5K Views · Answered ✓
print(head(mylist,2)) [[1]] [1] 2349 103 411 9321 4268 [[2]] [1] 16937 162 For printing all the elements of a list given to a text file, we can…
1 Answer · 1.0K Views · Answered ✓
Let us create a dataframe with some values in R.For doing this we have to select a dataframe for selecting rows and columns. A data frame is a…
1 Answer · 1.4K Views · Answered ✓
To unlist all the dataframes from a list, we have to build a for loop and use assign() function to unlist such as Let us create a some sample…
1 Answer · 1.6K 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.