Posts by Laura • 651 points
20 posts
-
5
votes1
answer125
views -
3
votes1
answer64
viewsQ: Converting from HTML/CSS to pdf using pandoc in R
Folks I’m having trouble converting my generated html/css file into Rmarkdown. You could help me? Follow my code: My file . Rmd --- title: "Table" output: html_document: css: "test.css" --- ```{r}…
-
5
votes1
answer57
views -
0
votes1
answer21
viewsQ: Domain. com Rstudio Website
all right? Could you give me a hand? I want to guarantee a domain . com to build my site with Shiny/markdown. But I am still studying Shiny/html/css so I will still produce my site. Nesa situation…
-
2
votes2
answers107
viewsQ: Using for loop in a list with charts in R
This is my code: library(ggplot2) library(gridExtra) df <- data.frame(x = 1:100, y1 = runif(100), y2 = runif(100)^2) plot_list <- list( plot1 = ggplot(df, aes(x, y1)) + geom_point(), plot2 =…
-
1
votes0
answers47
viewsQ: Shiny App and License
Good morning, everyone I have a question regarding the production of apps in Shiny. If I want to create a Dashboard and charge a paid subscription to access my Dashboard I need to purchase some…
-
1
votes0
answers20
viewsQ: How to search APP Rstudio Shiny
I’m entering the world of Rstudio Shiny now. One question that came to me is: how do I search for the available/created Shiny Apps? Are all the Apps created available? Is there any way that, once…
-
0
votes0
answers160
viewsQ: Problem downloading data from rbcb Central Bank in R
You could help me? I’m trying to download inflation expectations data for a month by package rbcb https://github.com/wilsonfreitas/rbcb#market-expectations I installed and did the step by step to…
-
1
votes0
answers117
viewsQ: Error using getSeries function to pull data from BACEN
Could you help me? I need to download data from the central bank using this routine here: library(SSOAP) library(XML) library(RCurl) wsdl <-…
-
5
votes2
answers78
viewsQ: Deleting columns containing NA s in their last 5 rows
I have this personal dataframe, set.seed(1) df <- data.frame(A = 1:50, B = 11:60, c = 21:70) head(df) df.final <- as.data.frame(lapply(df, function(cc) cc[ sample(c(TRUE, NA), prob = c(0.85,…
-
4
votes1
answer136
viewsQ: Creating a dataframe based on two other dataframes using dplyr in R
These are my dataframes: df<- as.data.frame(matrix(rexp(200),, 25)) colnames(df)<-c("A","B","C","D","E","F","G","H","I","J", "K","L","M","N","O","P","Q","R","S","T", "U","V","X","Z","W")…
-
0
votes0
answers100
viewsQ: Downloading data from the Internet site Bovespabmf by R
I need the data of this site here Bovespa: http://www.b3.com.br/pt_br/market-data-e-indices/servicos-de-dados/market-data/historico/mercado-a-vista/series-historicas/ The data I want is from the…
-
4
votes1
answer93
viewsQ: Including columns in a dataframe in R using a rule
This is my dataframe: df<-as.data.frame(matrix(rexp(200, rate=.1), ncol=10)) colnames(df)<-c("one","two","three","four","five","six","seven","eight","nine","ten") This is the entry I will use…
-
5
votes1
answer50
viewsQ: Problem using ggplot by group
This is my dataframe: structure(list(ind = structure(c(177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L, 177L,…
-
3
votes1
answer47
viewsQ: Poorly calculated coefficients in Linear Regression in R due to NA s
This is my dataframe: structure(list(Year = c(1979L, 1979L, 1979L, 1980L, 1980L, 1980L, 1981L, 1981L, 1981L, 1982L, 1982L, 1982L, 1983L, 1983L, 1983L, 1984L, 1984L, 1984L, 1985L, 1985L, 1985L,…
-
3
votes1
answer48
viewsQ: Lapply to pull ADF test results on R
This is my list: mylist=dput(mylist) list(list(c(30, 50, 35, 25, 45), c(40, 35, 35, 50, 45), c(40, 20, 40, 50, 25), c(35, 45, 45, 45, 40), c(20, 30, 50, 45, 20), c(40, 40, 50, 30, 40)), list(c(50,…
-
4
votes2
answers116
viewsQ: Replacing for the Lapply function in R
This is my list lista1<-list(c(1, 2, 3, 4, 5), c(6, 7, 8, 9, 10), c(11, 12, 13, 14, 15 ), c(16, 17, 18, 19, 20), c(21, 22, 23, 24, 25)) I build a new list the way below. novalista <-…
-
2
votes2
answers53
viewsQ: Generate multiple graphics in a loop using X11() and two different indices in R
Guys, this is my list. mylist=list(list(a = c(2, 3, 4, 5), b = c(3, 4, 5, 5), c = c(3, 7, 5, 5), d = c(3, 4, 9, 5), e = c(3, 4, 5, 9), f = c(3, 4, 1, 9), g = c(3, 1, 5, 9), h = c(3, 3, 5, 9), i =…
-
0
votes1
answer49
viewsQ: Construind a For using the R
Hello, I think my question is very simple, but come on: How do I make such a move: coef.matrix=matrix(0,4,16) for (k in c(1,4)){ for(i in 1:2){ coef.matrix[i,1]=summary(lm(y ~ x))$coef[2,k] } }…
-
5
votes2
answers1281
viewsQ: How to import . dat file to R
I downloaded a file . dat which is basically an array with data. However, it seems to me that the only way to work with him is by doing the following command (I’m using the R and I don’t have much…