Latest questions in Data Analytics

0 votes
1 answer

How to check if a element is present in the list?

There are multiple functions for this purpose ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
20,927 views
0 votes
1 answer

How to convert continuous variable to categorical variable and vice versa?

Use discretize function to convert a continuous variable ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
7,673 views
0 votes
1 answer

Do we need to create vectors to create arrays in R?

Yes, you need vectors to create arrays. Arrays take vectors in ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
368 views
0 votes
1 answer

How does paste function work in R?

Paste function concatenates vectors together. Syntax: paste(v1,v2,sep = ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
692 views
0 votes
1 answer

What is the difference between list and vector in R?

The difference are - A list holds different ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
45,893 views
0 votes
1 answer

How to check installed packages from r source?

Use installed.packages() or find.package() function and pass the ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
435 views
0 votes
1 answer

How do I remove an element from a list by index in R?

Use list[index] = NULL The list value will ...READ MORE

Oct 31, 2019 in Data Analytics by Cherukuri
• 33,030 points
2,061 views
0 votes
1 answer

How to create a range of dates in R?

Hey, See the below example, > superstore$Order.Date[1] [1] "2014-11-11" > seq(superstore$Order.Date[1],length.out ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
725 views
0 votes
1 answer

How to check if a file already exists or not in R?

Check out file.exists() function!! The function file.exists() returns a ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
66,579 views
0 votes
1 answer

How to set data type of columns while reading from source?

@ch, Add colClasses attribute to read the statement ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 33,030 points
432 views
0 votes
1 answer

List should be atomic

@ch, A few functions only work with an ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 33,030 points
334 views
0 votes
1 answer

How to provide names for list elments in r?

There are 2 ways to add names ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
432 views
0 votes
1 answer

How to make points transparent using plot function in R?

There is no attribute to set the ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,875 views
0 votes
1 answer

how to fill the points of the plot using just plot function?

Hey, I don't think you can make ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
381 views
0 votes
1 answer

How ‘breaks’ and ‘ cut’ works in R?

@ch, Cut divides the range of x into ...READ MORE

Oct 14, 2019 in Data Analytics by rohan
3,286 views
0 votes
1 answer

Difference between list(1:5) and list(1,2 ...5) in R.

It's very simple. list(1:4) creates a single element(vector) whereas ...READ MORE

Oct 14, 2019 in Data Analytics by rajeev
431 views
0 votes
1 answer

Add buttons to perform actions on the leaflet map.

@ch, You can add easy buttons to add ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,345 views
0 votes
2 answers

R: Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...)

Use unlist function to convert the list ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
3,742 views
0 votes
1 answer

Remove characters from field in dataframe

Use the below code to update the ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
1,704 views
0 votes
1 answer

reverse a list or vector in R

@ch, Use rev function to reverse R objects ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,991 views
0 votes
1 answer

R: Highlight the map portion where zoomed or viewing.

@ch, Use the minimap to show a side ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
890 views
+1 vote
1 answer

In R programming language, how do I export data in .txt?

See this image for ways to export ...READ MORE

Oct 11, 2019 in Data Analytics by ashwini
472 views
0 votes
1 answer

What is the difference between NULL and NA?

In simple words, NULL represents the null or an empty object ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
10,526 views
+1 vote
0 answers

How to zip a folder with r image files from RStudio?

How to zip a folder with r ...READ MORE

Oct 10, 2019 in Data Analytics by ch
• 3,450 points
984 views
0 votes
1 answer

Format the date values in a specific format

@ch, Use format.Date function to convert one format ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
340 views
0 votes
1 answer

How to add special characters to a list?

@ch, You can add $. , / using ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
2,855 views
0 votes
1 answer

Reverse a string in R

Install stringi package and use stri_reverse(). > install.packages("stringi") > ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,392 views
0 votes
1 answer

function to sort elements in a list

@ch, Using sort function. sort(l,decreasing = T) > l = ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
363 views
0 votes
1 answer

How to get current time and date?

Use date function or timestamp function to ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
442 views
0 votes
1 answer

formatting r output

Use print and paste command to format ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
445 views
0 votes
1 answer

How to edit the data source from R?

Use edit function like below and pass ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
811 views
0 votes
1 answer

Slicing a list using an index vector in r

Use index within [] and provide an ...READ MORE

Nov 2, 2019 in Data Analytics by Cherukuri
• 33,030 points
9,826 views
0 votes
1 answer

How to create bins or groups in R?

Use cut functions or group_by function. group_by functions ...READ MORE

Oct 14, 2019 in Data Analytics by kavya
717 views
+1 vote
1 answer

What is ~ operator in R?

~ operator is used in R for ...READ MORE

Oct 14, 2019 in Data Analytics by mohan
442 views
0 votes
1 answer

How to convert data.frame object to transaction object?

You can either convert a data frame ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,045 views
0 votes
1 answer

Error with apriori function.

Hey, you forgot to mention support, confidence ...READ MORE

Oct 14, 2019 in Data Analytics by payal
2,652 views
+1 vote
1 answer

RandomForest Error

If the classifying variable data type is ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
468 views
0 votes
1 answer

Error with rbind

Hey, rbind needs the number of columns ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
3,116 views
0 votes
1 answer

How to create heat maps in R?

Use heatmap() to create heatmaps. > heatmap(as.matrix(mtcars)) See below ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 33,030 points
453 views
0 votes
0 answers

How to choose best variables for classification and regression models?

How to choose the best variables for ...READ MORE

Oct 7, 2019 in Data Analytics by ch
• 3,450 points
482 views
0 votes
1 answer

Random Forest Error : Error in y - ymean : non-numeric argument to binary operator

Hey, Convert the Class.variable to factor then it might work. random_forest ...READ MORE

Oct 9, 2019 in Data Analytics by Cherukuri
• 33,030 points
12,162 views
0 votes
1 answer

How to display randomforest object?

Refer to this article here, https://stats.stackexchange.com/questi ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
580 views
0 votes
1 answer

Create train and test data from dataset in R

Hi, Use sample or sample.split function to create ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
2,920 views
0 votes
1 answer

Read text file and save as csv file using R

hi, Read the text file and save it ...READ MORE

Sep 30, 2019 in Data Analytics by Cherukuri
• 33,030 points
531 views
0 votes
1 answer

How to rename a file using R?

I just found there are 2 functions file.rename() ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
10,176 views
0 votes
1 answer

Check if number is armstrong number or not

Hey, # take input from the user num = ...READ MORE

Sep 30, 2019 in Data Analytics by anonymous
• 33,030 points
1,140 views
0 votes
1 answer

How to add elements into a list in R?

hey, Add elements into list as below. list = ...READ MORE

Sep 30, 2019 in Data Analytics by anonymous
• 33,030 points
483 views
0 votes
1 answer

How to get attribute data from tag using R?

Hi, Use html_attr()/html_attrs() function to extract the attribute ...READ MORE

Sep 30, 2019 in Data Analytics by anonymous
• 33,030 points
620 views
0 votes
1 answer

How to create a new table in database from R?

Use dbGetQuery to create a table by ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
2,939 views