I want to execute only ONE tapply function and get results for each of the dataframes at one time:
dataset1<-data.frame(group = rep(c('a','b','c','d'), 3, each = 3),
number1 = c(1:36), number2 = c(1:36))
dataset...
I have a list of 3 dataframes, which are derived from the split function:
> split
$'1'
bin group1 group2 missing score1 score2 gender size score3 income city
0 1 1 NA 3 2 M S 4 1605....
I am aware that, for example, runif(1000,0,3) generates 1000 random values for a uniform distribution for x between 0 and 3. But how to do this for any probability density function? Any clue is grateful!
I can select the largest k results of a table in R. For example, if k equals 5, I get the following result:
library(dplyr)
library(ggplot2)
top_n(mpg, 5, wt=displ)
# A tibble: 5 × 11
manufacturer model displ year cyl tr...
I have a base with a unique key made up of two other repeating variables, CNPJ and date. I need to make some sum and split accounts with the previous date values for each CNPJ. If there is no previous date value for each CNPJ it should return em...
I have the following situation: I need to merge two banks. The name of both bank files are: banco2.RData and banco2_2.rdata
However, when I open the banks in R they have the same name: banco2 , in fact they do not even ope...
I have numerous PDF files containing CPRM water wells , like this:
link
Within these files are information on the soil lithology of each well, as can be seen in the image below.
The lithology table is on the second sheet of t...
I've organized my list of dataframes like this:
df.1<-as.data.frame(matrix(rnorm(10),10,80))
df.1.in.list<-split.default(df.1, gl(10, 8))
In the df.1.in.list list I would like to keep the dataframes where the first element of column...
tidyverse encourages the use of list-columns in < a data / data / data.frames "class=" post-tag "title=" show questions tagged 'data.frames' "> data.frames . But, after all,
What are columns-lists?
On what occasions are they commonly...