Questions tagged as 'r'

3
answers

Organize data in Excel to open as table in R?

I have a file with 50 comments and 3 variables in Excel (.xlsx) file, and I made it into .csv. I used banco1<- read.csv("teste1.csv") to create the table in R, but my 3 variables appear in the same column. How do I make them appear sep...
asked by 29.09.2014 / 05:19
1
answer

The order function in R

I do not understand what happens. Please note > x<-c(-2,4,-6,5,9,7) > x [1] -2 4 -6 5 9 7 > order(x) [1] 3 1 2 4 6 5 I do not understand why the x-vector is not ordered. Look, when I give order(x) add 7 And in...
asked by 18.04.2014 / 18:43
1
answer

Estimate the distribution of Poisson - R

I have grafo and I calculated the distribution of grades and grade as follows: dd <- degree_distribution(graph) d <- degree(graph) From this, I estimated the Power Law , to see if my distribution follows the "Power law"...
asked by 26.08.2017 / 18:48
3
answers

Search for an expression in several elements of a list

Guys, I have a problem. I have 200 spreadsheets with some data from a search, and I'm importing it into R, and because they have different columns, I assign each element in my list a different spreadsheet. I need to look up a name that can be in...
asked by 17.09.2018 / 22:15
1
answer

How to create objects (variables) with different names inside a loop?

I want to generate separate databases in a loop. In the example below there would be 3 distinct bases with the following names: "data1", "data2", "data3". for (n in 1:3){ dados<-paste0("dados",n) dados<-runif(10,1,20)} However, wh...
asked by 06.03.2014 / 22:33
1
answer

How to create a Needle chart in R?

I'm trying to make a chart of Needles suggested in the Matter of Non-parametric Methods in the Histogram Study. I found a command called rug() , but it does not seem like the idea.     
asked by 01.09.2014 / 15:48
2
answers

How to properly position the labels in the barplot?

I can not correctly position the names in an R barplot because they are too long. My data looks like this: Thenamesendupappearingthisway: fator_tecnologico_labels <- c( "Facilidade de testar\n e de ser avaliado\n por usuários\n de um m...
asked by 14.01.2014 / 19:09
2
answers

Remove all elements of the Environment that contain numbers and uppercase letters

Consider the objects: vectorA<-1:10 vectorU<-1:10 vector<-1:10 vector1<-1:10 vector86<-1:10 How to remove objects that contain numbers? How to remove objects that contain uppercase letters? My goal is to do this all...
asked by 26.12.2018 / 20:01
1
answer

How to get information from shares on facebook with R?

I'd like to know how I can get information about sharing posts on Facebook, such as name and id of users, and share date and time. In the RFacebook package, you can get the same information but refer to tastings and comments, not shares....
asked by 25.12.2015 / 23:56
1
answer

How to find the category with the minimum of observations in a table?

Suppose you have the following data: a<-c(rep("agosto",3),rep("janeiro",4),rep("maio",6)) table(a) I want to know which month with the least amount of comments? With the function min(table(a)) the response is the minimum value...
asked by 16.03.2014 / 21:49