Trending questions in Data Analytics

0 votes
1 answer

Clean and standardize words using R

You might want to checkout the stringdist package, e.g.: library(stringdist) toMatch ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
612 views
+1 vote
1 answer

How to standardize rows when cleaning data?

The goal of this step is to ...READ MORE

Nov 14, 2018 in Data Analytics by Maverick
• 10,840 points
537 views
0 votes
1 answer

R programming logic

Use gsub to match the substring that we want ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,840 points
486 views
0 votes
1 answer

Manipulate character string using gsub() and perform multivariate data cleaning efficiently in R

gsubfn is perfect for this task: library(gsubfn) as.vector(sapply(gsubfn("[A-Z]", list(B="* 1", ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
605 views
0 votes
1 answer

When I pars xml (scraping Google RSS) national symbol (Cyrillic) is breaking

try this: url.tmp <- "http://news.google.ru/news?hl=ru&gl=ru&q=" symbol <- "быть OR ...READ MORE

Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
492 views
0 votes
1 answer

Python or R – Which one would you prefer for text analytics?

We will prefer Python because of the ...READ MORE

Aug 20, 2018 in Data Analytics by Abhi
• 3,720 points
4,246 views
+1 vote
1 answer

R errors in eclipse

remove import android.R Then clean and rebuild project. R ...READ MORE

Nov 8, 2018 in Data Analytics by Maverick
• 10,840 points
729 views
0 votes
1 answer

Error saying " "solarspectrum3" not resolved from current namespace (SolarSpectrum)"

the call to .C() or .Call() needs to be amended in ...READ MORE

Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
590 views
+1 vote
1 answer

How to read R errors through JRI

You'll be able to perform those R-Expressions, ...READ MORE

Nov 8, 2018 in Data Analytics by Maverick
• 10,840 points
704 views
0 votes
1 answer

How do I copy an excel file to my Rconsole with all the missing values?

You can use read.table function in the ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,840 points
390 views
+1 vote
1 answer

How to give line numbers in errors in R?

Use the following command: options(show.error.locations = TRUE) READ MORE

Nov 8, 2018 in Data Analytics by Maverick
• 10,840 points
697 views
0 votes
1 answer

How to remove certain character from a vector

We can use sub to remove the * by specifying fixed = ...READ MORE

Nov 14, 2018 in Data Analytics by Maverick
• 10,840 points
479 views
0 votes
1 answer

What is active binding in R programming

Active bindings in R are much like ...READ MORE

Oct 30, 2018 in Data Analytics by Maverick
• 10,840 points
1,111 views
0 votes
1 answer

Getting rid of extra periods - cleaning data using R

Just try removing the periods using sub ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
497 views
0 votes
1 answer

How can I convert a factor variable to numeric in R ?

A factor variable can be converted to ...READ MORE

Sep 19, 2018 in Data Analytics by shams
• 3,670 points
2,904 views
+1 vote
1 answer

R has something called lazy evaluation, what does that mean?

Let me explain this with an example. ...READ MORE

Oct 31, 2018 in Data Analytics by Kalgi
• 52,360 points
1,010 views
0 votes
1 answer

Editing the plots/visualization on a timeline.

find the ten lowest total cash flows. ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,840 points
349 views
0 votes
1 answer

I'm trying to figure out a formula to be able to divide the max and min number inside the intervals.

#One possible solution is to split by ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,840 points
337 views
0 votes
1 answer

Cleaning a Data Frame Using Regexp in R

The simplest way: library(dplyr) library(stringi) df %>% mutate(NUMERO_APPEL.fix = ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
457 views
+1 vote
3 answers

Integration of Google Collaboratory with github

You can use SSH protocol to connect ...READ MORE

Aug 7, 2018 in Data Analytics by Kalgi
• 52,360 points
2,798 views
0 votes
1 answer

Look for certain values from not cleaned data

First see what rows meet t$ps04==1 & t$rectyp==1. ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
416 views
0 votes
1 answer

Clean a set of data using R

Try this: NCM <- c(5,1,3,2,4) Mbrand <- c(1,5,3,4,2) fac<-factor(Mbrand, levels ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
414 views
0 votes
1 answer

Error saying "R Error: package ‘lme4’ required by ‘pbkrtest’ could not be found"

Windows 7, revo R 3.2.3 construct a directory ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
563 views
0 votes
1 answer

Cleaning data using R

Try something like this: text1='"id","gender","age","category1","category2","category3","category4","category5","category6","category7","category8","category9","category10" 1,"Male",22,"movies","music","travel","cloths","grocery",,,,, 2,"Male",28,"travel","books","movies",,,,,,, 3,"Female",27,"rent","fuel","grocery","cloths",,,,,, 4,"Female",22,"rent","grocery","travel","movies","cloths",,,,, 5,"Female",22,"rent","online-shopping","utiliy",,,,,,,' d1 <- read.table(text=text1, sep=",", ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
375 views
0 votes
1 answer

How do I import document files in R programming

Try the following: read.table("~/SMSSpamCollection", header=TRUE, sep="\t") Change "~/" to the "ptah/to/your/file/" Mess around ...READ MORE

Nov 5, 2018 in Data Analytics by Kalgi
• 52,360 points
698 views
+1 vote
1 answer

What is dynamic scoping in R?

Under dynamic scope, if an “unknown” variable ...READ MORE

Nov 2, 2018 in Data Analytics by Maverick
• 10,840 points
785 views
+1 vote
1 answer

How do i send R errors from console to standard java output?

R offers a command to save its ...READ MORE

Nov 8, 2018 in Data Analytics by Maverick
• 10,840 points
485 views
+1 vote
1 answer

Error saying " ERROR: unused argument (InformationCriterion = InformationCriterion[j]) "

Brief invoke REBMIX as : REBMIX[[i, j, k]] ...READ MORE

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

How to find out which version of R is loaded

You can use sessionInfo() to accomplish that. > sessionInfo() R version ...READ MORE

Nov 8, 2018 in Data Analytics by Maverick
• 10,840 points
459 views
+1 vote
1 answer

Unload package without restarting R

You can use the unloadNamespace command, as ...READ MORE

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

Mongodb text search in R programming

this example works for me library(mongolite) m <- mongo(db ...READ MORE

Nov 2, 2018 in Data Analytics by Maverick
• 10,840 points
746 views
+1 vote
1 answer

Display errors in sweave

s Shane suggests, use <<echo=TRUE,eval=FALSE>> for the code ...READ MORE

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

k means vs KNN

K-means clustering is basically an unsupervised clustering ...READ MORE

Oct 30, 2018 in Data Analytics by kurt_cobain
• 9,390 points
814 views
0 votes
2 answers

Sorting algorithms available in R

R basically supports two different types of ...READ MORE

Aug 17, 2018 in Data Analytics by zombie
• 3,790 points
4,319 views
+1 vote
1 answer

Plotting standard error in R

You can probably use dot plot for ...READ MORE

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

R installation errors on ubuntu 14.04

 In /etc/apt/sources.list or one of the /etc/apt/sources.list.d/*.listreplace xenial with trusty and run apt-get update. After ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
418 views
0 votes
1 answer

If-else in R code

x <- c(.5, 0.2, 2, 3.4, 0.4, ...READ MORE

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

What is lexical scoping in R

Under lexical scoping rules, if an “unknown” ...READ MORE

Nov 2, 2018 in Data Analytics by Maverick
• 10,840 points
698 views
+1 vote
1 answer

Sklearn GaussianMixture

The GaussianMixture object implements the expectation-maximization (EM) ...READ MORE

Oct 30, 2018 in Data Analytics by Priyaj
• 58,090 points
779 views
+1 vote
1 answer

How to check if object is defines in R?

You can use the exists function for ...READ MORE

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

What are R tools

Rtools provides a toolchain for Windows platform ...READ MORE

Oct 26, 2018 in Data Analytics by Kalgi
• 52,360 points
987 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
10,629 views
0 votes
1 answer

Sort function in R

> set.seed(1) > s <- sample(seq(8, 20, by ...READ MORE

Nov 5, 2018 in Data Analytics by Kalgi
• 52,360 points
541 views
+1 vote
1 answer

R programming Web Scraping

Try something like this: library(rvest) library(rvest) library(tidyverse) urls <- read_html("http://dk.farnell.com/c/office-computer-networking-products/prl/results/") pag <- ...READ MORE

Oct 29, 2018 in Data Analytics by Maverick
• 10,840 points
800 views
+1 vote
1 answer

Translate curl into R program

Use the RCurl library, its always a ...READ MORE

Nov 2, 2018 in Data Analytics by Maverick
• 10,840 points
627 views
+1 vote
1 answer

Try catch in R

The most straightforward way is to wrap ...READ MORE

Nov 6, 2018 in Data Analytics by Kalgi
• 52,360 points
444 views
+1 vote
1 answer

an error occurred" because rows do not match when trying to use lm to perform an ANOVA test

Maybe you could do something like this. ...READ MORE

Nov 2, 2018 in Data Analytics by Maverick
• 10,840 points
608 views
+1 vote
1 answer

Downloading an image using R Programming

Try this: url2 ...READ MORE

Nov 2, 2018 in Data Analytics by Maverick
• 10,840 points
605 views
0 votes
1 answer

Error saying "Error in source("myfirst.R") : myfirst.R:14:2: unexpected '!' 13: 14: ë! ^"

This is a very common issue that ...READ MORE

Oct 30, 2018 in Data Analytics by Maverick
• 10,840 points
765 views
0 votes
1 answer

How to download the historical data from two random picked stocks?

assign the output of sample into a variable. my_picks <- ...READ MORE

Nov 5, 2018 in Data Analytics by Kalgi
• 52,360 points
502 views