content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
######################################################### # Summarize results from multiple simulations # # # # By: Michael J. McCann # # Created: 3/19/2014 # #############################...
/Acessory FUNCTIONS/SUMMARIZE14.R
no_license
mccannecology/model
R
false
false
39,653
r
######################################################### # Summarize results from multiple simulations # # # # By: Michael J. McCann # # Created: 3/19/2014 # #############################...
# Food web functions # the basis for this code was written by Owen Petchey, and the original can be found at https://github.com/opetchey/ttl-resources/blob/master/food_web/FoodWebFunctions.r # code has been slightly modified in places by Justin Pomeranz to carry out analyses in Pomeranz et al. In Press. Inferring pred...
/R/foodweb_functions.R
no_license
jimjunker1/marsh-foodwebs
R
false
false
17,298
r
# Food web functions # the basis for this code was written by Owen Petchey, and the original can be found at https://github.com/opetchey/ttl-resources/blob/master/food_web/FoodWebFunctions.r # code has been slightly modified in places by Justin Pomeranz to carry out analyses in Pomeranz et al. In Press. Inferring pred...
for (cancerType in c('ACC','DLBC','GBM','LGG','MESO','OV','TGCT','UCS','LAML','UVM','ESCA','LUAD','PAAD','LIHC','STAD', 'CHOL', 'COAD', 'THCA', 'KICH', 'KIRP', 'KIRC', 'PRAD', 'PCPG', 'HNSC', 'SARC', 'LUSC', 'SKCM', 'THYM', 'BLCA', 'BRCA', 'UCEC', 'READ', 'CESC')){ type = "RNAseq" setwd(paste("/data/projects/bioxpr...
/old_files_not_used/legacy/scripts/v-2.1/check_pipeline_DESeq2_normalized.R
no_license
GW-HIVE/bioxpress
R
false
false
609
r
for (cancerType in c('ACC','DLBC','GBM','LGG','MESO','OV','TGCT','UCS','LAML','UVM','ESCA','LUAD','PAAD','LIHC','STAD', 'CHOL', 'COAD', 'THCA', 'KICH', 'KIRP', 'KIRC', 'PRAD', 'PCPG', 'HNSC', 'SARC', 'LUSC', 'SKCM', 'THYM', 'BLCA', 'BRCA', 'UCEC', 'READ', 'CESC')){ type = "RNAseq" setwd(paste("/data/projects/bioxpr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_df.R \name{plot_df} \alias{plot_df} \title{Plot a detection function from an object of class "Detectability"} \usage{ plot_df(df) } \arguments{ \item{df}{a "Detectability" object} } \value{ just a plot } \description{ Plot the detection ...
/man/plot_df.Rd
no_license
dill/ltdesigntester
R
false
true
412
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_df.R \name{plot_df} \alias{plot_df} \title{Plot a detection function from an object of class "Detectability"} \usage{ plot_df(df) } \arguments{ \item{df}{a "Detectability" object} } \value{ just a plot } \description{ Plot the detection ...
options(stringsAsFactors = FALSE) library("igraph") library(org.Hs.eg.db) library(biomaRt) ############################################################# # # GWAS+OMIM gene-disease associations # ############################################################# #Read data and get rid of useless info. menche <- read....
/R/00_data_preprocessing.R
no_license
fhaertner/GeometricAnalysisDMs
R
false
false
4,824
r
options(stringsAsFactors = FALSE) library("igraph") library(org.Hs.eg.db) library(biomaRt) ############################################################# # # GWAS+OMIM gene-disease associations # ############################################################# #Read data and get rid of useless info. menche <- read....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lambda_operations.R \name{lambda_list_aliases} \alias{lambda_list_aliases} \title{Returns a list of aliases for a Lambda function} \usage{ lambda_list_aliases(FunctionName, FunctionVersion, Marker, MaxItems) } \arguments{ \item{FunctionName}{...
/cran/paws.compute/man/lambda_list_aliases.Rd
permissive
ryanb8/paws
R
false
true
1,539
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lambda_operations.R \name{lambda_list_aliases} \alias{lambda_list_aliases} \title{Returns a list of aliases for a Lambda function} \usage{ lambda_list_aliases(FunctionName, FunctionVersion, Marker, MaxItems) } \arguments{ \item{FunctionName}{...
### Containers. ### * Creator. .make_container <- function(x, classes, properties = NULL) { out <- list(.Data = x, .Meta = properties) class(out) <- unique(classes) out } ### * Getters. .get_representation <- function(x) x$.Data .get_properties <- function(x) x$.Meta relation_properties <- .ge...
/R/container.R
no_license
cran/relations
R
false
false
985
r
### Containers. ### * Creator. .make_container <- function(x, classes, properties = NULL) { out <- list(.Data = x, .Meta = properties) class(out) <- unique(classes) out } ### * Getters. .get_representation <- function(x) x$.Data .get_properties <- function(x) x$.Meta relation_properties <- .ge...
#----------------------------------------------------------------------------# #' Pad elements of list with 0s to bring all elements to a fixed length. #' @export #' @param topad List of elements to pad [list] #' @param num Final length [integer] #' @param method Whether to pad front or back [character] #' @param ...
/R/pad.R
no_license
lshreyas/ehR
R
false
false
1,028
r
#----------------------------------------------------------------------------# #' Pad elements of list with 0s to bring all elements to a fixed length. #' @export #' @param topad List of elements to pad [list] #' @param num Final length [integer] #' @param method Whether to pad front or back [character] #' @param ...
## These functions are handy in order to reduce computing power ## when doing certain complex calculations, such as in this case ## finding the inverse of a matrix. The functions cache the "solved" ## matrix so that when we need it, it can be looked up from ## the cache. ## This function makes a special "cache matrix"...
/cachematrix.R
no_license
20xx0/ProgrammingAssignment2
R
false
false
1,097
r
## These functions are handy in order to reduce computing power ## when doing certain complex calculations, such as in this case ## finding the inverse of a matrix. The functions cache the "solved" ## matrix so that when we need it, it can be looked up from ## the cache. ## This function makes a special "cache matrix"...
testlist <- list(id = integer(0), x = c(-5.27735271320721e-137, 9.83269189659119e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), y = numeric(0)) result <- do.call(ggforce:::enclose_points,testlist) str(result)
/ggforce/inst/testfiles/enclose_points/libFuzzer_enclose_points/enclose_points_valgrind_files/1610029984-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
233
r
testlist <- list(id = integer(0), x = c(-5.27735271320721e-137, 9.83269189659119e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), y = numeric(0)) result <- do.call(ggforce:::enclose_points,testlist) str(result)
#Explore numbers of endpoints vs active and vs min_ACC df <- read.csv("./Tables/SI4_2_nodash.csv",stringsAsFactors = FALSE) plot(df$Total~df$min_ACC,log="x") plot(df$Total~df$Active,log="xy") plot(df$Total~df$Active,log="") plot(df$Total~df$Filtered,log="")
/Endpoint_stats.R
no_license
srcorsi-USGS/toxManuscript
R
false
false
261
r
#Explore numbers of endpoints vs active and vs min_ACC df <- read.csv("./Tables/SI4_2_nodash.csv",stringsAsFactors = FALSE) plot(df$Total~df$min_ACC,log="x") plot(df$Total~df$Active,log="xy") plot(df$Total~df$Active,log="") plot(df$Total~df$Filtered,log="")
library(trachomapipeline) values <- c( 14.95203, 13.89349, 11.81734, 16.69648, 16.03149, 13.30116, 16.21331, 15.43331, 12.88844, 19.77817, 19.94016, 15.96395, 10.50745, 8.766793, 8.118058 ) expected_prev = matrix(values, ncol = 5, nrow = 3) sds <- c(0.243590...
/tests/testthat/test_sample_prevalence_map.R
no_license
drsimonspencer/NTDMC_trachoma_pipeline
R
false
false
734
r
library(trachomapipeline) values <- c( 14.95203, 13.89349, 11.81734, 16.69648, 16.03149, 13.30116, 16.21331, 15.43331, 12.88844, 19.77817, 19.94016, 15.96395, 10.50745, 8.766793, 8.118058 ) expected_prev = matrix(values, ncol = 5, nrow = 3) sds <- c(0.243590...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/workmail_operations.R \name{workmail_delete_retention_policy} \alias{workmail_delete_retention_policy} \title{Deletes the specified retention policy from the specified organization} \usage{ workmail_delete_retention_policy(OrganizationId, Id)...
/cran/paws.business.applications/man/workmail_delete_retention_policy.Rd
permissive
jcheng5/paws
R
false
true
668
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/workmail_operations.R \name{workmail_delete_retention_policy} \alias{workmail_delete_retention_policy} \title{Deletes the specified retention policy from the specified organization} \usage{ workmail_delete_retention_policy(OrganizationId, Id)...
library(Seurat) visionFiles <- data.frame(DatasetId = character(), FileName = character()) for (datasetId in names(seuratObjects)) { printName(datasetId) seuratObj <- readRDS(seuratObjects[[datasetId]]) visionObj <- CellMembrane::RunVisionForMSigDB(seuratObj, metadataCols = metadataCols) fileName <- ...
/singlecell/resources/chunks/RunVision.R
no_license
BimberLab/DiscvrLabKeyModules
R
false
false
610
r
library(Seurat) visionFiles <- data.frame(DatasetId = character(), FileName = character()) for (datasetId in names(seuratObjects)) { printName(datasetId) seuratObj <- readRDS(seuratObjects[[datasetId]]) visionObj <- CellMembrane::RunVisionForMSigDB(seuratObj, metadataCols = metadataCols) fileName <- ...
data <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE) data1 <- data[data$Date %in% c("1/2/2007", "2/2/2007"), ] png(filename = "./data/plot1.png") hist(as.numeric(data1$Global_active_power), col = "red", main = "Global Active Power", xlab = "Global Active Power (ki...
/Plot1.R
no_license
elsahou/ExData_Plotting1
R
false
false
360
r
data <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE) data1 <- data[data$Date %in% c("1/2/2007", "2/2/2007"), ] png(filename = "./data/plot1.png") hist(as.numeric(data1$Global_active_power), col = "red", main = "Global Active Power", xlab = "Global Active Power (ki...
library(downloader) library(data.table) library(plyr) library(dplyr) setwd("C:\\Eday\\Doc\\R\\download") fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" #download(fileUrl, dest="UCI HAR dataset.zip",mode = "wb") download.file(fileUrl, dest="UCI HAR dataset.zip",mode ...
/run_analysis.R
no_license
edayaa/data_cleaning_assignment
R
false
false
2,811
r
library(downloader) library(data.table) library(plyr) library(dplyr) setwd("C:\\Eday\\Doc\\R\\download") fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" #download(fileUrl, dest="UCI HAR dataset.zip",mode = "wb") download.file(fileUrl, dest="UCI HAR dataset.zip",mode ...
# Title : motif_filtering # Objective : Filter motif for each condition. # Created by: viyt # Created on: 08.10.2019 ############################################################################### # 1) Required packages ############################################################################### suppres...
/HiTransMeth/rules/scripts/motif_filtering.R
no_license
MurrLabGEDEV/HiTransMeth
R
false
false
5,836
r
# Title : motif_filtering # Objective : Filter motif for each condition. # Created by: viyt # Created on: 08.10.2019 ############################################################################### # 1) Required packages ############################################################################### suppres...
# Here's how you do a Monte Carlo Study for Sample Sizes in R # set on the population values # All theory based pop.model<-' y ~ 0.66*x1 + 0.05*x2 + -0.30*x3 x1~~0.40*x2 + 0.60*x3 x2~~0.05*x3 y ~~ 0.69*y ' # library(lavaan) pop.fit<-sem(pop.model, fixed.x = FALSE) summary(pop.fit, standardized = TRUE, rsquare = TR...
/regression.monte.carlo.r
no_license
bfoste01/monte-carlo-fun
R
false
false
2,149
r
# Here's how you do a Monte Carlo Study for Sample Sizes in R # set on the population values # All theory based pop.model<-' y ~ 0.66*x1 + 0.05*x2 + -0.30*x3 x1~~0.40*x2 + 0.60*x3 x2~~0.05*x3 y ~~ 0.69*y ' # library(lavaan) pop.fit<-sem(pop.model, fixed.x = FALSE) summary(pop.fit, standardized = TRUE, rsquare = TR...
# Exercise 1. library(rpart) data(kyphosis) kyphosis attach(kyphosis) # (a) g=glm(Kyphosis~Age+Number+Start,"binomial") summary(g) # (b) # In R null deviance is defined as deviance of null model from saturated model. # However, null deviance is also often defined as the deviance of a null ...
/module6/Solutions.R
no_license
pawelc/AdvStatistics
R
false
false
6,920
r
# Exercise 1. library(rpart) data(kyphosis) kyphosis attach(kyphosis) # (a) g=glm(Kyphosis~Age+Number+Start,"binomial") summary(g) # (b) # In R null deviance is defined as deviance of null model from saturated model. # However, null deviance is also often defined as the deviance of a null ...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/kidney.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.01,family="gaussian",standardize=TRUE) sink('./kidney_005.txt',append=TRUE) print...
/Model/EN/Lasso/kidney/kidney_005.R
no_license
esbgkannan/QSMART
R
false
false
344
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/kidney.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.01,family="gaussian",standardize=TRUE) sink('./kidney_005.txt',append=TRUE) print...
# # This test file has been generated by kwb.test::create_test_files() # launched by user hsonne on 2022-06-04 18:39:20. # Your are strongly encouraged to modify the dummy functions # so that real cases are tested. You should then delete this comment. # test_that("is.unnamed() works", { f <- kwb.utils:::is.unnamed ...
/tests/testthat/test-function-is.unnamed.R
permissive
KWB-R/kwb.utils
R
false
false
421
r
# # This test file has been generated by kwb.test::create_test_files() # launched by user hsonne on 2022-06-04 18:39:20. # Your are strongly encouraged to modify the dummy functions # so that real cases are tested. You should then delete this comment. # test_that("is.unnamed() works", { f <- kwb.utils:::is.unnamed ...
#multidimensional - stores only basic datas numbers, logical values and strings # Create two vectors of different lengths. vector1 <- c(1,2,3,4) result <- array(c(vector1),dim = c(3,3)) vector2 <- c(5,6,7,8,9,10,11,12,13,14,101) # Take these vectors as input to the array. result <- array(c(vector1,vector2),dim = c(3,3...
/Chapter-08-DataTYpes-Arrays.R
no_license
balajidileepkumar/R_ML
R
false
false
618
r
#multidimensional - stores only basic datas numbers, logical values and strings # Create two vectors of different lengths. vector1 <- c(1,2,3,4) result <- array(c(vector1),dim = c(3,3)) vector2 <- c(5,6,7,8,9,10,11,12,13,14,101) # Take these vectors as input to the array. result <- array(c(vector1,vector2),dim = c(3,3...
#' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param countries PARAM_DESCRIPTION #' @param from PARAM_DESCRIPTION, Default: 'iso3' #' @param verbose PARAM_DESCRIPTION, Default: F #' @param shapefile_version PARAM_DESCRIPTION, Default: 'current' #' @return OUTPUT_DESCRIPTION #' @details DETAILS #' @ex...
/mbg/mbg_core_code/mbg_central/LBDCore/R/gaul_convert.R
no_license
The-Oxford-GBD-group/typhi_paratyphi_modelling_code
R
false
false
5,567
r
#' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param countries PARAM_DESCRIPTION #' @param from PARAM_DESCRIPTION, Default: 'iso3' #' @param verbose PARAM_DESCRIPTION, Default: F #' @param shapefile_version PARAM_DESCRIPTION, Default: 'current' #' @return OUTPUT_DESCRIPTION #' @details DETAILS #' @ex...
#Testing #Question 2 csv.data1 <- read.csv("C:\\Users\\adria\\OneDrive\\Documents\\tableOfDriftValuesCalibration (1).csv", sep= ",") #subset subset1518<- csv.data1[csv.data1$trialTime>=15000,] subset1518<- subset1518[subset1518$trialTime<=18000,] subset1518_nabs<- subset1518[subset1518$trialTime<=18000,] subset1518$po...
/Assignment_1/question_2.R
no_license
pblomsma/infomcm
R
false
false
2,719
r
#Testing #Question 2 csv.data1 <- read.csv("C:\\Users\\adria\\OneDrive\\Documents\\tableOfDriftValuesCalibration (1).csv", sep= ",") #subset subset1518<- csv.data1[csv.data1$trialTime>=15000,] subset1518<- subset1518[subset1518$trialTime<=18000,] subset1518_nabs<- subset1518[subset1518$trialTime<=18000,] subset1518$po...
# Load Data --------------------------------------------------------------- library(tidyverse) library(dplyr) library(ggplot2) library(lubridate) library(scales) library(readr) library(stringr) library(zoo) library(anytime) se_report <- as.data.frame(do.call(rbind, ...
/clean.R
no_license
mtgingrass/FirstShinyApp
R
false
false
5,418
r
# Load Data --------------------------------------------------------------- library(tidyverse) library(dplyr) library(ggplot2) library(lubridate) library(scales) library(readr) library(stringr) library(zoo) library(anytime) se_report <- as.data.frame(do.call(rbind, ...
library(reshape2) X_test <- read.table("UCI HAR Dataset/test/X_test.txt") Y_test <- read.table("UCI HAR Dataset/test/y_test.txt") subject_test <- read.table("UCI HAR Dataset/test/subject_test.txt") X_train <- read.table("UCI HAR Dataset/train/X_train.txt") Y_train <- read.table("UCI HAR Dataset/train/y_train.txt") sub...
/run_analysis.R
no_license
soniampub/Getting_Cleaning_Data_Project
R
false
false
1,449
r
library(reshape2) X_test <- read.table("UCI HAR Dataset/test/X_test.txt") Y_test <- read.table("UCI HAR Dataset/test/y_test.txt") subject_test <- read.table("UCI HAR Dataset/test/subject_test.txt") X_train <- read.table("UCI HAR Dataset/train/X_train.txt") Y_train <- read.table("UCI HAR Dataset/train/y_train.txt") sub...
library(MKmisc) ### Name: simPlot ### Title: Plot of a similarity matrix. ### Aliases: simPlot ### Keywords: univar ### ** Examples ## only a dummy example M <- matrix(rnorm(1000), ncol = 20) colnames(M) <- paste("Sample", 1:20) M.cor <- cor(M) simPlot(M.cor, minVal = min(M.cor)) simPlot(M.cor, minVal = min(M.cor)...
/data/genthat_extracted_code/MKmisc/examples/simPlot.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
451
r
library(MKmisc) ### Name: simPlot ### Title: Plot of a similarity matrix. ### Aliases: simPlot ### Keywords: univar ### ** Examples ## only a dummy example M <- matrix(rnorm(1000), ncol = 20) colnames(M) <- paste("Sample", 1:20) M.cor <- cor(M) simPlot(M.cor, minVal = min(M.cor)) simPlot(M.cor, minVal = min(M.cor)...
#' Iowa Gambling Task (Worthy et al., 2014) #' #' @description #' Hierarchical Bayesian Modeling of the Iowa Gambling Task using the following parameters: "A" (learning rate), "alpha" (outcome sensitivity), "cons" (response consistency), "lambda" (loss aversion), "epP" (gain impact), "epN" (loss impact), "K" (decay r...
/hBayesDM/R/igt_vpp.R
no_license
ingted/R-Examples
R
false
false
15,091
r
#' Iowa Gambling Task (Worthy et al., 2014) #' #' @description #' Hierarchical Bayesian Modeling of the Iowa Gambling Task using the following parameters: "A" (learning rate), "alpha" (outcome sensitivity), "cons" (response consistency), "lambda" (loss aversion), "epP" (gain impact), "epN" (loss impact), "K" (decay r...
testlist <- list(data = structure(0, .Dim = c(1L, 1L)), x = structure(c(0, 1.33091576009481e-309, 5.00368698948671e-304, 1.3545163781073e+248, 2.02822087722601e-110, 7.80639368600506e+115, 2.84878894080431e-306, 5.66569438147973e-217, 4.94433309099852e-312, 2.48588604007856e-265, 1.79809443502751e-309, 0, 2.5063231...
/distr6/inst/testfiles/C_EmpiricalMVPdf/libFuzzer_C_EmpiricalMVPdf/C_EmpiricalMVPdf_valgrind_files/1610035624-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,074
r
testlist <- list(data = structure(0, .Dim = c(1L, 1L)), x = structure(c(0, 1.33091576009481e-309, 5.00368698948671e-304, 1.3545163781073e+248, 2.02822087722601e-110, 7.80639368600506e+115, 2.84878894080431e-306, 5.66569438147973e-217, 4.94433309099852e-312, 2.48588604007856e-265, 1.79809443502751e-309, 0, 2.5063231...
#Problem 1 #Q1 rain.df = read.table("E:/data analytics/datasets/rainfall.dat") #Q2 dim(rain.df)[1] # for number of rows #Q3 dim(rain.df)[2] #Q4 colnames(rain.df) #Q5 rain.df[2,4] #Q6 rain.df[2, ] #Q7 names(rain.df) = c("year", "month", "day", seq(0,23)) str(rain.df) #Q8 rain.df$daily = apply(sum, X=rain.df[,4:27], MARG...
/2014/assignments/solutions/sol1.R
no_license
rajesh2win/datascience
R
false
false
6,304
r
#Problem 1 #Q1 rain.df = read.table("E:/data analytics/datasets/rainfall.dat") #Q2 dim(rain.df)[1] # for number of rows #Q3 dim(rain.df)[2] #Q4 colnames(rain.df) #Q5 rain.df[2,4] #Q6 rain.df[2, ] #Q7 names(rain.df) = c("year", "month", "day", seq(0,23)) str(rain.df) #Q8 rain.df$daily = apply(sum, X=rain.df[,4:27], MARG...
--- title: "CMTH642 - Assignment # 2" author: "Mohammed Amir" date: "November 26, 2016" output: word_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` # Read the csv files in the folder ```{r} USDAClean <- read.csv(file="D:/Big Data/CMTH642 - DATA ANALYTICS ADVANCED METHODS/ASSIGNMENT 2/...
/ASSIGNMENT 2/New folder/CMTH642 Assignment 2 - Mohammed Amir.R
no_license
MohammedAmir/CMTH642
R
false
false
3,359
r
--- title: "CMTH642 - Assignment # 2" author: "Mohammed Amir" date: "November 26, 2016" output: word_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` # Read the csv files in the folder ```{r} USDAClean <- read.csv(file="D:/Big Data/CMTH642 - DATA ANALYTICS ADVANCED METHODS/ASSIGNMENT 2/...
######################################################### ## ## Data Import Script ## Sentiment Analysis on Central Bankers ## Client: Moritz Pfiffer ## 8/16/2021 ## ############################################################# setwd("C:\\Users\\salaz\\Desktop\\Moritz\\Autres_interventions_BF") library(r...
/Data/Autres_interventions_BF/Import_Json_Files_Autres_BF.R
permissive
Moritz-Pfeifer/Money-Trust-and-Central-Bank-Communications
R
false
false
70,589
r
######################################################### ## ## Data Import Script ## Sentiment Analysis on Central Bankers ## Client: Moritz Pfiffer ## 8/16/2021 ## ############################################################# setwd("C:\\Users\\salaz\\Desktop\\Moritz\\Autres_interventions_BF") library(r...
#Load packages library(stringi) library(stringr) library(dplyr) library(tidytext) library(readr) #--------------------------------------------------------------------------------------------------- #Read data products <- read.table('C:/Users/Gerardo Flores/Documents/RGroceries/RProductsClassification/productsdata.csv',...
/ItemLabeling.R
no_license
gflores1092/ItemLabeling
R
false
false
9,937
r
#Load packages library(stringi) library(stringr) library(dplyr) library(tidytext) library(readr) #--------------------------------------------------------------------------------------------------- #Read data products <- read.table('C:/Users/Gerardo Flores/Documents/RGroceries/RProductsClassification/productsdata.csv',...
\name{Test2} \alias{Test2} \docType{data} \title{ BACTERIAL GROWTH DATA } \description{ This dataset gives the bacterial growth data over 24 h (3-h interval), including 72 observations, 3 replications in each time point. } \usage{data("Test2")} \format{ A data frame with 72 observations on the following 3 varia...
/man/Test2.Rd
no_license
Menghao-diandian/NormalBacterialGraphicalUsage
R
false
false
672
rd
\name{Test2} \alias{Test2} \docType{data} \title{ BACTERIAL GROWTH DATA } \description{ This dataset gives the bacterial growth data over 24 h (3-h interval), including 72 observations, 3 replications in each time point. } \usage{data("Test2")} \format{ A data frame with 72 observations on the following 3 varia...
# STAT 301-3: Data Science III # Kaggle Competition #2 (Regression) # John Lee # Note: this is the replication file for one of my final submissions, but my original R script is much # longer (~ 1,000 lines of code). I decided to submit a RF model that uses a transformation of the DV to correct # for skew (and t...
/STAT 301-3_regression competition.R
no_license
johnjlee08/kaggle-competitions
R
false
false
9,134
r
# STAT 301-3: Data Science III # Kaggle Competition #2 (Regression) # John Lee # Note: this is the replication file for one of my final submissions, but my original R script is much # longer (~ 1,000 lines of code). I decided to submit a RF model that uses a transformation of the DV to correct # for skew (and t...
#' @include utilities.R #' @importFrom stats median NULL #' Levene's Test #' #' @description Provide a pipe-friendly framework to easily compute Levene's #' test for homogeneity of variance across groups. #' #' Wrapper around the function \code{\link[car]{leveneTest}()}, which can #' additionally handles a groupe...
/R/levene_test.R
no_license
kassambara/rstatix
R
false
false
1,532
r
#' @include utilities.R #' @importFrom stats median NULL #' Levene's Test #' #' @description Provide a pipe-friendly framework to easily compute Levene's #' test for homogeneity of variance across groups. #' #' Wrapper around the function \code{\link[car]{leveneTest}()}, which can #' additionally handles a groupe...
split.data <- function(jeudata, bands, entry, exit, fail, include=names(jeudata), name.runningtime=".t") { # Split data in jeudata with breacks in parameter bands #---------------------------------- # entry is 1e-12 to prevent further problems entry <- ifelse(entry < 1e-12, 1e-12, entry ) Lj...
/R/split_data.R
no_license
cran/flexrsurv
R
false
false
2,097
r
split.data <- function(jeudata, bands, entry, exit, fail, include=names(jeudata), name.runningtime=".t") { # Split data in jeudata with breacks in parameter bands #---------------------------------- # entry is 1e-12 to prevent further problems entry <- ifelse(entry < 1e-12, 1e-12, entry ) Lj...
library(tidyverse) library(rvest) website <- "https://webscraping-tures.github.io/wahlbeteiligung.html" %>% read_html() wahlbeteiligung <- tibble( Bundesland = website %>% html_nodes(css = "span.bundesland-name") %>% html_text(), Wahljahr = website %>% html_nodes(css = "span.wahljahr") %>% h...
/wahlbeteiligung.R
no_license
webscraping-tures/webscraping-tures.github.io
R
false
false
495
r
library(tidyverse) library(rvest) website <- "https://webscraping-tures.github.io/wahlbeteiligung.html" %>% read_html() wahlbeteiligung <- tibble( Bundesland = website %>% html_nodes(css = "span.bundesland-name") %>% html_text(), Wahljahr = website %>% html_nodes(css = "span.wahljahr") %>% h...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doi_parse.R \name{doi_strip_url} \alias{doi_strip_url} \title{Remove the URL part (i.e. "http://dx.doi.org/") from a doi} \usage{ doi_strip_url(doi) } \arguments{ \item{doi}{DOI, with or without URL part} } \value{ string with URL part remove...
/man/doi_strip_url.Rd
permissive
edonnachie/bibr
R
false
true
399
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doi_parse.R \name{doi_strip_url} \alias{doi_strip_url} \title{Remove the URL part (i.e. "http://dx.doi.org/") from a doi} \usage{ doi_strip_url(doi) } \arguments{ \item{doi}{DOI, with or without URL part} } \value{ string with URL part remove...
#' @export nc_loc = function(filename, varid, MARGIN, loc, output=NULL, drop=TRUE, newdim = NULL, name=NULL, longname=NULL, units=NULL, compression=NA, verbose=FALSE, force_v4=TRUE, ignore.case=FALSE) { if(is.null(output)) stop("You must specify an 'output'file...
/R/nctools-transform_internal.R
no_license
roliveros-ramos/nctools
R
false
false
2,437
r
#' @export nc_loc = function(filename, varid, MARGIN, loc, output=NULL, drop=TRUE, newdim = NULL, name=NULL, longname=NULL, units=NULL, compression=NA, verbose=FALSE, force_v4=TRUE, ignore.case=FALSE) { if(is.null(output)) stop("You must specify an 'output'file...
############################################################################# # EDA on FKW # Joseph Fader # MArch, 2019 library(tidyverse) library(feather) library(lubridate) library(fields) # depredation on previous sets when FKW caught sets_deep_all %>% filter(MM_any == 1) %>% group_by(FKW) %>% summariz...
/Scripts/FKW_EDA.R
no_license
joefader/FKWTRT
R
false
false
1,904
r
############################################################################# # EDA on FKW # Joseph Fader # MArch, 2019 library(tidyverse) library(feather) library(lubridate) library(fields) # depredation on previous sets when FKW caught sets_deep_all %>% filter(MM_any == 1) %>% group_by(FKW) %>% summariz...
library('lubridate') library('ggplot2') library('ggmap') library(dplyr) a$month<-as.factor(month(a$Date)) #group_by device & month statics a_month_device <- a %>% group_by(device_id, month) %>% summarise(PM2.5=mean(PM2.5),lat=FindMode(lat),lon=FindMode(lon)) test<-tapply(a_month_device$PM2.5,a_month_device$month,...
/D4SG/D4SG_4_month_2D.R
no_license
ru81git454/D4SG
R
false
false
3,188
r
library('lubridate') library('ggplot2') library('ggmap') library(dplyr) a$month<-as.factor(month(a$Date)) #group_by device & month statics a_month_device <- a %>% group_by(device_id, month) %>% summarise(PM2.5=mean(PM2.5),lat=FindMode(lat),lon=FindMode(lon)) test<-tapply(a_month_device$PM2.5,a_month_device$month,...
library(plyr) library(stringr) pos.words = scan('D:/sem 6/data_visualization/LABS/Lab_7/lab_text-1/lab_text/text-analysis-lab/opinion-lexicon-English/positive-words.txt', what='character', comment.char=';') neg.words = scan('D:/sem 6/data_visualization/LABS/Lab_7/lab_text-1/lab_text/text-analysis-lab/opinion-lexicon-E...
/LABS/Lab_7/lab_text-1/lab_text/text-analysis-lab/sentiment.R
no_license
SagarParekh/data_visualization
R
false
false
2,048
r
library(plyr) library(stringr) pos.words = scan('D:/sem 6/data_visualization/LABS/Lab_7/lab_text-1/lab_text/text-analysis-lab/opinion-lexicon-English/positive-words.txt', what='character', comment.char=';') neg.words = scan('D:/sem 6/data_visualization/LABS/Lab_7/lab_text-1/lab_text/text-analysis-lab/opinion-lexicon-E...
library(FLAME) ### Name: MATCH ### Title: Get Matched Units Given Certain Covariate Combination ### Aliases: MATCH ### ** Examples data(toy_data) result <- FLAME::FLAME_bit(data = toy_data, holdout = toy_data) FLAME::MATCH(FLAME_object = result, cov_name = c("X1", "X2"), cov_val = c("2", "2"))
/data/genthat_extracted_code/FLAME/examples/MATCH.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
302
r
library(FLAME) ### Name: MATCH ### Title: Get Matched Units Given Certain Covariate Combination ### Aliases: MATCH ### ** Examples data(toy_data) result <- FLAME::FLAME_bit(data = toy_data, holdout = toy_data) FLAME::MATCH(FLAME_object = result, cov_name = c("X1", "X2"), cov_val = c("2", "2"))
wrap_it <- function(x, len) { sapply(x, function(y) paste(strwrap(y, len), collapse = "\n"), USE.NAMES = FALSE) } wrap_labels <- function(x, len) { if (is.list(x)) { lapply(x, wrap_it, len) } else { wrap_it(x, len) } } comprss <- function(tx) { tx[is.na(tx)] <- 0 div <- findInterval(tx, c(1, 1e3, ...
/0_graphing_functions.R
permissive
fiona511/PACTA_analysis
R
false
false
171,087
r
wrap_it <- function(x, len) { sapply(x, function(y) paste(strwrap(y, len), collapse = "\n"), USE.NAMES = FALSE) } wrap_labels <- function(x, len) { if (is.list(x)) { lapply(x, wrap_it, len) } else { wrap_it(x, len) } } comprss <- function(tx) { tx[is.na(tx)] <- 0 div <- findInterval(tx, c(1, 1e3, ...
library(LaplacesDemon) nums <- c(20, 100) times <- 1000 dataNormList <- list() dataPoisList <- list() dataLaplList <- list() dataCauchList <- list() dataUnifList <- list() for (i in 1:length(nums)) { num <- nums[i] dataNorm <- rnorm(num, 0, 1) dataPois <- rpois(num, 10) dataLapl <- rlaplac...
/lab3/main.R
no_license
PinkOink/Math_Stat
R
false
false
2,710
r
library(LaplacesDemon) nums <- c(20, 100) times <- 1000 dataNormList <- list() dataPoisList <- list() dataLaplList <- list() dataCauchList <- list() dataUnifList <- list() for (i in 1:length(nums)) { num <- nums[i] dataNorm <- rnorm(num, 0, 1) dataPois <- rpois(num, 10) dataLapl <- rlaplac...
TraitspaceMod <- function(level_1,level_2,level_3,site, N = 100){ #library(mclust) mod = TRUE input <- check(level_1,level_2,level_3,site, N) level_1 <- input$level_1 level_2 <- input$level_2 level_3 <- input$level_3 site.name <- input$site.name unique.site <-unique(input$site) pred.site <- unique.site[rep(seq_len(n...
/output/sources/authors/4672/Traitspace/TraitspaceMod.R
no_license
Irbis3/crantasticScrapper
R
false
false
1,344
r
TraitspaceMod <- function(level_1,level_2,level_3,site, N = 100){ #library(mclust) mod = TRUE input <- check(level_1,level_2,level_3,site, N) level_1 <- input$level_1 level_2 <- input$level_2 level_3 <- input$level_3 site.name <- input$site.name unique.site <-unique(input$site) pred.site <- unique.site[rep(seq_len(n...
#******************************************************* # Summary for gom object summary.gom <- function( object ,...){ cat("----------------------------------------------------------------------------------\n") d1 <- utils::packageDescription("sirt") cat( paste( d1$Package , " " , d1$Version , " (" , d1$Da...
/sirt/R/summary.gom.em.R
no_license
ingted/R-Examples
R
false
false
3,430
r
#******************************************************* # Summary for gom object summary.gom <- function( object ,...){ cat("----------------------------------------------------------------------------------\n") d1 <- utils::packageDescription("sirt") cat( paste( d1$Package , " " , d1$Version , " (" , d1$Da...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 tensor_from_r_ <- function(x, dim) { .Call('_torch_tensor_from_r_', PACKAGE = 'torch', x, dim) } tensor_ <- function(x, dtype, device, requires_grad) { .Call('_torch_tensor_', PACKAGE ...
/R/RcppExports.R
permissive
duarteguilherme/torch
R
false
false
9,038
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 tensor_from_r_ <- function(x, dim) { .Call('_torch_tensor_from_r_', PACKAGE = 'torch', x, dim) } tensor_ <- function(x, dtype, device, requires_grad) { .Call('_torch_tensor_', PACKAGE ...
\name{print.modTempEff} \alias{print.modTempEff} %- Also NEED an '\alias' for EACH other topic documented here. \title{The print method for a 'modTempEff' object} \description{ Prints a Constrained Segmented Distributed Lag Model object } \usage{ \method{print}{modTempEff}(x, digits = max(3, getOption("digits...
/man/print.modTempEff.Rd
no_license
cran/modTempEff
R
false
false
789
rd
\name{print.modTempEff} \alias{print.modTempEff} %- Also NEED an '\alias' for EACH other topic documented here. \title{The print method for a 'modTempEff' object} \description{ Prints a Constrained Segmented Distributed Lag Model object } \usage{ \method{print}{modTempEff}(x, digits = max(3, getOption("digits...
library(rcompanion) ### Name: pairwiseMedianMatrix ### Title: Pairwise Mood's median tests with matrix output ### Aliases: pairwiseMedianMatrix ### ** Examples data(PoohPiglet) PoohPiglet$Speaker = factor(PoohPiglet$Speaker, levels = c("Pooh", "Tigger", "Piglet")) PT = pairwiseMedianMatrix...
/data/genthat_extracted_code/rcompanion/examples/pairwiseMedianMatrix.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
668
r
library(rcompanion) ### Name: pairwiseMedianMatrix ### Title: Pairwise Mood's median tests with matrix output ### Aliases: pairwiseMedianMatrix ### ** Examples data(PoohPiglet) PoohPiglet$Speaker = factor(PoohPiglet$Speaker, levels = c("Pooh", "Tigger", "Piglet")) PT = pairwiseMedianMatrix...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mmBPFA_sampler.R \name{sampler_phase} \alias{sampler_phase} \title{All-in-one function for the sampling procedure} \usage{ sampler_phase( phase, dat, mode, share_noise, d_mask, n_levels, margin_vals, x, lambda, alpha, om...
/man/sampler_phase.Rd
permissive
EandrewJones/mmBPFA
R
false
true
472
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mmBPFA_sampler.R \name{sampler_phase} \alias{sampler_phase} \title{All-in-one function for the sampling procedure} \usage{ sampler_phase( phase, dat, mode, share_noise, d_mask, n_levels, margin_vals, x, lambda, alpha, om...
#' EIA API Category Query #' @export eia_query #' @description A function to pull the available categories in the eia API #' @param api_key A character, the user API key for the eia website #' @param category_id A character, the category ID as defined in the eia API #' @return A list, with the series metadata #' @examp...
/R/eia.R
permissive
RamiKrispin/tsAPI
R
false
false
8,607
r
#' EIA API Category Query #' @export eia_query #' @description A function to pull the available categories in the eia API #' @param api_key A character, the user API key for the eia website #' @param category_id A character, the category ID as defined in the eia API #' @return A list, with the series metadata #' @examp...
x <- c(1, 3, 5) t <- c(4.8, 11.3, 17.2) N <- length(x) m_x <- sum(x) / N m_t <- sum(t) / N m_xt <- sum(x * t) / N m_xx <- sum(x * x) / N w_1 = (m_xt - m_x*m_t)/(m_xx - m_x^2) w_0 = m_t - w_1*m_x plot(x, t, pch=7) curve(w_1 * x + w_0, add=TRUE)
/fitlinear.r
no_license
everlasting/firstcourseml
R
false
false
247
r
x <- c(1, 3, 5) t <- c(4.8, 11.3, 17.2) N <- length(x) m_x <- sum(x) / N m_t <- sum(t) / N m_xt <- sum(x * t) / N m_xx <- sum(x * x) / N w_1 = (m_xt - m_x*m_t)/(m_xx - m_x^2) w_0 = m_t - w_1*m_x plot(x, t, pch=7) curve(w_1 * x + w_0, add=TRUE)
rm(list=ls()) library(grDevices) s1<-rnorm(30,m=0,sd=1) s2<-rnorm(30,m=2,sd=1) a=qnorm(0.025) b=qnorm(0.975) x11() curve(dnorm(x,m=0,sd=1),col='orange', lwd=3, lty=2,xlim=c(-4,6),ylab='Densités de probabilités',main='Loi normale',xlab='s1 et s2') curve(dnorm(x,m=2,sd=1),col=rgb(0.05,0.3,1,0.5), lwd=3, lty=1,xlim=c(...
/tpR_note_ex3.R
no_license
Acathignol/R_note
R
false
false
1,384
r
rm(list=ls()) library(grDevices) s1<-rnorm(30,m=0,sd=1) s2<-rnorm(30,m=2,sd=1) a=qnorm(0.025) b=qnorm(0.975) x11() curve(dnorm(x,m=0,sd=1),col='orange', lwd=3, lty=2,xlim=c(-4,6),ylab='Densités de probabilités',main='Loi normale',xlab='s1 et s2') curve(dnorm(x,m=2,sd=1),col=rgb(0.05,0.3,1,0.5), lwd=3, lty=1,xlim=c(...
#' @rdname log2normw #' @name log2normw #' @title Normalize log weights #' @description #' This function takes a vector of real values, #' then takes the exponential and divides by the sum. #' Substracting the max of the original values #' increases the numerical stability. #' @param lw a vector of real values #' @retu...
/R/util_log2normw.R
no_license
pierrejacob/RBi
R
false
false
459
r
#' @rdname log2normw #' @name log2normw #' @title Normalize log weights #' @description #' This function takes a vector of real values, #' then takes the exponential and divides by the sum. #' Substracting the max of the original values #' increases the numerical stability. #' @param lw a vector of real values #' @retu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rmf-create-hob.R \name{rmf_create_hob} \alias{rmf_create_hob} \alias{create_hob} \title{Create an \code{RMODFLOW} hob object} \usage{ rmf_create_hob(locations, time_series, dis, hydraulic_conductivity = array(1, dim = c(dis$nrow, dis$ncol, ...
/man/rmf_create_hob.Rd
no_license
CasillasMX/RMODFLOW
R
false
true
1,845
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rmf-create-hob.R \name{rmf_create_hob} \alias{rmf_create_hob} \alias{create_hob} \title{Create an \code{RMODFLOW} hob object} \usage{ rmf_create_hob(locations, time_series, dis, hydraulic_conductivity = array(1, dim = c(dis$nrow, dis$ncol, ...
\name{density.ppp} \alias{density.ppp} \title{Kernel Smoothed Intensity of Point Pattern} \description{ Compute a kernel smoothed intensity function from a point pattern. } \usage{ \method{density}{ppp}(x, sigma=NULL, \dots, weights=NULL, edge=TRUE, varcov=NULL, at="pixels", leaveoneout=TRUE, ...
/man/density.ppp.Rd
no_license
rubak/spatstat
R
false
false
16,144
rd
\name{density.ppp} \alias{density.ppp} \title{Kernel Smoothed Intensity of Point Pattern} \description{ Compute a kernel smoothed intensity function from a point pattern. } \usage{ \method{density}{ppp}(x, sigma=NULL, \dots, weights=NULL, edge=TRUE, varcov=NULL, at="pixels", leaveoneout=TRUE, ...
#' Returns pdl data from their CSV files given a list of filenames and the #' relative or absolute path. #' #' @param file_names character vector with the files to be read #' @param path character string with the path #' @import stringi #' @export get_pdl_csv_data <- function(file_names, path) { pdl_df <- data.frame(...
/R/get_pdl_csv_data.R
permissive
rmsharp/snprcspf
R
false
false
1,121
r
#' Returns pdl data from their CSV files given a list of filenames and the #' relative or absolute path. #' #' @param file_names character vector with the files to be read #' @param path character string with the path #' @import stringi #' @export get_pdl_csv_data <- function(file_names, path) { pdl_df <- data.frame(...
#' @title #' Ladder-of-powers histograms #' #' @description #' Explore Tukey's ladder of powers graphically using histograms to identify a #' transform that converts `var`into a normally distributed variable. #' #' Density is shown on the y-axis. The heights of the bars of the histogram #' are scaled so that the sum o...
/R/ggladder.R
permissive
emilelatour/lamisc
R
false
false
5,948
r
#' @title #' Ladder-of-powers histograms #' #' @description #' Explore Tukey's ladder of powers graphically using histograms to identify a #' transform that converts `var`into a normally distributed variable. #' #' Density is shown on the y-axis. The heights of the bars of the histogram #' are scaled so that the sum o...
\name{MRI} \alias{MRI} \docType{data} \title{The magnetic resonance imaging data} \description{Data on 10 studies of magnetic resonance imaging (MRI) for the diagnosis of lymph node metastasis in women with cervical cancer, the last imaging technique in the meta-analysis in Scheidler et al. (1997). Diagnosis of metast...
/man/MRI.Rd
no_license
cran/CopulaREMADA
R
false
false
929
rd
\name{MRI} \alias{MRI} \docType{data} \title{The magnetic resonance imaging data} \description{Data on 10 studies of magnetic resonance imaging (MRI) for the diagnosis of lymph node metastasis in women with cervical cancer, the last imaging technique in the meta-analysis in Scheidler et al. (1997). Diagnosis of metast...
library(clinPK) ### Name: inch2cm ### Title: Convert inch to cm ### Aliases: inch2cm ### ** Examples inch2cm(1)
/data/genthat_extracted_code/clinPK/examples/inch2cm.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
119
r
library(clinPK) ### Name: inch2cm ### Title: Convert inch to cm ### Aliases: inch2cm ### ** Examples inch2cm(1)
#-----------------------------------------------------------------------------------------# # Function: prepare_time_placebo() # # Description: prepares data for the synth function - placebo in-time test # #-------------------------------------------...
/functions/prepare_time_placebo.R
no_license
bruno-ponne/MasterThesis
R
false
false
1,161
r
#-----------------------------------------------------------------------------------------# # Function: prepare_time_placebo() # # Description: prepares data for the synth function - placebo in-time test # #-------------------------------------------...
#' @rdname revdep_check #' @export revdep_check_save_summary <- function(pkg = ".") { pkg <- as.package(pkg) md_all <- revdep_check_summary_md(pkg) writeLines(md_all, file.path(pkg$path, "revdep", "README.md")) md_bad <- revdep_check_summary_md(pkg, has_problem = TRUE) writeLines(md_bad, file.path(pkg$path,...
/R/revdep-summarise.R
no_license
moonboots/devtools
R
false
false
3,902
r
#' @rdname revdep_check #' @export revdep_check_save_summary <- function(pkg = ".") { pkg <- as.package(pkg) md_all <- revdep_check_summary_md(pkg) writeLines(md_all, file.path(pkg$path, "revdep", "README.md")) md_bad <- revdep_check_summary_md(pkg, has_problem = TRUE) writeLines(md_bad, file.path(pkg$path,...
cran <- tools:::R_license_db() resp <- httr::GET("https://github.com/spdx/license-list/blob/master/spdx_licenselist_v2.6.xls?raw=true") writeBin(httr::content(resp,as="raw"), "spdx.xls") spdx <- readxl::read_excel("spdx.xls") ## Manual synthesis happens here ## cran_to_spdx <- readr::read_csv("data-raw/cran-to-spdx...
/inst/extdata/licenses.R
permissive
moranegg/codemetar
R
false
false
378
r
cran <- tools:::R_license_db() resp <- httr::GET("https://github.com/spdx/license-list/blob/master/spdx_licenselist_v2.6.xls?raw=true") writeBin(httr::content(resp,as="raw"), "spdx.xls") spdx <- readxl::read_excel("spdx.xls") ## Manual synthesis happens here ## cran_to_spdx <- readr::read_csv("data-raw/cran-to-spdx...
library(gamlss) ### Name: getSmo ### Title: Extracting Smoother information from a GAMLSS fitted object ### Aliases: getSmo ### Keywords: regression ### ** Examples data(usair) t1<-gamlss(y~x1+pb(x5)+pb(x6), data=usair, family=GA) # get the value for lambda for the second fitted term in mu getSmo(t1, parameter="mu"...
/data/genthat_extracted_code/gamlss/examples/getSmo.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
337
r
library(gamlss) ### Name: getSmo ### Title: Extracting Smoother information from a GAMLSS fitted object ### Aliases: getSmo ### Keywords: regression ### ** Examples data(usair) t1<-gamlss(y~x1+pb(x5)+pb(x6), data=usair, family=GA) # get the value for lambda for the second fitted term in mu getSmo(t1, parameter="mu"...
library(glmnet) mydata = read.table("./TrainingSet/Correlation/liver.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.1,family="gaussian",standardize=TRUE) sink('./Model/EN/Correlation/liver/liver_027.txt',append...
/Model/EN/Correlation/liver/liver_027.R
no_license
leon1003/QSMART
R
false
false
356
r
library(glmnet) mydata = read.table("./TrainingSet/Correlation/liver.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.1,family="gaussian",standardize=TRUE) sink('./Model/EN/Correlation/liver/liver_027.txt',append...
## Check data visually for each subject and generate a subject level data frame with uEMA, Predictions, and Counts ## Import libraries library(psych) library(ggplot2) library(plotly) library(MASS) library(plyr) options(digits.secs=3) ## Read all files #### Read the uEMA response file, actigraph counts file for ankl...
/microEMAWindowManager/TestFiles/subjectLevelDataCheck.R
no_license
adityaponnada/microEMA-Preprocessing
R
false
false
24,878
r
## Check data visually for each subject and generate a subject level data frame with uEMA, Predictions, and Counts ## Import libraries library(psych) library(ggplot2) library(plotly) library(MASS) library(plyr) options(digits.secs=3) ## Read all files #### Read the uEMA response file, actigraph counts file for ankl...
################################################### ## ---------------- ## Development of procedures for sectioning calcified hard parts ## as potential age structures for three Alaska crustacean species ## ---------------- ## ## April L Rebert ## april.rebert@alaska.gov ## Alaska Department of Fish and Game, 802 3rd...
/Rebert_2019_AGE_METHODS.R
no_license
aprilrebert/Rebert_2019_AGE_METHODS
R
false
false
37,092
r
################################################### ## ---------------- ## Development of procedures for sectioning calcified hard parts ## as potential age structures for three Alaska crustacean species ## ---------------- ## ## April L Rebert ## april.rebert@alaska.gov ## Alaska Department of Fish and Game, 802 3rd...
get_libraries <- function(filenames_list) { lapply(filenames_list,function(thelibrary){ if (do.call(require,list(thelibrary)) == FALSE) do.call(install.packages,list(thelibrary)) do.call(library,list(thelibrary)) }) } libraries_used=c("stringr","gtools","foreign","reshape2","digest","timeDate"...
/Exercises/Exerciseset1/helpersSet1.R
permissive
InseadDataAnalytics/INSEADAnalytics
R
false
false
12,933
r
get_libraries <- function(filenames_list) { lapply(filenames_list,function(thelibrary){ if (do.call(require,list(thelibrary)) == FALSE) do.call(install.packages,list(thelibrary)) do.call(library,list(thelibrary)) }) } libraries_used=c("stringr","gtools","foreign","reshape2","digest","timeDate"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/package_version_control.R \name{package_version_github} \alias{package_version_github} \title{Get the most recent package version available} \usage{ package_version_github(repo) } \arguments{ \item{repo}{the name of the package repository on ...
/man/package_version_github.Rd
no_license
ShadeWilson/ihme
R
false
true
790
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/package_version_control.R \name{package_version_github} \alias{package_version_github} \title{Get the most recent package version available} \usage{ package_version_github(repo) } \arguments{ \item{repo}{the name of the package repository on ...
# find the count data for one year of SEER data ### OPTIONS ################################################################### # needs to be specified before calling the script # population year is either 2000 or 2010 (Census year) # popyear <- '2010'; # seer year is the year for which the data is processed # seeryea...
/scripts/incidence-seer/seerCountsOneYear.R
permissive
canghel/cancer-incidence-v5
R
false
false
5,536
r
# find the count data for one year of SEER data ### OPTIONS ################################################################### # needs to be specified before calling the script # population year is either 2000 or 2010 (Census year) # popyear <- '2010'; # seer year is the year for which the data is processed # seeryea...
# Reads in the file data <- read.csv("/Users/benkelleran/Desktop/info201/final-project-migrant-mapper-digitaldelinquent/data/USA_by_birthplace.csv") # Adds the country code for all of the countries data["Country_Code"] <- NA data[1, 'Country_Code'] <- 'AFG' data[2, 'Country_Code'] <- 'ALB' data[3, 'Country_Code'] <- '...
/Updated Data.R
no_license
benkelleran/final-project-migrant-mapper-digitaldelinquent
R
false
false
7,782
r
# Reads in the file data <- read.csv("/Users/benkelleran/Desktop/info201/final-project-migrant-mapper-digitaldelinquent/data/USA_by_birthplace.csv") # Adds the country code for all of the countries data["Country_Code"] <- NA data[1, 'Country_Code'] <- 'AFG' data[2, 'Country_Code'] <- 'ALB' data[3, 'Country_Code'] <- '...
#' plotF #' #' \code{plotF} plots vector of F_std from SS3 report file, with optional overlay of multiple models #' @param SPRseries csv #' @param saveplot logical. should plots be saved #' @param plotloc folder to save plots; if NA, will save in location of cpue_results #' @seealso \code{\link[r4ss]} plotF <-...
/R/plotF.R
no_license
iantaylor-NOAA/kaputils
R
false
false
3,413
r
#' plotF #' #' \code{plotF} plots vector of F_std from SS3 report file, with optional overlay of multiple models #' @param SPRseries csv #' @param saveplot logical. should plots be saved #' @param plotloc folder to save plots; if NA, will save in location of cpue_results #' @seealso \code{\link[r4ss]} plotF <-...
library(data.table) library(survival) ###### type 1 # #tempWriteFile <- paste("~/R/GlCoSy/dataForSubmissions/attd2017/admissionDataDT_T1DM.csv",sep=""); reportingDF<-read.csv(tempWriteFile); reportingDF<-data.table(reportingDF); diabetesType="Type 1 Diabetes. " # ###### type 1 - hba1c revised code # # tempWriteFile <...
/AGNpaper_ROCversion.R
no_license
csainsbury/AGN
R
false
false
12,020
r
library(data.table) library(survival) ###### type 1 # #tempWriteFile <- paste("~/R/GlCoSy/dataForSubmissions/attd2017/admissionDataDT_T1DM.csv",sep=""); reportingDF<-read.csv(tempWriteFile); reportingDF<-data.table(reportingDF); diabetesType="Type 1 Diabetes. " # ###### type 1 - hba1c revised code # # tempWriteFile <...
\name{cooccur} \alias{cooccur} \title{compute Cooccurance} \usage{ cooccur(xi, xj) } \arguments{ \item{xi}{NumericVector with data} \item{xj}{NumericVector with data} } \value{ symmetric matrix with pairwise Aitchison variations } \description{ compute Cooccurance }
/man/cooccur.Rd
no_license
zdk123/codmeR
R
false
false
273
rd
\name{cooccur} \alias{cooccur} \title{compute Cooccurance} \usage{ cooccur(xi, xj) } \arguments{ \item{xi}{NumericVector with data} \item{xj}{NumericVector with data} } \value{ symmetric matrix with pairwise Aitchison variations } \description{ compute Cooccurance }
library(lattice); neighbourhoods <- c("alajo","bukom","old-fadama","shiabu"); labels <- c("dirt-ply\nhand","fl-ply\nhand","offgr\nhand","offgr\nsleep", "dirt\neat","floor\neat","offgr\neat","SWATA\neat", "tap\ndrink","sachet\ndrink"); pdf(paste("./output/","exposure","-no-nb",subset[1],...
/exposure/exposure/v6/v6.graph.r
no_license
YWAN446/Exposure-Assessment-Model
R
false
false
3,478
r
library(lattice); neighbourhoods <- c("alajo","bukom","old-fadama","shiabu"); labels <- c("dirt-ply\nhand","fl-ply\nhand","offgr\nhand","offgr\nsleep", "dirt\neat","floor\neat","offgr\neat","SWATA\neat", "tap\ndrink","sachet\ndrink"); pdf(paste("./output/","exposure","-no-nb",subset[1],...
a<-c(0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0); I<-c(0, 0.0060566927, 0.0240821584, 0.0538553436, 0.0951498554, 0.1477341815, 0.211371909, 0.285821945, 0.3708387366, 0.4661724899, 0.5715693911, 0.68677182...
/src/guseyn/com/output/va.r
no_license
Guseyn/diploma
R
false
false
620
r
a<-c(0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0); I<-c(0, 0.0060566927, 0.0240821584, 0.0538553436, 0.0951498554, 0.1477341815, 0.211371909, 0.285821945, 0.3708387366, 0.4661724899, 0.5715693911, 0.68677182...
library(shiny) library(shinyRGL) library(rgl) # This is the server file to usee - not server_col.R #top3pc = read.csv("top3pc.csv", header=TRUE,row.names=1) #top3pc = read.csv("tcga-lung.csv", header=TRUE,row.names=1) # Read in a flat file that has the eigen vectors for the first three coordinates/components top3pc ...
/GEUVADIS.2-2-16/server.R
no_license
DrOppenheimer/Shiny_fun
R
false
false
7,298
r
library(shiny) library(shinyRGL) library(rgl) # This is the server file to usee - not server_col.R #top3pc = read.csv("top3pc.csv", header=TRUE,row.names=1) #top3pc = read.csv("tcga-lung.csv", header=TRUE,row.names=1) # Read in a flat file that has the eigen vectors for the first three coordinates/components top3pc ...
\name{chebR} \alias{chebR} %- Also NEED an '\alias' for EACH other topic documented here. \title{chebR} \description{ Discrete Linear Chebyshev Approximation } \usage{ chebR(a, b, tol = 1e-15, relerr = 0) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{a}{ matrix with left-hand sides } ...
/man/chebR.Rd
no_license
cran/cheb
R
false
false
2,377
rd
\name{chebR} \alias{chebR} %- Also NEED an '\alias' for EACH other topic documented here. \title{chebR} \description{ Discrete Linear Chebyshev Approximation } \usage{ chebR(a, b, tol = 1e-15, relerr = 0) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{a}{ matrix with left-hand sides } ...
function (x, y) { e <- get("data.env", .GlobalEnv) e[["corC"]][[length(e[["corC"]]) + 1]] <- list(x = x, y = y) .Call("_remote_corC", PACKAGE = "remote", x, y) }
/valgrind_test_dir/corC-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
175
r
function (x, y) { e <- get("data.env", .GlobalEnv) e[["corC"]][[length(e[["corC"]]) + 1]] <- list(x = x, y = y) .Call("_remote_corC", PACKAGE = "remote", x, y) }
library(tidyverse) # A collaborator sends you a file containing data for two years of average race finish times, "times.csv": # # age_group,2015_time,2015_participants,2016_time,2016_participants # 20,3:46,54,3:22,62 # 30,3:50,60,3:43,58 # 40,4:39,29,3:49,33 # 50,4:48,10,...
/Assessment_reshaping_data.R
no_license
wernerdassuncao/data_wrangling
R
false
false
4,918
r
library(tidyverse) # A collaborator sends you a file containing data for two years of average race finish times, "times.csv": # # age_group,2015_time,2015_participants,2016_time,2016_participants # 20,3:46,54,3:22,62 # 30,3:50,60,3:43,58 # 40,4:39,29,3:49,33 # 50,4:48,10,...
intTD_base_NC <- function(func=function(x) return(x), T, Spline, step, Nstep, intweightsfunc = intweights_CAV_SIM, fail=NULL, debug=TRUE, ...){ # compute numerical integral of func*base_i(t) in [0 , T] follow...
/flexrsurv/R/intTD_base.R
no_license
ingted/R-Examples
R
false
false
8,171
r
intTD_base_NC <- function(func=function(x) return(x), T, Spline, step, Nstep, intweightsfunc = intweights_CAV_SIM, fail=NULL, debug=TRUE, ...){ # compute numerical integral of func*base_i(t) in [0 , T] follow...
predict_survival <- function (dat, surv, lambda.value= "1se") { # Status? library(glmnet) tmp <- cv.glmnet(as.matrix(dat), as.matrix(surv), family="cox") # beta.mat <- tmp$beta lambda.model <- tmp$lambda.1se if (lambda.value == "min") lambda.model <- tm...
/R/analysis/survival/predict_survival.R
permissive
matahi/lib
R
false
false
1,162
r
predict_survival <- function (dat, surv, lambda.value= "1se") { # Status? library(glmnet) tmp <- cv.glmnet(as.matrix(dat), as.matrix(surv), family="cox") # beta.mat <- tmp$beta lambda.model <- tmp$lambda.1se if (lambda.value == "min") lambda.model <- tm...
prop_cut <- tibble::tribble( ~unit_number, ~house_number, ~street_name, ~street_type, ~street_suffix, ~suburb, ~postcode, ~address_use_type, ~ward_name, ~property_description, ~northing, ~easting, NA, "27", "AARON", "Avenue", NA, ...
/data-raw/put-example-data.R
no_license
HughParsonage/PSMA
R
false
false
2,371
r
prop_cut <- tibble::tribble( ~unit_number, ~house_number, ~street_name, ~street_type, ~street_suffix, ~suburb, ~postcode, ~address_use_type, ~ward_name, ~property_description, ~northing, ~easting, NA, "27", "AARON", "Avenue", NA, ...
## The workhorse function for the 'Plate List' module: this is a matrix of quality metrics ## for the different plates and links to the per plate quality reports. writeHtml.plateList <- function(cellHTSList, module, exptab, links, center, glossary, outdir, htmldir, configured, con, expO...
/ie.tcd.imm.hits/src/r/2.8/plateListModule.R
no_license
gitter-badger/hits
R
false
false
39,363
r
## The workhorse function for the 'Plate List' module: this is a matrix of quality metrics ## for the different plates and links to the per plate quality reports. writeHtml.plateList <- function(cellHTSList, module, exptab, links, center, glossary, outdir, htmldir, configured, con, expO...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.organizations_operations.R \name{create_organizational_unit} \alias{create_organizational_unit} \title{Creates an organizational unit (OU) within a root or parent OU} \usage{ create_organizational_unit(ParentId, Name) } \arguments{ \item...
/service/paws.organizations/man/create_organizational_unit.Rd
permissive
CR-Mercado/paws
R
false
true
1,989
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.organizations_operations.R \name{create_organizational_unit} \alias{create_organizational_unit} \title{Creates an organizational unit (OU) within a root or parent OU} \usage{ create_organizational_unit(ParentId, Name) } \arguments{ \item...
testlist <- list(Beta = 0, CVLinf = 1.15764670941116e+171, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.2...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615830909-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,052
r
testlist <- list(Beta = 0, CVLinf = 1.15764670941116e+171, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.2...
# Partial Least Squares Discriminant Analysis # load the package library(caret) data(iris) x <- iris[,1:4] y <- iris[,5] # fit model fit <- plsda(x, y, probMethod="Bayes") # summarize the fit print(fit) # make predictions predictions <- predict(fit, iris[,1:4]) # summarize accuracy table(predictions, iris$Species)
/08_Machine_Learning_Mastery_with_R/03_Algorithms/01_Algorithms/4-LinearClassification/partial_least_squares_discriminant_analysis.R
no_license
jggrimesdc-zz/MachineLearningExercises
R
false
false
317
r
# Partial Least Squares Discriminant Analysis # load the package library(caret) data(iris) x <- iris[,1:4] y <- iris[,5] # fit model fit <- plsda(x, y, probMethod="Bayes") # summarize the fit print(fit) # make predictions predictions <- predict(fit, iris[,1:4]) # summarize accuracy table(predictions, iris$Species)
########################################################################### # Compare models to select best models library(brms) library(tidyverse) files <- list.files("./models", pattern = ".rds$") files <- files[!grepl("_gamma_", files)] files <- files[grepl("_log_", files)] traits <- unique(unlist(lapply(files, ...
/scripts/07_brms_model_comparison.R
no_license
poniitty/ITV_grids
R
false
false
2,750
r
########################################################################### # Compare models to select best models library(brms) library(tidyverse) files <- list.files("./models", pattern = ".rds$") files <- files[!grepl("_gamma_", files)] files <- files[grepl("_log_", files)] traits <- unique(unlist(lapply(files, ...
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://d...
/R/ApiResponseZacksSalesSurprises.r
no_license
intrinio/r-sdk
R
false
false
4,299
r
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://d...
##%%%%%%%%%% ## R script to run analyses of lagged effects of climate and land use ## Supplementary Analyses - testing use of alternative env data ##%%%%%%%%%% rm(list = ls()) graphics.off() # Packages library(lme4) #~ LMMs library(MuMIn) #~ Model selection library(car) #~ Model selecti...
/Code/10_env_models.R
permissive
rcornf/lpi_lags_2023
R
false
false
7,888
r
##%%%%%%%%%% ## R script to run analyses of lagged effects of climate and land use ## Supplementary Analyses - testing use of alternative env data ##%%%%%%%%%% rm(list = ls()) graphics.off() # Packages library(lme4) #~ LMMs library(MuMIn) #~ Model selection library(car) #~ Model selecti...
library(glmnet) mydata = read.table("./TrainingSet/Correlation/bone.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.9,family="gaussian",standardize=FALSE) sink('./Model/EN/Correlation/bone/bone_090.txt',append=T...
/Model/EN/Correlation/bone/bone_090.R
no_license
leon1003/QSMART
R
false
false
354
r
library(glmnet) mydata = read.table("./TrainingSet/Correlation/bone.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.9,family="gaussian",standardize=FALSE) sink('./Model/EN/Correlation/bone/bone_090.txt',append=T...
#call up library library(remotes) remotes::install_github("allisonhorst/palmerpenguins") library(palmerpenguins) library(tidyverse) #data viz scatter size x species ggplot(data =penguins, aes(x = flipper_length_mm, y = body_mass_g))+ geom_point(aes(color = island, ...
/DataVisualization.R
no_license
BassilR/BAR3
R
false
false
3,080
r
#call up library library(remotes) remotes::install_github("allisonhorst/palmerpenguins") library(palmerpenguins) library(tidyverse) #data viz scatter size x species ggplot(data =penguins, aes(x = flipper_length_mm, y = body_mass_g))+ geom_point(aes(color = island, ...
library(readr) library(tidyr) library(ggplot2) border_data <- Border_Crossing_Entry_Data str(border_data) min(border_data$Date) max(border_data$Date) head(border_data) border_data %>% group_by(year(Date)) %>% ggplot(aes(x = Date, y = Value)) + geom_point() + facet_wrap(~ Border) table(border_data$Stat...
/code.R
no_license
vicyingc/USimmigration
R
false
false
324
r
library(readr) library(tidyr) library(ggplot2) border_data <- Border_Crossing_Entry_Data str(border_data) min(border_data$Date) max(border_data$Date) head(border_data) border_data %>% group_by(year(Date)) %>% ggplot(aes(x = Date, y = Value)) + geom_point() + facet_wrap(~ Border) table(border_data$Stat...
## load.all.data.R ## David M. Budden ## 07/04/2014 ## ## from 'Exploring redundancy in mammalian transcriptional regulation by predictive modeling of gene expression' ## load expression, TF-binding, HM and DNase-I hypersensitivity data from Ouyang09 and McLeay12 ## ## www.davidbudden.com/contact ## NOTE: Correct co...
/scripts/common/load.all.data.R
no_license
uomsystemsbiology/budden2014predictive
R
false
false
1,616
r
## load.all.data.R ## David M. Budden ## 07/04/2014 ## ## from 'Exploring redundancy in mammalian transcriptional regulation by predictive modeling of gene expression' ## load expression, TF-binding, HM and DNase-I hypersensitivity data from Ouyang09 and McLeay12 ## ## www.davidbudden.com/contact ## NOTE: Correct co...
# Getting and Cleaning Data Project John Hopkins Coursera # Author: Tiffany Ye # 1. Merges the training and the test sets to create one data set. # 2. Extracts only the measurements on the mean and standard deviation for each measurement. # 3. Uses descriptive activity names to name the activities in the data set...
/run_analysis.R
no_license
Tiffany2122/Getting-and-Cleaning-Data-Course-Project
R
false
false
2,881
r
# Getting and Cleaning Data Project John Hopkins Coursera # Author: Tiffany Ye # 1. Merges the training and the test sets to create one data set. # 2. Extracts only the measurements on the mean and standard deviation for each measurement. # 3. Uses descriptive activity names to name the activities in the data set...
rm(list=ls()) library(e1071) library(pROC) training<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/mRMR/CAD Dataset Train70p.csv") testing<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/mRMR/CAD Dataset Test30p.csv") nb_default <- naiveBayes(as.factor(Cath)~., data=training,laplace = 3) default_pred <- pr...
/mRMR/NB.R
permissive
UtshaDas/CAD-Classification
R
false
false
902
r
rm(list=ls()) library(e1071) library(pROC) training<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/mRMR/CAD Dataset Train70p.csv") testing<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/mRMR/CAD Dataset Test30p.csv") nb_default <- naiveBayes(as.factor(Cath)~., data=training,laplace = 3) default_pred <- pr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cluster_app.R \name{cluster_app} \alias{cluster_app} \title{Cluster_app function} \usage{ cluster_app(data, cluster.list, cluster.pvalue, cluster.height, id.col, time.col, x.col, y.col, gen.col, cols) } \arguments{ \item{data}{} \item{clus...
/man/cluster_app.Rd
no_license
lsoetens/ClusterViz
R
false
true
596
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cluster_app.R \name{cluster_app} \alias{cluster_app} \title{Cluster_app function} \usage{ cluster_app(data, cluster.list, cluster.pvalue, cluster.height, id.col, time.col, x.col, y.col, gen.col, cols) } \arguments{ \item{data}{} \item{clus...
# exercise 1 x<-1:12 v<-c(x) cat("Vector: ", v) # exercise 2 cat("4 repetitions of 6,2,4 :") rep(c(6,2,4),4) # exercise 3 s<-c(rep(9,6), rep(2,5), rep(5,4)) cat("Generated sequence: ", s) cat("Generated matrix: ") matrix(s,5,3,byrow=TRUE) # exercise 4 set.seed(100) n<-rnorm(20) cat("Generated vector: ") n mean <- ...
/Practical Work 1/practical1.R
no_license
TomasNovo/UPV-Data-Science
R
false
false
3,173
r
# exercise 1 x<-1:12 v<-c(x) cat("Vector: ", v) # exercise 2 cat("4 repetitions of 6,2,4 :") rep(c(6,2,4),4) # exercise 3 s<-c(rep(9,6), rep(2,5), rep(5,4)) cat("Generated sequence: ", s) cat("Generated matrix: ") matrix(s,5,3,byrow=TRUE) # exercise 4 set.seed(100) n<-rnorm(20) cat("Generated vector: ") n mean <- ...