Questions tagged as 'r'

1
answer

Import table into R without the names (skip line did not work)

I'm trying to import some data into the R, but no matter what I do, there's always a line with the column names (information for a row I want to skip). This is the table: However,inR,evenbyjumpingthefirstline,thisinformationcomestogether. He...
asked by 18.12.2018 / 14:16
1
answer

Selecting different intervals in a giant dataframe in RStudio

I have a large CSV with large stock dates and their closing prices, impossible to use Excel. The action name is in the same column as the date and only appears at the beginning of the series, as shown below: I have limited knowledg...
asked by 07.12.2018 / 16:17
1
answer

Graphic by ggplot in RStudio v 1.1.463 does not read subtitle and caption in labs ()

I have the problem reported in the title and I do not understand why in RStudio subtitle and caption are not read. When I replicate the code in Visual Studio, it loads all the commands correctly - the graphic looks exactly like it is in the code...
asked by 30.12.2018 / 18:42
1
answer

Take a sample without repetition taking into account 2 variables in the R

I have two bases. One with the lines that would like to take the sample and the other with the sample size with the date. The first one that is the actual database that I need to sample, is exemplified below called "good": CNPJ data 333333...
asked by 02.08.2018 / 19:44
2
answers

BoxPlots - rstudio

I wanted to color the various boxplots underlying the code I made (which I leave here) but I'm having some difficulty. If it is possible for someone to give some info on how I should do it, thank you. Thanks > a<-c(0, 15, 10, 10) > b&...
asked by 05.07.2018 / 16:01
1
answer

Turn spreadsheet of presence and absence of species into columns

I have a basic question about spreadsheets but it is slowing down my work. I have a table of presence and absence of species with 714 sites and 4406 species. I need to turn this spreadsheet into a spreadsheet with 3 columns, 1 with the names...
asked by 05.07.2018 / 22:10
1
answer

Create a sequence of data from 1 to 30 with odd numbers only. Use the seq () function [closed]

I am trying to solve this question given in a manual but I can not make the sequence be of odd numbers     
asked by 14.05.2018 / 23:45
1
answer

Values in the graph axes in RStudio

Hello, I'm new to R. I plotted the data I wanted, but no value appeared. How to solve? There are few data. Thedataareasfollows,plottingonlythefourthcolumn(Avg.1). Thank you in advance for helping me     
asked by 19.04.2018 / 06:41
1
answer

Fill cells with NA by an annual logical sequence in R

I have a dataframe with 25 people and their respective ages from 2012 to 2015, but in a few years the ages have not been filled. id<-c(1:25) idade_2012<-c(21, 18, 19, 25, 20, 12, 12, 13, 14, 29, 40, 11, 15, 14, 24, 16, 14, 12, 13, 14, 12...
asked by 05.04.2018 / 19:46
1
answer

R - Econometrics - Wald test and autocorrelation [closed]

Good afternoon, I would like to know how to perform the Wald Test (for heteroscedasticity) and the test proposed by Wooldridge for autocorrelation. I am using panel data (unbalanced), with Pooled OLS, Fixed Effects and Random Effects with...
asked by 02.05.2018 / 20:30