Most answered questions in Data Analytics

0 votes
1 answer

How to convert a dataframe into json data?

Hi, kalyan. Use toJSON function from jsonlite package. ...READ MORE

Sep 24, 2019 in Data Analytics by Cherukuri
• 33,030 points
2,177 views
0 votes
1 answer

Differences between html_nodes( ) and html_node( )?

Pallava, both the functions return nodes from ...READ MORE

Sep 17, 2019 in Data Analytics by rajeev
1,905 views
0 votes
1 answer

Read table from webpage and convert it into dataframe

Hi Kalyan, Use html_table to create tables from ...READ MORE

Sep 17, 2019 in Data Analytics by prajwal
1,368 views
0 votes
1 answer

help with calculation

Hi Karthik, use pmap( ) to find ...READ MORE

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

How to use mailR package?

Hi Prarthana, Install mailR and load the package. install.packages("mailR", ...READ MORE

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

provide a delay to call function in r

Hi, Mehareen slowly() takes a function and modifies ...READ MORE

Aug 30, 2019 in Data Analytics by anonymous
• 33,030 points
406 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
592 views
0 votes
1 answer

R - convert tree to nested list

Hi Akshay, To convert data.tree structure to a list-of-list ...READ MORE

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

How to create a tree like structure from R list/vector?

Hi, puja. Use below function to create a ...READ MORE

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

Convert hclusters to tree in R

Hi Kalyan, 1. Create hcluster using hclust for example, object <- ...READ MORE

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

plot trees in R

Hi, Vijay. You can create trees using different ...READ MORE

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

Create a tree model in R from data.frame?

See the below example to understand how ...READ MORE

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

Simulation of a stochastic processes with drift

Check out below code. It's an example to ...READ MORE

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

What are the different ways of writing into file from R?

Hi Payal, These are the ways to write text ...READ MORE

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

different ways of reading text files in R?

Hi Payal, These are the ways to read ...READ MORE

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

How to set choices of inputs within server function in shiny app?

@Kajal, Use renderUI function to add input elements ...READ MORE

Oct 28, 2019 in Data Analytics by anonymous
• 33,030 points
405 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
559 views
0 votes
1 answer

Convert markdown pages into interactive shiny apps.

Hi, Follow the below steps: 1. Add shiny runtime ...READ MORE

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

How to modify column values using the same column without duplicating column?

Hi, Use mutate(). returns selected columns after modifying the ...READ MORE

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

How can I add line to show mean for each barplot, not for all dataset?

Hey ranjith,  Use geom_hline() function to add reference lines ...READ MORE

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

Error: package or namespace load failed for ‘ggplot2’ - R

Radha, Try restarting the session. the same ...READ MORE

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

K Means using elbow method

Elbow method allows the user to know ...READ MORE

Aug 26, 2019 in Data Analytics by anonymous
• 33,030 points
2,618 views
0 votes
1 answer

Importance of fields in the dataset in randomforest

Use Function importance() which defines the importance ...READ MORE

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

compare actual values vs predicted values in decision tree

You can compare test data using table() ...READ MORE

Aug 25, 2019 in Data Analytics by Cherukuri
• 33,030 points
2,655 views
0 votes
1 answer

How to see the tree after making decision tree?

Hey Bindhu, If you have created a decision tree using ...READ MORE

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

R vs Tableau data visualization.

@Yash, This is a requirement based question. ...READ MORE

Oct 28, 2019 in Data Analytics by anonymous
• 33,030 points
7,724 views
0 votes
1 answer

What are the top packages in R for data visualization?

These are the top R packages used ...READ MORE

Aug 26, 2019 in Data Analytics by Cherukuri
• 33,030 points
689 views
0 votes
1 answer

Add multiple sub plots within same panel.

Hi, Karthi The subplot() function in plotly provides ...READ MORE

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

How to add tooltips to ggplot object?

@ashish, you can use ggplotly package to ...READ MORE

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

How to convert a ggplot to plotly object?

Hi, John, There is a package called ggplotly ...READ MORE

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

Can you use 2 dataframes in one ggplot?

Hi, Archana You can use only one data ...READ MORE

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

Filter with nested if condition in R

Hi Raksha, Use the filter function to filter ...READ MORE

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

How to use plyr and dplyr functions inside one source file?

Hi, Lakshmi, Use dplyr::function( ) or plyr::function( ). Since ...READ MORE

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

Reverse the stack order in a stacked bar chart

Hi kriti, Use below code inside geom_bar function. position ...READ MORE

Aug 26, 2019 in Data Analytics by anonymous
• 33,030 points
7,337 views
0 votes
1 answer

annotate marks in chart/ggplot

One way is to use ggrepel package. ...READ MORE

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

Contingency tables in R

You can build 2 types of contingency ...READ MORE

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

R - Bar chart (bivariate/multivariate Analysis)

The bivariate analysis could be shown in ...READ MORE

Aug 22, 2019 in Data Analytics by anonymous
• 33,030 points
5,137 views
0 votes
1 answer

Create random numbers in R

There are many ways to create a ...READ MORE

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

Drop rows on condition from dataframe/dataset

Use code as below dataframe[which(dataframe$sales >= median(dataframe$sales)),] or ...READ MORE

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

How to hide/show tabs in shiny app in R?

Hi, Radha One way is to use hidetab ...READ MORE

Aug 22, 2019 in Data Analytics by anonymous
• 33,030 points
5,989 views
0 votes
1 answer

Return the current working directory in R

Use below command to fetch the current ...READ MORE

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

Search elements in a vector or list

There are multiple functions and operators that can ...READ MORE

Aug 22, 2019 in Data Analytics by Cherukuri
• 33,030 points
403 views
0 votes
1 answer

Check palindrome or not in R

Hi, I found this code simple and easy. is_palindrome ...READ MORE

Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
6,639 views
0 votes
1 answer

R Error in matrix(if (is.null(value)) logical() else value, nrow = nr, dimnames = list(rn, : length of 'dimnames' [2] not equal to array extent

Hi Shiva, You need to provide a matrix ...READ MORE

Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
12,736 views
0 votes
1 answer

What is the difference between corrgram and corrplot?

Differences - Input - corrgram takes a dataset ...READ MORE

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

R - Create a repetitive list from a smaller length vector to fit into dataframe

Hi Nithin, rep() is used to replicate a ...READ MORE

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

How to crop white space around image(Magick) in R?

@sreenivas, Use image_trim to crop the extra part of ...READ MORE

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

How to format output in shiny app?

You can use sprintf() to define the ...READ MORE

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

R Error: Recommender method UCBF not implemented for data type realRatingMatrix

Kalyan, Try changing method from UBCF to POPULAR. train ...READ MORE

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

R Shiny Error: no applicable method for 'filter_' applied to an object of class "c('reactiveExpr','reactive')"

The error could be because of using reactive ...READ MORE

Aug 21, 2019 in Data Analytics by Cherukuri
• 33,030 points
8,477 views