Questions tagged as 'r'

2
answers

Is there a difference between assigning value using '-' or '=' in R?

In practical terms there seems to be no difference, but underneath the cloth as the language processes is there any difference?     
asked by 20.10.2016 / 01:17
2
answers

How to make a conditional graph y ~ x for each factor of the data.frame?

Suppose a data.frame like the following: set.seed(1) dados <- data.frame(w=rep(c("A", "B", "C", "D"), 50), y= rnorm(200), x=rnorm(200), stringsAsFactors=FALSE) How do you create a% s of% s by each category of y~x...
asked by 20.02.2014 / 16:21
1
answer

Count sequences of 1 within vector in R

I would like to know how to count sequences of 1 within a vector containing only 0 and 1. For example, in the x <- c(1, 1, 0, 0, 1, 0, 1, 1) vector, the count would give the (2, 1, 2) vector, which counts the sequence of 2 "1",...
asked by 12.11.2017 / 01:24
2
answers

Separate content from one column into other columns

I have a table-shaped file. I need to separate the contents of a specific column into other columns, the data is separated by ; . Well I have managed to do this, but the problem is that the content will result for each row in a differen...
asked by 23.05.2015 / 16:36
1
answer

How to extract values from the statistics calculated by the function linhom (L-function for inhomogeneous spatial point processes)?

I have to analyze the spatial pattern of some cacti distributions in the field, and since they are heterogeneous, I can not use Ripley's K function (and corresponding L function) for stationary patterns. With the spatstat package, I computed and...
asked by 03.08.2015 / 01:40
1
answer

In R, count words and enter a line break

Expensive, good afternoon Suppose I have a vector as follows    caption
asked by 04.02.2015 / 20:37
1
answer

How to fill column graphics with hachures using ggplot2

I would like to display column graphs, using ggplot2 , but would like to fill them with hachures. It makes it easier to understand in case of black and white photocopy! Using the base date cars and the command below as an e...
asked by 03.12.2018 / 14:08
2
answers

How to smooth a curve in the R

The goal is to get the data.frame x <- c(1e-04, 0.0014, 0.018, 0.24, 3.2, 42, 560, 7500, 1e+05) y <- c(0, 7, 10, 7, 0, -7, -10, -7, 0) df <- data.frame(x, y) The curve generated by library(ggplot2) ggplot(data = df, aes(x, y))...
asked by 03.03.2014 / 18:48
1
answer

Push git "Everything up-to-date" Data is not actually sent

I'm doing PUSH for a repository on gitlab.com. I get the return:    warning: redirecting to    link Everything   up-to-date In my understanding It worked. In practice the changes are not sent. I saw other similar questions, and tried fol...
asked by 13.10.2017 / 16:09
2
answers

How to split the dataframes of a list based on a group variable, common in all of them?

I have a list with n dataframes. They have a common variable called group . I want to parse dataframes only with the groups a and c of group . My goal: Return these dataframes within the list with only these sele...
asked by 11.09.2018 / 22:01