Most viewed questions in Data Analytics

0 votes
1 answer

Clustering strings in R

Convert the field as factors and use ...READ MORE

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

R Programming: Predicting Outliers

You can remove outliers without a loop, ...READ MORE

Jan 28, 2019 in Data Analytics by Sophie may
• 10,610 points
620 views
0 votes
1 answer

Manipulate character string using gsub() and perform multivariate data cleaning efficiently in R

gsubfn is perfect for this task: library(gsubfn) as.vector(sapply(gsubfn("[A-Z]", list(B="* 1", ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
619 views
0 votes
1 answer

Treat outliers in Dataset

Outlier values can be identified by using ...READ MORE

Jul 12, 2018 in Data Analytics by Sahiti
• 6,370 points
617 views
0 votes
1 answer
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
615 views
0 votes
1 answer

All Levels of a Factor in a Model Matrix in R

Yes, you can modify the model.matrix() function ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,380 points
614 views
0 votes
1 answer

Convert nested list to hclusters in R

Hi Kajal, I don't its possible to create ...READ MORE

Sep 2, 2019 in Data Analytics by anonymous
• 33,030 points
614 views
0 votes
0 answers

Add multiple maps over each other

How to multiple layers of maps over ...READ MORE

Sep 19, 2019 in Data Analytics by anonymous
• 33,030 points
613 views
+1 vote
1 answer

R programming: Finding closest pair

The dist() function will help you find the ...READ MORE

Mar 5, 2019 in Data Analytics by Tyrion anex
• 8,700 points
613 views
0 votes
1 answer

Making a ggplot2 plot without any legends,axes or axis labels

The below command will give you the ...READ MORE

May 29, 2018 in Data Analytics by Bharani
• 4,660 points
613 views
0 votes
1 answer

Handling Imbalanced dataset

This usually occurs when a vast set ...READ MORE

Oct 17, 2018 in Data Analytics by kurt_cobain
• 9,390 points
612 views
+1 vote
1 answer

Machine Learning and Python Code

You can create an array called actualScore ...READ MORE

Dec 13, 2018 in Data Analytics by Shubham
• 13,490 points
611 views
0 votes
1 answer

Error saying " "solarspectrum3" not resolved from current namespace (SolarSpectrum)"

the call to .C() or .Call() needs to be amended in ...READ MORE

Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
610 views
0 votes
1 answer

Install R on windows

Hey @Ali,  Go to the following link: https://cran.r-project.org/bin/windows/base/ and ...READ MORE

Oct 26, 2018 in Data Analytics by Maverick
• 10,840 points
610 views
+1 vote
1 answer

Unload package without restarting R

You can use the unloadNamespace command, as ...READ MORE

Nov 5, 2018 in Data Analytics by Kalgi
• 52,360 points
609 views
+1 vote
1 answer

R programming error: sum of products

Best soln is to integrate R linear algebra: > ...READ MORE

Mar 6, 2019 in Data Analytics by Sophie may
• 10,610 points
608 views
0 votes
1 answer

How to extract tidy output from many single-variable models using purrr/broom?

You can try this solution: filter_starwars <- function(...) ...READ MORE

May 17, 2018 in Data Analytics by DataKing99
• 8,240 points
607 views
0 votes
1 answer

why the predict() function does have different rows in R

Alter this sentence: model = lm(train$latitude train$crashes) to lm(crashes ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
601 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
600 views
0 votes
1 answer

extract token using R

Just add collapse = FALSE in your unnest_tokens: library(tidytext) library(dplyr) jobs %>% ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,840 points
599 views
0 votes
1 answer

If-else in R code

x <- c(.5, 0.2, 2, 3.4, 0.4, ...READ MORE

Nov 5, 2018 in Data Analytics by Kalgi
• 52,360 points
597 views
0 votes
1 answer

cant get around error ''expected an indented block'' in python(jupyter lab)

Hi@David, First thing, don't share your credentials with ...READ MORE

Nov 19, 2020 in Data Analytics by MD
• 95,440 points
595 views
0 votes
1 answer

How to replace only set of values in a vector to different values in a dataframe?

If you have a condition using which ...READ MORE

Aug 19, 2019 in Data Analytics by anonymous
• 33,030 points
594 views
0 votes
0 answers

how to hide and show legends for different geom_plots* in a single ggplot?

how to hide and show legends for ...READ MORE

Jul 23, 2019 in Data Analytics by karthick
594 views
0 votes
1 answer

Bias and Variance

In the learning algorithms, Bias is generally ...READ MORE

Oct 23, 2018 in Data Analytics by kurt_cobain
• 9,390 points
591 views
0 votes
1 answer

How to join columns that are non-NA?

You can match on something like X=X ...READ MORE

Apr 18, 2018 in Data Analytics by Sahiti
• 6,370 points
591 views
0 votes
1 answer

How to find out the package version which is loaded in R?

You can use sessionInfo() to accomplish that. > ...READ MORE

Apr 18, 2018 in Data Analytics by zombie
• 3,790 points
591 views
0 votes
1 answer

why the predict() function does have different rows in R

Alter this sentence: model = lm(train$latitude train$crashes) to lm(crashes ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
590 views
0 votes
1 answer

Trying to find frequent itemsets of a data set using arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", "milk", ...READ MORE

Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
590 views
0 votes
1 answer

Select table name and corresponding columns frim the sql file - R

Try something like this: library(stringr) library(dplyr) library(tidyr) text <- readLines("file.txt") dataFrame <- ...READ MORE

Dec 11, 2018 in Data Analytics by Maverick
• 10,840 points
589 views
0 votes
1 answer

How to get the output of number of elements to reach a cumulative sum?

You can use the sapply function, to loop ...READ MORE

May 29, 2018 in Data Analytics by Sahiti
• 6,370 points
589 views
0 votes
1 answer

How to cluster center mean of DBSCAN in R?

Just index back into the original data ...READ MORE

Jun 26, 2018 in Data Analytics by DataKing99
• 8,240 points
588 views
0 votes
0 answers

Allow user input on maps

Can anyone explain how to add controls ...READ MORE

Sep 24, 2019 in Data Analytics by ch
• 3,450 points
586 views
+1 vote
1 answer

R programming: Generating random frequencies

Follow this, it might help you: Produce sample ...READ MORE

Feb 18, 2019 in Data Analytics by Tyrion anex
• 8,700 points
586 views
+1 vote
0 answers

group By Sum

Hi, I want group By sum in R ...READ MORE

Jan 18, 2019 in Data Analytics by Rajendra

recategorized Jan 18, 2019 by Vardhan 586 views
0 votes
1 answer

Components in grammar of graphics

Broadly speaking these are different components in grammar of ...READ MORE

Jul 24, 2018 in Data Analytics by Sahiti
• 6,370 points
584 views
0 votes
0 answers

R: use of "where" to select rows by matching an element from a list

I'm trying to utilise R's "where" function ...READ MORE

Jun 10, 2022 in Data Analytics by Avinash
• 1,260 points
581 views
0 votes
1 answer

How to render outputs of few elements(graphs) in shiny app?

hi Racheal, You can isolate those outputs which ...READ MORE

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

Deleting particular objects from workspace - R

You can use the rm() function to ...READ MORE

May 7, 2018 in Data Analytics by Bharani
• 4,660 points
581 views
+1 vote
1 answer

R Programming: Running multiple sub-strings

Instead of using the substr() try with ...READ MORE

Feb 6, 2019 in Data Analytics by Sophie may
• 10,610 points
580 views
0 votes
1 answer

mysql connection issue in Spark VM

Dear Learner, Hope you are doing well. Please go ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
579 views
0 votes
1 answer

Extracting specific columns from a data frame

Yes, there is a more efficient method ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,380 points
578 views
0 votes
0 answers

Create data frame from function in R

One function that I designed can produce ...READ MORE

Jul 9, 2022 in Data Analytics by avinash
• 1,840 points
577 views
0 votes
1 answer

How do I become a data scientist step by step?

I am assuming that you are a ...READ MORE

Jul 26, 2018 in Data Analytics by Abhi
• 3,720 points
577 views
0 votes
1 answer

Splitting strings in a list delimited by space

Use strspltit function and provide separator as ...READ MORE

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

How to visualize the randomForest model in R?

How to visualize the randomForest model in ...READ MORE

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

Error saying "R Error: package ‘lme4’ required by ‘pbkrtest’ could not be found"

Windows 7, revo R 3.2.3 construct a directory ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
574 views
+1 vote
1 answer

Getting the following error: Error in eval

This error is caused by references to ...READ MORE

Oct 31, 2018 in Data Analytics by Kalgi
• 52,360 points
574 views
0 votes
1 answer

Create an animation from images in R

Create a vector with all frames required ...READ MORE

Aug 7, 2019 in Data Analytics by anonymous
• 33,030 points
573 views