Posts by João Dias • 552 points
14 posts
-
2
votes1
answer64
viewsQ: How to use xmlSApply with separator?
I used the xmlSApply and would like to get the result with a separator but did not know how to apply. Below is an example for you to reproduce: library(XML) fileUrl <-…
-
1
votes1
answer2792
viewsA: Error in Package Installation?
Rafael, if you are using the Rstudio just specify the path there where I put the red arrow and then install by typing the package name there in Packages. If you specify by menu you can install via…
-
6
votes1
answer774
viewsA: Creating a bar chart within another bar chart
To produce the chart above just follow the example below: install.packages('ggplot2') library(ggplot2) install.packages("reshape") library(reshape) install.packages("scales") library(scales)…
-
5
votes1
answer774
viewsQ: Creating a bar chart within another bar chart
I look for a very efficient and useful way to use the nested bar charts. A mode where you can demonstrate divisions and subdivisions in the same graph. How to generate such a graph in R?
-
0
votes3
answers6503
viewsA: How to avoid encoding problems when picking up data with Twitter?
I have dealt with this very situation and discovered that it is Double Enconding. So just pull it open two times and then bringing back for the format ideal. PROBLEM: DOUBLE ENCODING campo1_txt =…
-
3
votes2
answers2111
viewsA: I can’t install Ibgepesq in R to read the Pnads
I recommend using the script created by Damico and Djalma, which can be found here. I’ve worked with him a lot and it works perfectly. You get the data via: download all Microdata. R, and then…
-
2
votes1
answer108
viewsQ: What are the advantages of working directly with stdin, stdout and stderr?
Is there some advantage in terms of speed or some other aspect? Shows the connections: showConnections(all = TRUE) Individual examples: stdin() stdout() stderr()…
-
2
votes2
answers886
viewsA: How to perform a cross-tabulation and weighted?
I got what I wanted as follows: I used the crosstab and with the weight: tabela <- crosstab(mydata$Q_15, mydata$Q_35, weight = mydata$PESO) I selected only absolute values tabela <- tabela$t…
-
3
votes2
answers886
viewsQ: How to perform a cross-tabulation and weighted?
I would like to do a cross-tabulation but with the prop.table I cannot use the weight variable. I use the command below: prop.table(table(mydata$Q_15,mydata$Q_35),1)…
-
7
votes2
answers132
viewsQ: How to create a pop-up warning that the script has come to an end?
I would like to display on screen one pop-up notifying that the code just ran. The only script I have, follows below, is the one that opens a command window. system('CMD /C "ECHO O seu script chegou…
-
5
votes2
answers604
viewsQ: Transforming place into zip code
Does anyone know a script on R, or could help me assemble one, take the name of a location and look for the zip code of this?
-
1
votes1
answer39
viewsA: How to generate colored labels in comparison.cloud?
I found a solution: I found that to perform such action it is necessary to go to source code. Just go to the R-Forge or check through the console itself. Then change a line by adding the color…
-
2
votes1
answer39
viewsQ: How to generate colored labels in comparison.cloud?
Below is an example of the code to generate the cloud: comparison.cloud(tdm, random.order=FALSE, colors = c("tomato", "wheat", "lightblue","lightgreen")) Words are easily colored with the above…
-
3
votes1
answer60
viewsQ: How to know the fonts supported by commonality.cloud?
I would like to know which fonts are supported either by wordcloud or commonality.cloud. I imported some fonts with the package below but many of them don’t work. install.packages("extrafont")…