I created a simple function to predict tree heights using regression models constructed for this purpose (hypsometric relation models). The function predicts heights and inserts them into a new column in the data.frame by merging them with the h...
People would like to know how I can make the squared Euclidean distance between the octadimensional vectors of b and those that are not in a in a super matrix like this one in the example.
I thought so and it did not work. Anyon...
I'm starting at R and I'm having a question.
In a data frame I have a column with the social vulnerability index (IVS) that ranges from 0 to 1, per municipality (229). I need to group some values so that it looks like the example:
#Como Est...
Hello, guys, how are you?
I have a question when interpreting graphs of 'impulse response functions'. I have read a few books, but in none of the ones I consulted is it clearly stated when responses to an impulse may or may not be considered...
I have an object of type list, similar to this that follows:
x<- list(cod = 1:10, taxa = exp(-3:3), logico = c(TRUE,FALSE,FALSE,TRUE))
What is the best way to store this object in * .R, * .csv or _ _ _?
I have a lenght 15 string and I want to remove the first 70 charac. and the last 200 charac. of each.
I tried the following code to remove the beginnings and it did not work:
texto2009a <- texto2009 %>% map(str_sub(., 1, 72) <- "...
How can I remove columns from a dataframe without being as follows?
> df
x y z
1 1 6 A
2 1 5 B
3 2 4 C
4 2 3 D
5 3 2 E
6 3 1 F
> df <- data.frame(df[,1:2])
> df
x y
1 1 6
2 1 5
3 2 4
4 2 3
5 3 2
6 3 1
Suppose I have 3 dataframes. In them, I have varying columns (eg x1, x2 ..., xn). However, not all of these columns coexist in all dataframes. My goal is to compare these dataframes and leave, EACH OF THEM, with the columns in common.
Is it p...