Questions tagged as 'rstudio'

0
answers

Error to generate a Seasplot chart

Generating this code: inflacao <- ts(read.csv2('inflacao.csv',header = T,sep = ';',dec = ','), start = c(1980,01),freq=12)[,-1] After Seasplot: seasplot(inflacao, outplot = 4) Give this error:    Relate the item...
asked by 07.04.2018 / 18:44
0
answers

What command to transform values of a column (continuous variable) into NAs?

I would like to remove two results from the age variable that can not be included in the analysis. I think the best option would be to turn them into NAs. Does anyone know which command I can use?     
asked by 29.03.2018 / 19:35
1
answer

Rmarkdown Aggregate error

Hello, I am trying to create reports by Rmarkdown, with the read_chunk() method it is possible to plot in doc using script.r externalization. In doing this integration, with only 1 script worked, when I put the second, an error occurred i...
asked by 16.03.2018 / 15:48
1
answer

Boxplot of ggplot2 giving error (does not make the boxes, only a points with a scratches), how to fix? OBS: I did other graphics and it worked, only this one packed

boxef <- ggplot (effectsize, aes(subordemfam, varbiom.efs, colour = classe2)) boxef + geom_point() + geom_boxplot() + xlab("Táxon") + ylab("Effect Size na Variação de Biomassa") + theme_bw() + geom_hline (yintercept = 0) + theme(plo...
asked by 15.03.2018 / 15:21
0
answers

How to do nonlinear regression in R using the nls function?

How to fit a curve to the points given by the following data, y <- c(23,16,9,6,4.5,3.8,2.8,2.0,1.6,1.3,1.1,0.93,0.82,0.65,0.65,0.20) x <- c(-0.32,0.30,0.24,0.18,-.15,-.11,-.01,0.15,0.30,0.44,0.58,0.68,0.81, 1.15,1.40,1.62)...
asked by 20.03.2018 / 20:24
0
answers

Schedule DFA test in RStudio

I need help on how to program the DFA - Detrented Fluaction Analisys test in Rstudio. I have the commands to program in R, but when trying with the same commands in RStudio does not run. This test / model is connected to physics. I...
asked by 16.02.2018 / 13:46
0
answers

create a new variable from the sum of several others

I need to add the individual income (one in each column) to form a new variable that would be the total family income. When I make the sums of everything NA! already tried 20 things, here are some examples: dados$rendaregtotal = (dados$zrendar...
asked by 19.01.2018 / 23:15
0
answers

PredictAbel error

I'm trying to do a gene prediction analysis, however when I try to do plotRiskscorePredrisk , the following error appears:    Error in riskScore (weights = riskmodel, data = predict_card, cGenPreds = cGenPred,: The risk model does not c...
asked by 26.01.2018 / 18:56
0
answers

Turning only a part of the "NAs" of a variable into "0"

I'm working on a dataframe in RStudio and want to understand if there is a correlation between physical exercise and a person's general physical health. For this, I'm using three variables: exerof1: This variable indicates how many times the...
asked by 18.01.2018 / 17:44
0
answers

How to work with repeated measure for the same individual with the R

Dear colleagues, I am looking for help to generate an analysis in R. I am starting to use the software. I have a set of data and investigated the following: whether the effect of interaction between different sizes of a fish species - "large" an...
asked by 15.01.2018 / 19:33