Trending questions in Data Analytics

0 votes
1 answer

How to spilt a column of a data frame into multiple columns

it is easily achievable by using "stringr" ...READ MORE

Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,774 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,920 views
0 votes
1 answer

How can I learn R?

As the name signifies it's only an ...READ MORE

May 9, 2018 in Data Analytics by zombie
• 3,790 points
456 views
0 votes
1 answer

How to join a list of data frames using map()

You can use reduce set.seed(24) r1 <- map(c(5, 10, ...READ MORE

Apr 11, 2018 in Data Analytics by kappa3010
• 2,090 points
1,575 views
0 votes
1 answer

How to create an empty dataframe?

Initialize with empty vectors: data <- data.frame(Date=as.Date(character()), ...READ MORE

Apr 13, 2018 in Data Analytics by nirvana
• 3,130 points
1,386 views
0 votes
1 answer

How to join two tables (tibbles) by *list* columns in R

You can use the hash from digest ...READ MORE

Apr 6, 2018 in Data Analytics by kappa3010
• 2,090 points
1,701 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
2,535 views
+1 vote
1 answer

How to convert a list of vectors with various length into a Data.Frame?

We can easily use this command as.data.frame(lapply(d1, "length< ...READ MORE

Apr 4, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,661 views
0 votes
1 answer

Concatenate 2 strings in R

You can use the paste() command: You can ...READ MORE

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

Find length of string in R

You can try nchar > nchar("fast") [1] 4 > set.seed(10) > ...READ MORE

Apr 17, 2018 in Data Analytics by DataKing99
• 8,250 points
1,107 views
0 votes
1 answer

How to replace NA with 0 using starts_with()

Well I could suggest various options such ...READ MORE

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

How to use a function to repeat a set of procedures on specific set of columns in a data frame?

You can parse the strings to symbols. ...READ MORE

Apr 3, 2018 in Data Analytics by kappa3010
• 2,090 points
1,613 views
0 votes
1 answer

How to create a list of Data frames?

Basically all we have to do is ...READ MORE

Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,339 views
0 votes
1 answer

What is the standard naming convention for the variables in R?

Use of period separator e.g. product.prices <- c(12.01, ...READ MORE

Apr 25, 2018 in Data Analytics by shams
• 3,670 points
652 views
0 votes
1 answer

Selecting a sublist with purrr

Yes, purrr does provide a package called ...READ MORE

Apr 4, 2018 in Data Analytics by Bharani
• 4,660 points
1,456 views
0 votes
1 answer

Is there any way to check for missing packages and install them in R?

There are 2 options: Either you can use ...READ MORE

Apr 17, 2018 in Data Analytics by nirvana
• 3,130 points
873 views
0 votes
1 answer

AUC for 3-Class prediction in R

Use type='probs' inside predict() function, so that ...READ MORE

Apr 4, 2018 in Data Analytics by Bharani
• 4,660 points
1,412 views
0 votes
1 answer

How do I find out what directory R has chosen to store packages?

.libPaths() // You can use this command ...READ MORE

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

How to prevent row names to be written to a file while using

Easily by: write.csv(df, "temp.csv", row.names=FALSE) READ MORE

Apr 20, 2018 in Data Analytics by DeepCoder786
• 1,720 points
706 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
790 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
776 views
0 votes
1 answer

Check if the object(variable) is defined in R

You can use the exists(): > exists("toFindUnknown") [1] FALSE > ...READ MORE

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

Reshape data from long to wide format

You can use the reshape function reshape(data, idvar ...READ MORE

Apr 17, 2018 in Data Analytics by nirvana
• 3,130 points
751 views
0 votes
1 answer

How to install an R package from source?

If you have your file located locally ...READ MORE

Apr 14, 2018 in Data Analytics by CodingByHeart77
• 3,750 points
912 views
0 votes
1 answer

Building Random Forest on a data-set comprising of missing(NA) values

You have two options, either impute the ...READ MORE

Apr 3, 2018 in Data Analytics by Bharani
• 4,660 points
1,382 views
0 votes
1 answer

How to merge data frames using joins?

You can use the merge function with ...READ MORE

Apr 12, 2018 in Data Analytics by kappa3010
• 2,090 points
948 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

Apr 6, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 9, 2020 by Gitika 1,182 views
0 votes
1 answer

Using "dplyr" to summarise multiple columns

You can use the "sumamrise_all()" function for ...READ MORE

Mar 27, 2018 in Data Analytics by Bharani
• 4,660 points
1,640 views
0 votes
1 answer

Get list of rownames as values after aggregating a dataframe

You can use reshape2 library: library(reshape2) data <- read.table(text="type ...READ MORE

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

Join list of data.frames using map() call

You can use Reduce set.seed(24) r1 <- map(c(5, 10, 15), ...READ MORE

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

How to apply list to a function which give data frame as output

If you use  tidyverse, you can use ...READ MORE

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

How to achieve pivot like data using tidyverse library in R?

You need not spread twice, if you ...READ MORE

Apr 4, 2018 in Data Analytics by kappa3010
• 2,090 points
1,082 views
0 votes
1 answer

How to drop data frame columns by name?

Easily you can do it: drops <- c("V2","V4") df1[ ...READ MORE

Apr 10, 2018 in Data Analytics by DeepCoder786
• 1,720 points
831 views
0 votes
1 answer

How can I use parallel so that it preserves the list of data frames

You can use pmap as follows: nc <- ...READ MORE

Apr 4, 2018 in Data Analytics by kappa3010
• 2,090 points
1,071 views
0 votes
1 answer

Plotting multiple graphs on the same page in R

If you want to plot 4 graphs ...READ MORE

Mar 27, 2018 in Data Analytics by Bharani
• 4,660 points
1,426 views
0 votes
1 answer

How to create excellent examples in R?

An excellent example must consist of the ...READ MORE

Apr 10, 2018 in Data Analytics by kappa3010
• 2,090 points

edited Apr 12, 2018 by kappa3010 760 views
0 votes
1 answer

Any built-in function to find mode

You can try out the below code ...READ MORE

Apr 14, 2018 in Data Analytics by kappa3010
• 2,090 points
582 views
0 votes
1 answer

With the help of tidyverse: how to rename a column to a variable name

With the help of Dplyr: rename function ...READ MORE

Apr 3, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Apr 3, 2018 by DeepCoder786 946 views
0 votes
1 answer

Left Join and Right Join using "dplyr"

The below is the code to perform ...READ MORE

Mar 27, 2018 in Data Analytics by Bharani
• 4,660 points
1,112 views
0 votes
1 answer

How to change mulitiple characters in a column to a date

Firstly we have to set dataf variable ...READ MORE

Apr 3, 2018 in Data Analytics by DeepCoder786
• 1,720 points
771 views
0 votes
1 answer

Hadoop Streaming job vs regular jobs?

In certain cases, Hadoop Streaming is beneficial ...READ MORE

Mar 22, 2018 in Data Analytics by kurt_cobain
• 9,350 points
896 views
0 votes
1 answer

Imputation in R

You can work with the "Hmisc" package, ...READ MORE

Mar 27, 2018 in Data Analytics by Bharani
• 4,660 points
519 views
0 votes
1 answer

webinar details to join the session

Session it got resolved READ MORE

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

VM with network settings in Virtual box

Dear Learner, We hope you are doing well. Please ...READ MORE

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

HIVE DATA LOADING ERROR

Dear Raghu, Hope you are doing great. It is ...READ MORE

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

Issue while running Oozie job

Dear Learner, Hope you are doing well. To overcome ...READ MORE

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

Big Data transformations with R

Dear Koushik, Hope you are doing great. You can ...READ MORE

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

How to sync Hadoop configuration files to multiple nodes?

Dear Raman, Hope you are doing great. Please accept ...READ MORE

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

mysql connection issue in Spark VM

Dear Saravana, Hope you are doing great. We would ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,570 points
973 views
+2 votes
1 answer

Need a hadoop engine in backend to run r server

Dear Koushik, Hope you are doing great. The hadoop ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,570 points
871 views