I've been using caret::createDataPartition() in order to split the data in a stratified way. Now I'm trying another approach that I found here in stac ...
I've been using caret::createDataPartition() in order to split the data in a stratified way. Now I'm trying another approach that I found here in stac ...
I am working with a database that should be separated by several delimiters. The most common are semicolons and a point followed by a slash: './'. Ho ...
I have the following code that selects (4 rows of iris x 1000) *100 and calculates the bias of each column. This takes 1000 samples of 4 rows, calc ...
I am trying to do stratified sampling in R using the stratified function in the splitstackshape package. I have four strata (labeled 1:4). When settin ...
Desired Output Need the following output Here is my original data.frame. Used cSplit function from splitstackshape, but could not manage to get ...
I am trying to duplicate rows based on the value of a column. My dataframe (df) currently looks like: Species name Visits ...
I have a data frame like this and I would like to expand it to this using a simple function Which is basically trying to expand mydf by length(m ...
I have some text data which looks like: It is structured and I would like to split the text into columns. The structure is always the same. That is ...
Based on a data frame with grouped samples I'd like to pick 5 samples randomly from each group. I can do so easily using the function stratified from ...
Hej, I have a data.frame with family trios, and I would like to add a column with the full sibs of every "id" (= offspring). My data: What I woul ...
I have a column "sample_values" with varying numbers of doubly concatenated data delimited with both "," and ":" characters. I need to make the values ...
I have a file including tab separated and semicolon separated data (a prokka annotation file in .gff format). Unfortunately, the semicolon separated p ...
I'm fairly sure this is a bug, but I just wanted to put it to the community first. In the example page for the Reshape function of the splitstackshape ...
I have a nasty data table that has a couple of different kinds of messiness, and I can't figure out how to combine some of the other answers that use ...
I have a data frame with a Genre column that has rows like Action,Romance. I want to split those values and create a binary vector. If Action,Romance, ...
I have mydf data frame below. I want to split any cell that contains comma separated data and put it into rows. I am looking for a data frame similar ...
Please run this script below, the following R script gives a shiny dashboard with two boxes. I want to reduce the width between two boxes and display ...
I have a sample where 50% of the observations are White and 50% African-American. I would like to obtain a random subsample where such proportion is ...
Upon running the R and ggplot2 script below, the following snapshot is generated. Upon hovering on any box, we get the following tooltip as shown in t ...
I have a large data set a small sample of which looks like the 4 x 5 tibble below. I'm trying to split multiple delimited columns into unique rows usi ...