Most answered questions in Data Analytics

0 votes
1 answer

What is a chi Squared value?

The chi-squared statistic is a single number that tells ...READ MORE

Nov 3 in Data Analytics by Cherukuri
• 31,840 points
22 views
0 votes
1 answer

R chart using plotly

Plot_ly example library(plotly) today <- Sys.Date() tm <- ...READ MORE

Nov 4 in Data Analytics by Cherukuri
• 31,840 points
26 views
0 votes
1 answer

Convert character to integer type - R

Use substring() function to extract value from ...READ MORE

Nov 3 in Data Analytics by Cherukuri
• 31,840 points
24 views
0 votes
1 answer

Aggregation of fields vs field value line chart in R

Of course, it can be done. Let ...READ MORE

Nov 3 in Data Analytics by Cherukuri
• 31,840 points
18 views
0 votes
1 answer

How to check row value of one column wrt another column?

Hi ratna, For suppose DF is the DataFrame ...READ MORE

Jul 25 in Data Analytics by anonymous
23 views
0 votes
1 answer

How to deploy shiny app to shinyapps.io?

There are 2 ways to deploy shiny ...READ MORE

Nov 4 in Data Analytics by Cherukuri
• 31,840 points
22 views
0 votes
1 answer

Add secondary axis as a dual axis in R plot

You can add a secondary axis in ...READ MORE

Nov 4 in Data Analytics by keerthi
101 views
0 votes
1 answer

Duplicate axis for a R plot

Add duplicate axis using dup.axis attribute like ...READ MORE

Nov 4 in Data Analytics by radha
41 views
0 votes
1 answer

Draw lines/plot without dataset - R

Hi @raghav, You can draw specific graphs only ...READ MORE

Jul 24 in Data Analytics by anonymous
37 views
0 votes
1 answer

Change the order of multiple legends in ggplot

Hi Radha, You can change the order of ...READ MORE

Jul 24 in Data Analytics by Cherukuri
• 31,840 points
360 views
0 votes
1 answer

How to put border for all legends together and separate borders for each legend in ggplot?

Hi Anitha, There are 2 functions used to ...READ MORE

Jul 24 in Data Analytics by Cherukuri
• 31,840 points
54 views
0 votes
1 answer

How to convert a continuous variable to discrete variable and vice versa in R?

Discretize function convert a continuous variable into ...READ MORE

Nov 4 in Data Analytics by rajeev
69 views
0 votes
1 answer

change the color for bars in geom_bar in ggplot

Hi @radha, You can have 2 types of ...READ MORE

Jul 24 in Data Analytics by Cherukuri
• 31,840 points
473 views
0 votes
1 answer

Change the order of legend values in a plot in R

@prardhana, Use scale_fill/color/size_discrete/contin....(labels = c()). compare both to see ...READ MORE

Nov 4 in Data Analytics by payal
48 views
0 votes
1 answer

Add custom lines/sentences within ggplot

Use geom_text along with position and text ...READ MORE

Nov 2 in Data Analytics by Cherukuri
• 31,840 points
21 views
0 votes
1 answer

plot a line chart along with point labels in the plot

Follow the below steps: 1. Create a ggplot ...READ MORE

Nov 2 in Data Analytics by anonymous
• 31,840 points
23 views
0 votes
1 answer

which to use fill or color to show colors in R plots?

The color attribute is only used for ...READ MORE

Nov 4 in Data Analytics by komal
22 views
0 votes
1 answer

Create a dual axis column/bar chart using ggplot in R

Add position = "stack" in geom_bar() function ...READ MORE

Nov 4 in Data Analytics by sindhu
89 views
0 votes
1 answer

Grouping/bining of variables using Rcmdr

@kriti, Select the data model, Go to ...READ MORE

Nov 4 in Data Analytics by rubini
32 views
0 votes
1 answer

Does R programming provide support to execute Curl

You can use the RCurl package and ...READ MORE

Jul 18 in Data Analytics by Zulaikha
• 870 points
50 views
+1 vote
1 answer
+1 vote
1 answer

How to use points?

Mack, please give us your registered email ...READ MORE

Jul 17 in Data Analytics by Prashanth
• 160 points
80 views
0 votes
1 answer

How to provide color to ggplot scatter chart depending on field value?

cyl is a continuous value field, so ...READ MORE

Nov 2 in Data Analytics by anonymous
• 31,840 points
22 views
0 votes
1 answer

How to save ggplots?

Hi you can save plots using ggsave() Code ...READ MORE

Jul 15 in Data Analytics by anonymous
• 31,840 points
33 views
0 votes
1 answer

How to edit the labels and limit if a plot using ggplot? - R

Add a limit to axis ticks using ...READ MORE

Nov 3 in Data Analytics by anonymous
• 31,840 points
21 views
0 votes
1 answer

How to filter only those rows with a condition in R?

Write R code as below temp = data ...READ MORE

Jul 15 in Data Analytics by anonymous
• 31,840 points
34 views
0 votes
1 answer

Dataset data type incorrect - R

You can assign datatypes for the field ...READ MORE

Jul 15 in Data Analytics by anonymous
42 views
0 votes
1 answer

Export the plot to a pdf or png - R

You need to close the device to ...READ MORE

Jul 15 in Data Analytics by anonymous
42 views
0 votes
1 answer

How to create a date variable in R?

Create a string with date notation as ...READ MORE

Jul 16 in Data Analytics by anonymous
25 views
0 votes
1 answer

Sort a field based on another field in R

Hi.. Just for sorting, you can use arrange ...READ MORE

Aug 29 in Data Analytics by Gups_1985
29 views
0 votes
1 answer

How to import and clean a text file into dataframe in R?

You can use readLines() or read.table() depending ...READ MORE

Jul 16 in Data Analytics by anonymous
34 views
0 votes
1 answer

Difference between summarise() and summarize() in R

summarise() and summarize() are synonyms. READ MORE

Sep 24 in Data Analytics by anonymous
204 views
0 votes
1 answer

Split plot into multiple plots corresponding to each value of the field in R

Use facet_grid() and pass the field to ...READ MORE

Nov 4 in Data Analytics by Cherukuri
• 31,840 points
23 views
0 votes
1 answer

create data.frame with random numbers in R

First create a matrix with random numbers ...READ MORE

Sep 23 in Data Analytics by Debasmita Das
234 views
0 votes
1 answer

What is set.seed() in R?

Let me explain in simple words, set seed ...READ MORE

Jul 9 in Data Analytics by anonymous
• 31,840 points
53 views
0 votes
1 answer

Convert data.frame object into character vector/list

Hi, it is possible to store them ...READ MORE

Jul 9 in Data Analytics by anonymous
• 31,840 points
45 views
0 votes
1 answer

Error in .External.graphics - R

You need to install arulesViz package,and load ...READ MORE

Jul 8 in Data Analytics by sindhu
36 views
0 votes
1 answer

How to add create a box plot with categorical columns?

One way is to convert to factor ...READ MORE

Jul 4 in Data Analytics by anonymous
• 31,840 points
61 views
0 votes
1 answer

% of nulls for each column in the dataset - R

Use code as below -  lapply(air,function(x) { length(which(is. ...READ MORE

Jul 4 in Data Analytics by anonymous
• 31,840 points
37 views
0 votes
1 answer

fetch all rows with null values in dataframe or dataset - R

Use below code -  which(is.na(air)) is.na() will return a boolean ...READ MORE

Jul 4 in Data Analytics by anonymous
• 31,840 points
29 views
0 votes
1 answer

Joining 2 vectors into 1 variable - R

A small trick that you can do ...READ MORE

Jul 4 in Data Analytics by anonymous
• 31,840 points
25 views
0 votes
1 answer

Read data from various csv and store it in one dataframe

Use rbind() to join both data frames ...READ MORE

Jul 4 in Data Analytics by anonymous
• 31,840 points
32 views
0 votes
1 answer

Replace columns containing row id into a constant value - R

Create a vector of the list of ...READ MORE

Jul 4 in Data Analytics by Cherukuri
• 31,840 points
19 views
0 votes
1 answer

Difference between [[1]] and [1] in R Programming

Hey Latha, The difference between them is that ...READ MORE

Jun 28 in Data Analytics by anonymous
• 31,840 points
43 views
0 votes
1 answer

How to replace all occurrences of a character in a character column in a data frame in R

If you used sub() to replace the ...READ MORE

Jun 28 in Data Analytics by anonymous
• 31,840 points
85 views
0 votes
1 answer

substring of last N characters in R

Use below code -  If the elements within ...READ MORE

Jul 4 in Data Analytics by anonymous
• 31,840 points
29 views
0 votes
1 answer

How can I figure out if an R program was executed from the command line?

Try this code: if (interactive()) { print('Hello ...READ MORE

Jun 28 in Data Analytics by Zulaikha
• 870 points
30 views
0 votes
1 answer

R programming: Data Categorization

Try this: wineData$taste <- NA ...READ MORE

Jun 28 in Data Analytics by Zulaikha
• 870 points
23 views
0 votes
1 answer

How to change the datatype of any field in an external dataset in R?

Hi Anand, Try as below - class(dataset/dataframe$col_name) <- ...READ MORE

Jun 27 in Data Analytics by anonymous
• 31,840 points
37 views
0 votes
1 answer

Show a list of all variables in R

Hi Swathi, You can use ls() to list ...READ MORE

Jun 27 in Data Analytics by Cherukuri
• 31,840 points
49 views