Trending questions in Data Analytics

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,356 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,512 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,866 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,574 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,345 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,781 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,729 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
739 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,655 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
958 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,531 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
1,174 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
952 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
1,104 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
783 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
649 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
858 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
868 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
863 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
873 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,282 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,718 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
1,026 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,275 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,206 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,143 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,513 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
904 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 850 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
664 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 1,043 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,343 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
940 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
1,090 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
569 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,956 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,740 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,531 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,494 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,171 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,108 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
986 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
1,057 views
+1 vote
1 answer

R query and Data Science

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

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

How to Share the files from local system Mac Book to Edureka VM

Hey Satya, Hope you're doing great. Would you please ...READ MORE

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

Shut down the VM and restarted

Dear Raghu, Please let us know are you ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,570 points
1,013 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,570 points
1,004 views
+3 votes
1 answer

Hortonworks Setup for Virtualbox

Dear Learner, Please go to the below link ...READ MORE

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

Accessing Remote Server

Hey Sudhanshu, Hope you're doing great. It was pleasure ...READ MORE

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

Related to cluster topic

Hi Learner, Hope you are doing well, Please find ...READ MORE

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