Questions tagged as 'r'

1
answer

How do I eliminate the first variable to test with the variable t-1? [closed]

I import the Excel files but I can not get the varable in R. The lag function deletes the first comment and I can not use the nrow or something. How would I do it? I would like to use it to take the Berenblutt-Webb test     
asked by 12.11.2017 / 21:05
1
answer

Changing the name of rows from a list in R using lapply from a list variable

I have a list called dataList and would like the name of the lines to be the same as a variable called CNPJ that is within that list. For this, I first applied: dadosLista<-lapply(dadosLista, "rownames<-", dadosLista$CNPJ) However, da...
asked by 30.06.2017 / 15:55
1
answer

R: Spatial analysis with spatstat, sidebar does not show correct values

I'm trying to create a map with the package spatstat of the R so that the sidebar shows the values of the third (preferably) or fourth column of my data frame and that the tmb colors reflect that third ( or fourth column). My sc...
asked by 28.04.2018 / 19:53
2
answers

Factor Column for Date

My data frame x=structure(list(V1 = structure(c(33L, 35L, 36L, 37L, 39L, 4L, 6L, 7L, 8L, 10L, 14L, 16L, 18L, 19L, 21L, 25L, 27L, 28L, 29L, 30L, 1L, 17L, 31L, 32L, 34L, 38L, 40L, 2L, 3L, 5L, 9L, 11L, 12L, 13L, 15L, 20L, 22L, 23L, 24L, 26...
asked by 04.04.2017 / 20:14
2
answers

read.table, data.frame

I try to perform this section below and it occurs: rain.df<-read.table("C:\Users\Marcia\Desktop\Sript R\daily.dat", header=TRUE)    Error in scan (file = file, what = what, sep = sep, quote = quote, dec = dec,:    line 3572 did not have...
asked by 22.08.2017 / 20:30
1
answer

How to create a graph of means and standard deviation in a data set that includes missing values (NAs)

Hello! I work with bioacoustics and am trying to create a graph of means by species using the lineplot.CI function of the sciplot package, but I can not get the R to ignore the missing values (NA). When I graph the durations of notes, everyth...
asked by 08.06.2017 / 17:30
1
answer

In R, use the dplyr functions to find the minimum distance

I have an array with two numeric variables: lat and long . Like this: > head(pontos_sub) id lat long 1 0 -22,91223 -43,18810 2 1 -22,91219 -43,18804 3 2 -22,91225 -43,18816 4 3 -22,89973 -43,20855 5 4 -22,8997...
asked by 07.04.2017 / 05:58
1
answer

How to read a file if its name is stored in a variable?

I have a file with names of other 980 files actually, so I wanted to read that file and save the names in a variable and then open the file with that name, I tried with the read table but as the name is in a variable it does not recognize. Any s...
asked by 17.04.2017 / 09:49
1
answer

I can not run a command, with the "rDEA"

I'm a beginner in R and I do not understand much of the solutions in English. I believe, therefore, that a forum in Portuguese can help me. I have the following database (date): I'mtryingtorunthecommand:##inputsandoutputsforanalysisY=data...
asked by 30.01.2017 / 13:56
1
answer

POST function of the httr package returns NA

I'm trying to make a script in R to do a POST on the site: link , but I'm not getting any success. The goal is to extract the generated data table after the data update. Everything seems to be fine, but the POST function (or even the GET) of th...
asked by 02.04.2017 / 05:36