I tried to adapt a code from an earlier version of R to process some data. I got most of it working again but ran into an issue.... I am trying to use vegan to
I have a graph g n = 8 m <- t(matrix(c( 0,0,0,0,0,0,0,8, 3,0,0,0,0,0,0,0, 5,0,0,5,1,0,0,0, 0,0,6,0,0,7,1,0, 0,6,2,0,0,0,0,0, 0,0,0,0,0,0,0,0, 7,4,0,0,8,0,0,3
I would like to change this: library(neuralnet) nn1 <- neuralnet(Species == "setosa" ~ Petal.Length + Petal.Width, iris, linear.output = FALSE) nn1 <- neu
I would like to add an opacity slider to a leaflet map generated in r. It should change the opacity of the uppermost visible or all visible layers (either of th
I have this dataframe in R mat <-structure(list(a = c(2, 5, 90, 77, 56), b = c(45, 78, 98, 55, 63), c = c(77, 85, 3, 22, 4), d = c(52, 68, 4, 25, 79), e = c
We use google calendar for reservations of several machines, and I am making graphs of the usage. I have a line to extract the titles of the calendars for plot
I have a data frame like this: df = data.frame(order = c(1,2,3), info = c("an apple","a banana[12],","456[Ab]")) I want to clean up to remove the [] and conten
I'm having an issue with a recurring error in a multinomial model I'm trying to create. Specifically, the error occurs when trying to predict test data with the
I've got a dataframe with a column full of pixel coordinates. I want to remove the 'px' from these values so that I can make the entire column numeric without i
I have this code for making a ggplot, which works fine (MRE with a built-in dataset): mydata <- airquality avg <- mean(mydata$Wind) stde <- sd(mydata$W
I would like to check whether in a text there are a) three consonants in a row or b) four identical letters in a row. Can someone please help me with the regula
how would you add a column to this dataset showing the number of individuals of each species?. install.packages("ggplot") library(ggplot) library(ggplot2) star
I found this as an interview question and can't seem to work a solution. You can't use any built in R functions. x <- c(77, 12, 4, 8, 77, 2, 4, 12) answer &
I have a dataset with ~2500 columns in R, and I am trying to find the minimum value greater than zero from the entire data frame. Once I have found this number,
please see this picture I have a DT table in the shiny. I added buttons for downloading the content of the table (Copy, CSV, Excel, PDF). But I would like to ch
I have a large number of variables (columns), but each has missing values for some of the observations (rows). How can I get a set (or all sets) of columns so t
I have a dataset and I would like to keep the value in a column of this dataframe (test_masses) for the mass having the highest intensity for masses close to th
Here's a simple data frame with a missing value: M = data.frame( Name = c('name', 'name'), Col1 = c(NA, 1) , Col2 = c(1, 1)) # Name Col1 Col2 # 1 name NA
I have the following object Formal class 'dgCMatrix' [package "Matrix"] with 6 slots ..@ i : int [1:120671481] 0 2 3 6 10 13 21 22 25 36 ... ..@ p
I am trying to remove pattern 'SO' from the end of a character vector. The issue I run into with the below code is that it will remove any sequence of 'SO' case