Trending questions in Data Analytics

+1 vote
3 answers

Number of missing values in dataset

Try this, lapply(airquality, function(x) { sum(is.na(x)) }) READ MORE

Aug 7, 2019 in Data Analytics by anonymous
3,859 views
+1 vote
1 answer

Error saying cannot open file 'file.pdf' when trying to save a plot in ggplot

You could try adding the following line ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
7,572 views
0 votes
2 answers

How to count unique values in R?

You can try this way, as.data.frame(v) %>% count(v) READ MORE

Aug 8, 2019 in Data Analytics by anonymous
6,283 views
+1 vote
1 answer

R error: Unused arguments

 invoke REBMIX by trying this: REBMIX[[i, j, k]] ...READ MORE

Dec 14, 2018 in Data Analytics by Sophie may
• 10,610 points
6,043 views
+2 votes
1 answer

Error saying object not found in R

Change your link_addr to linkAddr and it ...READ MORE

Dec 11, 2018 in Data Analytics by Maverick
• 10,840 points
6,057 views
+1 vote
2 answers

Import csv excel file in R

Hi. Check out your filename and the ...READ MORE

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

R programming: leap years calculation

Here's a small modification to your code, ...READ MORE

Feb 20, 2019 in Data Analytics by Sophie may
• 10,610 points
2,886 views
0 votes
0 answers

R programming error: Deleting the right column

Hi, I'm new to R programming. Below ...READ MORE

Apr 16, 2019 in Data Analytics by Sophie may
• 10,610 points
465 views
0 votes
1 answer

R Programming - Unable to read files

This is happening because you're not returning ...READ MORE

Apr 16, 2019 in Data Analytics by Tyrion anex
• 8,700 points
396 views
+1 vote
4 answers

Which is the best r package used to scrap web pages?

You can use rvest or Rselenium package. READ MORE

Feb 13, 2019 in Data Analytics by Marv
842 views
0 votes
1 answer

Error saying "Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ"

Make sure is a factor time <- as.factor(c("pm", ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
7,106 views
+1 vote
1 answer

Installing JQ on Mac by command-line

On a mac, any application can be ...READ MORE

Dec 6, 2018 in Data Analytics by Shubham
• 13,490 points

edited Dec 12, 2018 by Shubham 5,832 views
0 votes
1 answer

R programming: drc package error

You need two variables, (x and y). ...READ MORE

Apr 5, 2019 in Data Analytics by Sophie may
• 10,610 points
653 views
0 votes
1 answer

Error saying "Error in parse(file, keep.source = FALSE, srcfile = src, encoding = enc) : " in shiny R

The error means you’re missing out on ...READ MORE

Nov 29, 2018 in Data Analytics by Maverick
• 10,840 points
6,163 views
+1 vote
2 answers

Stacked barchart - R programming with ggplot2

Use position = stack inside geom_bar() ggplot(mydata, aes(x = ...READ MORE

Aug 23, 2019 in Data Analytics by anonymous
• 33,030 points
688 views
+1 vote
1 answer

Error saying "Error in map_df(1, function(i) { : could not find function "map_df"" in R

Make sure you’ve installed the package purr ...READ MORE

Nov 21, 2018 in Data Analytics by Maverick
• 10,840 points
6,297 views
0 votes
2 answers

what are the different ways of getting/reading data into for cleaning

Most used functions for reading or extracting ...READ MORE

Aug 23, 2019 in Data Analytics by anonymous
• 33,030 points
488 views
+1 vote
1 answer

Error saying "ERROR: Error sourcing C:\Users\ali\AppData\Local\Temp\Rtmp8iTRBM\file54f8276958b3"

Seems like there is a problem with ...READ MORE

Nov 29, 2018 in Data Analytics by Maverick
• 10,840 points
5,884 views
+1 vote
2 answers
0 votes
1 answer

R programming: SQL Syntax

R has a library called, sqldf to do ...READ MORE

Apr 5, 2019 in Data Analytics by Sophie may
• 10,610 points
315 views
0 votes
1 answer

Error saying "no applicable method for 'meta' applied to an object of class" when trying to create TermDocumentMatrix

Heyy @Hannah, the following line of code ...READ MORE

Nov 6, 2018 in Data Analytics by Kalgi
• 52,360 points
6,778 views
0 votes
1 answer

R programming error

Loop 1: the value of speed is ...READ MORE

Apr 3, 2019 in Data Analytics by Tyrion anex
• 8,700 points
367 views
+1 vote
1 answer

How to calculate relative risk in R language?

The risk can be calculated by using ...READ MORE

Feb 20, 2019 in Data Analytics by Sophie may
• 10,610 points
2,055 views
0 votes
1 answer

Turn values into scientific notation in R

Consider the below vector: a<-c(0.1324,0.0001234,234.21341324,09.324324) You can convert it ...READ MORE

Jul 19, 2018 in Data Analytics by DataKing99
• 8,240 points
11,370 views
0 votes
1 answer

Python : Cannot Import Data using Pandas

So< if your error says: ...READ MORE

Dec 7, 2018 in Data Analytics by Upasana
• 8,620 points
5,236 views
+1 vote
1 answer

R Programming: Using iteration value to change field names

Remove the first and last column from ...READ MORE

Mar 26, 2019 in Data Analytics by Sophie may
• 10,610 points
510 views
0 votes
1 answer

How to split strings in R?

You can use the  strsplit method to do ...READ MORE

Mar 30, 2019 in Data Analytics by Sophie may
• 10,610 points
372 views
0 votes
0 answers

how does 1=1 helps when joining 2 tables in sql?

Mar 29, 2019 in Data Analytics by anonymous
288 views
+1 vote
2 answers

How to count the number of elements with the values in a vector?

Use dplyr function group_by(). > n = as.data.frame(num) > ...READ MORE

Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
4,578 views
0 votes
3 answers

Can a C program be written in R programming language?

If you have a algorithm you can ...READ MORE

Apr 9, 2019 in Data Analytics by anonymous
1,644 views
+2 votes
4 answers

Which tool Should I learn first Tableu or SAS

Hello I think it will be very much ...READ MORE

Mar 13, 2019 in Data Analytics by MrBoot
• 1,190 points
2,203 views
+1 vote
3 answers

What is logistic regression?

Logistic regression is analysis to conduct when ...READ MORE

Aug 7, 2019 in Data Analytics by anonymous
1,500 views
+1 vote
1 answer

R programming: For graphics

Use the bquote to write the expression and place ...READ MORE

Mar 16, 2019 in Data Analytics by Tyrion anex
• 8,700 points
382 views
0 votes
0 answers

How to use the where clause in R programming?

I'm trying to implement a where clause ...READ MORE

Dec 24, 2018 in Data Analytics by Sophie may
• 10,610 points
3,966 views
0 votes
1 answer

Error in shiny R "Warning: Error in read.table: 'file' must be a character string or connection"

Your if statement in the server.R is ...READ MORE

Dec 5, 2018 in Data Analytics by Maverick
• 10,840 points
4,728 views
+1 vote
1 answer

Calculating relative risks in R

You can calculate the relative risk as  ...READ MORE

Mar 16, 2019 in Data Analytics by Tyrion anex
• 8,700 points
362 views
0 votes
1 answer

R programming error: RODBC

You can perform quasi-perl-style string interpolation using ...READ MORE

Mar 6, 2019 in Data Analytics by Sophie may
• 10,610 points
757 views
0 votes
1 answer

Negative Binomial Distribution in R Programming

You can try this: pnbinom(3,2,0.5) sum(dnbinom(0:3,2,0.5)) Here's the output: > pnbinom(3,2,0.5) [1] ...READ MORE

Mar 5, 2019 in Data Analytics by Tyrion anex
• 8,700 points
777 views
0 votes
1 answer

R Programming: Perform negative binomial distribution

Try this: pnbinom(3,2,0.5) sum(dnbinom(0:3,2,0.5)) This will give the following output: > ...READ MORE

Mar 12, 2019 in Data Analytics by Sophie may
• 10,610 points
497 views
+1 vote
1 answer

R programming error: sum of products

Best soln is to integrate R linear algebra: > ...READ MORE

Mar 6, 2019 in Data Analytics by Sophie may
• 10,610 points
595 views
0 votes
3 answers

What is Linear Regression?

linear regression is useful for finding relationship ...READ MORE

Aug 7, 2019 in Data Analytics by nikita
1,156 views
+1 vote
1 answer

R programming: Finding closest pair

The dist() function will help you find the ...READ MORE

Mar 5, 2019 in Data Analytics by Tyrion anex
• 8,700 points
595 views
+1 vote
1 answer

R programming: Classifying wine dataset

Run the below code, it should work: wineData$taste ...READ MORE

Feb 27, 2019 in Data Analytics by Sophie may
• 10,610 points
755 views
+1 vote
4 answers

Python vs. R for data science

I would say both Python and R ...READ MORE

Aug 1, 2019 in Data Analytics by briny
1,547 views
+1 vote
1 answer

R Programming: Market Basket Analysis Error

The basket.sorted() has less than 5 rules. Refer ...READ MORE

Feb 12, 2019 in Data Analytics by Sophie may
• 10,610 points
1,218 views
+1 vote
1 answer

How can I use which() function in R ?

which() function determines the position of elements ...READ MORE

Sep 25, 2018 in Data Analytics by Daisy
• 8,120 points
7,233 views
+1 vote
1 answer

Error when trying to convert data frame into a csv file in R

If packages.csv file is open on your ...READ MORE

Nov 21, 2018 in Data Analytics by Kalgi
• 52,360 points
4,688 views
+1 vote
2 answers

Different data structures in R

The different data types in R are ...READ MORE

Aug 26, 2019 in Data Analytics by anonymous
• 33,030 points
1,174 views
+1 vote
3 answers

%>% What are these symbols/characters used for in R?

%>% is called a pipe. The process ...READ MORE

Aug 7, 2019 in Data Analytics by anonymous
797 views
0 votes
1 answer

R Programming: Finding items with exceptional sequence

Here's a code that will help with ...READ MORE

Feb 27, 2019 in Data Analytics by Sophie may
• 10,610 points
405 views