Trending questions in Data Analytics

0 votes
1 answer

data.frame vs matrix

Yes, both matrix and data.frame are multidimensional ...READ MORE

Apr 27, 2018 in Data Analytics by Bharani
• 4,660 points
778 views
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,488 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,644 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,180 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,269 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,103 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,422 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,221 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
469 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,293 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,335 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,312 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
697 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,240 points
696 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,034 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
396 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
512 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
582 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,175 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
612 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
568 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,484 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
528 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,060 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
467 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,740 points
623 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 919 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
655 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,054 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
642 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
880 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,205 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
801 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
791 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
473 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
371 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 510 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 761 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
867 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
523 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
389 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,390 points
614 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,610 points
1,620 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,610 points
1,327 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,610 points
1,213 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,610 points
1,114 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,610 points
798 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,610 points
779 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,610 points
775 views
0 votes
1 answer

Pig - Grunt shell

Dear Narayan, Hope you are doing great. You don't ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
714 views