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
712 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
962 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,068 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
427 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
389 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,402 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
486 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
804 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
506 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
665 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,359 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
783 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
513 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
455 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
416 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
545 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
401 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
662 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
322 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
369 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
374 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
517 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,781 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
365 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
391 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
507 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,130 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
599 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
770 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
603 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
781 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
764 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
416 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
436 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
387 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,896 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,065 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
346 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
612 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
690 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
545 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
523 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,228 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
420 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
505 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
702 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,224 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,318 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,299 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
629 views