Most answered questions in Data Analytics

0 votes
1 answer

Changing variable values using R programming

This should work: df$symbol <- as.character(df$symbol) df$symbol[df$symbol == "ABCD.BO"] ...READ MORE

May 27, 2019 in Data Analytics by Zulaikha
• 910 points
703 views
0 votes
1 answer

What does the sink function do in R?

sink diverts R output to a connection ...READ MORE

May 24, 2019 in Data Analytics by Chandu
953 views
0 votes
1 answer

Unable to install TA-Lib on Pycharm

It took me a while to solve ...READ MORE

May 15, 2019 in Data Analytics by Sophie may
• 10,610 points
5,038 views
0 votes
1 answer

R programming error: Not enough Java heap space

Try this, it worked for me: options(java.parameters="-Xmx4000m&q ...READ MORE

May 15, 2019 in Data Analytics by Tyrion anex
• 8,700 points
421 views
0 votes
1 answer

Does R provide support for Julia?

The RJulia package is provided by R programming. ...READ MORE

May 15, 2019 in Data Analytics by Tyrion anex
• 8,700 points
384 views
0 votes
1 answer

R programming: Reading a table in R

Try this code: dat <- read.table("~/data/data.txt", quote="\"", ...READ MORE

May 13, 2019 in Data Analytics by Sophie may
• 10,610 points
1,398 views
0 votes
1 answer

R programming error — twitteR OAuthFactory object

Make sure you have installed the required ...READ MORE

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

Calculating quantiles in R.

You can follow this code: y <- rnorm(100) ...READ MORE

May 2, 2019 in Data Analytics by Tyrion anex
• 8,700 points
795 views
0 votes
1 answer

R programming: Emacs mode

You can go through the ESS documentation ...READ MORE

May 2, 2019 in Data Analytics by Tyrion anex
• 8,700 points
495 views
0 votes
1 answer

R programming: Linear Equation

Use expand.grid to get all possible combinations ...READ MORE

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

R Programming: Twitter OAuthFactory error

Have you installed 'ROAuth' and 'RCurl' packages? ...READ MORE

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

How to run a file with .r extension?

Follow the below command: C:\Program Files\R\R-3.1.1\bin\Rscript.e ...READ MORE

Apr 30, 2019 in Data Analytics by Tyrion anex
• 8,700 points
776 views
0 votes
1 answer

R programming: Using Caret package to implement Random Forest

You can check out the official docs ...READ MORE

Apr 30, 2019 in Data Analytics by Tyrion anex
• 8,700 points
506 views
0 votes
1 answer

R Programming: MS Residual functions

Here's an example, you can try this ...READ MORE

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

How to start your journey with Data Analytics

Since you're new to the field, I'd ...READ MORE

Apr 25, 2019 in Data Analytics by Vardhan
• 13,190 points
403 views
0 votes
1 answer

R programming: Merging in R Programming

You can merge the two data frames ...READ MORE

Apr 24, 2019 in Data Analytics by Sophie may
• 10,610 points
541 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
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
654 views
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

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
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
+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
511 views
0 votes
1 answer

R programming: Naming the output file using a variable

Use the paste command: write.csv(max.hsi, paste0("Index_", i,".csv ...READ MORE

Mar 26, 2019 in Data Analytics by Sophie may
• 10,610 points
5,748 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
+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
383 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
0 votes
1 answer

How to run R code using JAVA program?

You're trying to call an external application. ...READ MORE

Mar 12, 2019 in Data Analytics by Sophie may
• 10,610 points
5,112 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
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
+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
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
+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
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
+1 vote
1 answer

R programming: Graphs

Try this: ggplot(dfc, aes(x=x, y=y, colour=f, fill=f, ymin=y-se, ...READ MORE

Feb 21, 2019 in Data Analytics by Tyrion anex
• 8,700 points
432 views
+1 vote
1 answer

R Programming: regexpr error

The below code will help: gregexpr("D", x) # [[1]] # ...READ MORE

Feb 21, 2019 in Data Analytics by Tyrion anex
• 8,700 points
381 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
+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,056 views
+1 vote
1 answer

R programming: Graphic commands

For this purpose, make use of the ...READ MORE

Feb 20, 2019 in Data Analytics by Tyrion anex
• 8,700 points
341 views
+1 vote
1 answer

R programming: Monte Carlo Simulation

You can use the sample_n from dplyr to select ...READ MORE

Feb 20, 2019 in Data Analytics by Tyrion anex
• 8,700 points
610 views
+1 vote
1 answer

R programming: How to subset data and plot graphs in R?

You can create a grouping variable depending ...READ MORE

Feb 18, 2019 in Data Analytics by Tyrion anex
• 8,700 points
682 views
+1 vote
1 answer

R programming: Generating random frequencies

Follow this, it might help you: Produce sample ...READ MORE

Feb 18, 2019 in Data Analytics by Tyrion anex
• 8,700 points
532 views
+1 vote
1 answer

Performing t.test in R programming

You can refer the following: Suppose these are ...READ MORE

Feb 12, 2019 in Data Analytics by Sophie may
• 10,610 points
520 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

Execute a shell script that in turn runs a Python program, followed by an R program

You have two FROM commands in your ...READ MORE

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

R Programming: Running multiple sub-strings

Instead of using the substr() try with ...READ MORE

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

R programming: Linear programming problems

The documentation for the lp package provides ...READ MORE

Feb 4, 2019 in Data Analytics by Tyrion anex
• 8,700 points
695 views
+1 vote
1 answer

Parallel programming In R using GPU

Check out the CRAN Task View on High-Performance ...READ MORE

Feb 4, 2019 in Data Analytics by Tyrion anex
• 8,700 points
1,210 views
+1 vote
1 answer

How to create a 2D array of vectors of different lengths in R programming?

You can try making a list of matrices ...READ MORE

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

How to remove HTML tags from string in R Programming?

Try this simple code to remove the <br ...READ MORE

Feb 1, 2019 in Data Analytics by Sophie may
• 10,610 points
4,275 views
0 votes
1 answer

Modular programming in R language

R provides support to create subscripts. For ex. ...READ MORE

Jan 31, 2019 in Data Analytics by Tyrion anex
• 8,700 points
625 views