I did a fictitious k-means cluster analysis. I want to create a caption (cluster1, cluster2 and cluster3), which is represented by the variable "kmeans" (clusters formed). I do not know if it would be possible to enter a scale. If possible, how?...
When I'm going to import and create a file my data to R it's error ...
I tried the following path:
melipona <- paste(system.file(package="dismo"), "/ex/Melipona.csv", sep=";")
melipona<-read.csv(melipona,header=TRUE,sep=";")
Th...
When reading Pnad 2016, I ran the code below in r studio
# Ler o dicionário de variáveis com as posições
#devtools::install_github("tidyverse/readr")
library(readxl)
library(dplyr)
library(readr)
dic = read_xls("dicionario_das_variaveis_PNAD...
no R (rstudio)
I have a vector v1 <- c(543, 543, 543, 675, 675, 675, 675, 22, 22, 22, 90, 90, 87, 876, 867) .
I would like to get a vr vector that represents the count of v1 (increasing 1:n ) of the numbers t...
I would like to filter specific elements of a row, similar to the Excel filter. I have the following example:
NOME VALOR
LEITO 1 10
LEITO 2 - HPP 20
LEITO 3 - HPP 30
LEITO 4 40
I need to filter, in the name column, lines with the...
example column 1 = 1 2 3 4 0 0 0 the normal average of this would give 1.428571
however ignoring the 0 would be 2.5, I would like to know how to do this by ignoring the 0 column values.
I started using R Studio a short time ago to do a meta-regression analysis using the mada package.
I need to create a fit template for each variable and after creating 6 templates the R started to give an error saying that it is not finding the...
I'm entering the world of Shiny Rstudio now. One question I came up with is: how do I search for the Shiny Apps available / created? Are all created Apps available? Is there any way that, once I create my app, I prevent it from being viewed? Or...
I'm trying to normalize the data and give the following error:
Error in if (colSd != 0) res[, i] <- (x[, i] - colMean)/colSd else res[, :
missing value where TRUE/FALSE needed
The code in R is this:
# Modelo de Trinamento de uma Re...