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
\name{toLatex-ftable} \title{Convert Flat Contingency Table (ftable) and VarLists to LaTeX Table} \alias{toLatex.ftable} \alias{toLatex.varlist} \alias{fftable} \alias{tablines} \alias{cattablines} \description{ The \code{\link{ftable}} method of \code{\link{toLatex}()} converts an \code{ftable} to a LaTeX table vi...
/man/toLatex-ftable.Rd
no_license
cran/simsalapar
R
false
false
7,679
rd
\name{toLatex-ftable} \title{Convert Flat Contingency Table (ftable) and VarLists to LaTeX Table} \alias{toLatex.ftable} \alias{toLatex.varlist} \alias{fftable} \alias{tablines} \alias{cattablines} \description{ The \code{\link{ftable}} method of \code{\link{toLatex}()} converts an \code{ftable} to a LaTeX table vi...
source('./GIS_module/Function/Irrigation/N2O_N_module.R') source('./GIS_module/Function/Irrigation/Runoff_N_module.R') ## VERY IMPORTANT ------------------------------------------------ ## gross irrigation N aggregated per individual irrigation systems are available in raster format in the activity data ## subfolder i...
/GIS_module/Function/Irrigation/Net_irrigation_N_module.R
permissive
shekharsg/MITERRA-PORTUGAL
R
false
false
3,509
r
source('./GIS_module/Function/Irrigation/N2O_N_module.R') source('./GIS_module/Function/Irrigation/Runoff_N_module.R') ## VERY IMPORTANT ------------------------------------------------ ## gross irrigation N aggregated per individual irrigation systems are available in raster format in the activity data ## subfolder i...
#' Cut and trim a string #' #' @param string string in question #' @param start please see \link[string]{\code{str_sub}} #' @param end please see \link[string]{\code{str_sub}} #' @exmaples cut_and_trim_string("1 2 3 4 5 6 7 8 9", 2, 5) # "2 3" cut_and_trim_string <- function(string, start, end) { str_trim(str_sub(stri...
/R/url.R
no_license
arturochian/raconteur
R
false
false
2,999
r
#' Cut and trim a string #' #' @param string string in question #' @param start please see \link[string]{\code{str_sub}} #' @param end please see \link[string]{\code{str_sub}} #' @exmaples cut_and_trim_string("1 2 3 4 5 6 7 8 9", 2, 5) # "2 3" cut_and_trim_string <- function(string, start, end) { str_trim(str_sub(stri...
#' Coerce Between tif Object Specifications #' #' These functions convert between the various valid #' formats for corpus and tokens objects. By using these #' in other packages, maintainers need to only handle #' whichever specific format they would like to work #' with, but gain the freedom to output (or convert #' i...
/R/coercion.R
no_license
unDocUMeantIt/tif
R
false
false
4,088
r
#' Coerce Between tif Object Specifications #' #' These functions convert between the various valid #' formats for corpus and tokens objects. By using these #' in other packages, maintainers need to only handle #' whichever specific format they would like to work #' with, but gain the freedom to output (or convert #' i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/authentication.R \name{OIDCAuth} \alias{OIDCAuth} \title{OIDC Authentication} \description{ defines classes for different OpenID connect interaction mechanisms. The classes are modeled in generalized fashion by inheriting functions from \code...
/man/OIDCAuth.Rd
permissive
Open-EO/openeo-r-client
R
false
true
4,551
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/authentication.R \name{OIDCAuth} \alias{OIDCAuth} \title{OIDC Authentication} \description{ defines classes for different OpenID connect interaction mechanisms. The classes are modeled in generalized fashion by inheriting functions from \code...
##CTE534_ClasificacionSupervisada=group ##Imagen=raster ##Vector=vector ##Codigo=field Vector ##Usos=field Vector ##Clasificacion=output raster #showplots Salida<-raster::extract(Imagen, Vector, df=TRUE) Vector$ID<-row.names(Vector) TablaUsos<-merge(Salida, Vector, x.by="ID", by.y="ID") #Rasterizar EntrenamientoRaster...
/Rscripts/03_Prediccion.rsx
permissive
klauswiese/QGIS-R
R
false
false
1,108
rsx
##CTE534_ClasificacionSupervisada=group ##Imagen=raster ##Vector=vector ##Codigo=field Vector ##Usos=field Vector ##Clasificacion=output raster #showplots Salida<-raster::extract(Imagen, Vector, df=TRUE) Vector$ID<-row.names(Vector) TablaUsos<-merge(Salida, Vector, x.by="ID", by.y="ID") #Rasterizar EntrenamientoRaster...
#Librerias para trabajar con XML library("XML") library("methods") #Lectura de los datos df <- xmlToDataFrame("C:\\resulQuery.xml") #Vector numerico del tiempo original estimado de las tareas o_e <- as.numeric(as.character(df$Original_Estimate)) #Histogramas del tiempo original estimado #Sabiendo el numero de difere...
/Ficheros/R/PPNumerico.R
no_license
LL15/TFG
R
false
false
2,489
r
#Librerias para trabajar con XML library("XML") library("methods") #Lectura de los datos df <- xmlToDataFrame("C:\\resulQuery.xml") #Vector numerico del tiempo original estimado de las tareas o_e <- as.numeric(as.character(df$Original_Estimate)) #Histogramas del tiempo original estimado #Sabiendo el numero de difere...
devtools::load_all() # Download data ---- # Get current ftol data version ftol_data_version <- ft_data_ver() # Download zipped FTOL data download.file( glue::glue("https://github.com/fernphy/ftol_data/archive/refs/tags/v{ftol_data_version}.zip"), # nolint here::here("data-raw/ftol.zip") ) # Unzip data utils::un...
/data-raw/import_data.R
permissive
fernphy/ftolr
R
false
false
3,364
r
devtools::load_all() # Download data ---- # Get current ftol data version ftol_data_version <- ft_data_ver() # Download zipped FTOL data download.file( glue::glue("https://github.com/fernphy/ftol_data/archive/refs/tags/v{ftol_data_version}.zip"), # nolint here::here("data-raw/ftol.zip") ) # Unzip data utils::un...
STAT306 Lab 03 : ## Fitting simple linear regression model using the statement "lm" in R. #Read-in the data as we did in Lab 2. #stock <-read.table("Downloads/stock.txt", header=T) #stock <-read.table("F:/STAT306-2015/Lab2015/Lab1/stock.txt", header=T) # To view the first 5 rows of the data file stock[1:5,] # To del...
/lab/lab3.R
no_license
weininghu1012/STAT306
R
false
false
3,003
r
STAT306 Lab 03 : ## Fitting simple linear regression model using the statement "lm" in R. #Read-in the data as we did in Lab 2. #stock <-read.table("Downloads/stock.txt", header=T) #stock <-read.table("F:/STAT306-2015/Lab2015/Lab1/stock.txt", header=T) # To view the first 5 rows of the data file stock[1:5,] # To del...
#' Download shape files of meso region as sf objects. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674) #' #' Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674) #' #' @param year Year of the data (defaults to 2010) #' @param code_meso The 4-digit code o...
/r-package/R/read_meso_region.R
no_license
ALXAVIER-DEV/geobr
R
false
false
2,977
r
#' Download shape files of meso region as sf objects. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674) #' #' Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674) #' #' @param year Year of the data (defaults to 2010) #' @param code_meso The 4-digit code o...
# Author: Robert J. Hijmans # Date : March 2009 # Licence GPL v3 # updated November 2011 # version 1.0 .bilinearValue <- function(raster, xyCoords, layer, n) { bilinear_old <- function(x, y, x1, x2, y1, y2, v) { v <- v / ((x2-x1)*(y2-y1)) return( v[,1]*(x2-x)*(y2-y) + v[,3]*(x-x1)*(y2-y) + v[,...
/raster/R/bilinearValue.R
no_license
radfordneal/R-package-mods
R
false
false
3,771
r
# Author: Robert J. Hijmans # Date : March 2009 # Licence GPL v3 # updated November 2011 # version 1.0 .bilinearValue <- function(raster, xyCoords, layer, n) { bilinear_old <- function(x, y, x1, x2, y1, y2, v) { v <- v / ((x2-x1)*(y2-y1)) return( v[,1]*(x2-x)*(y2-y) + v[,3]*(x-x1)*(y2-y) + v[,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exportEdgeResult.R \name{writeDgeTablesWithPseudoT} \alias{writeDgeTablesWithPseudoT} \title{Write dgeTables with pseudo T statistics} \usage{ writeDgeTablesWithPseudoT(edgeResult, outdir = getwd()) } \arguments{ \item{edgeResult}{An \code{Ed...
/man/writeDgeTablesWithPseudoT.Rd
no_license
bedapub/ribiosNGS
R
false
true
521
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exportEdgeResult.R \name{writeDgeTablesWithPseudoT} \alias{writeDgeTablesWithPseudoT} \title{Write dgeTables with pseudo T statistics} \usage{ writeDgeTablesWithPseudoT(edgeResult, outdir = getwd()) } \arguments{ \item{edgeResult}{An \code{Ed...
.onAttach <- function(libname, pkgname){ packageStartupMessage(StartWelcomeMessage()) } # .onUnload <- function (libpath) { # library.dynam.unload("mypackage", libpath) # } StartWelcomeMessage <- function(){ paste("GDINA Package ", "(version ", utils::packageDescription("GDINA")$Version, "; ",ut...
/R/zzz.R
no_license
miguel-sorrel/GDINA-1
R
false
false
451
r
.onAttach <- function(libname, pkgname){ packageStartupMessage(StartWelcomeMessage()) } # .onUnload <- function (libpath) { # library.dynam.unload("mypackage", libpath) # } StartWelcomeMessage <- function(){ paste("GDINA Package ", "(version ", utils::packageDescription("GDINA")$Version, "; ",ut...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getCoxInfo.R \name{coxN} \alias{coxN} \alias{coxN.cph} \alias{coxN.coxph} \alias{coxN.phreg} \title{Extract the number of observations from a Cox model} \usage{ coxN(object) \method{coxN}{cph}(object) \method{coxN}{coxph}(object) \method{c...
/man/coxN.Rd
no_license
bozenne/riskRegressionLight
R
false
true
630
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getCoxInfo.R \name{coxN} \alias{coxN} \alias{coxN.cph} \alias{coxN.coxph} \alias{coxN.phreg} \title{Extract the number of observations from a Cox model} \usage{ coxN(object) \method{coxN}{cph}(object) \method{coxN}{coxph}(object) \method{c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_alpha_diversity.R \name{plot_alpha_diversity} \alias{plot_alpha_diversity} \title{plot_alpha_diversity} \usage{ plot_alpha_diversity(phyloseq, feature, feature2 = NA, measures = NA, p_test = "kruskal", colors = NULL) } \arguments{ \ite...
/man/plot_alpha_diversity.Rd
no_license
Luponsky/visual16S
R
false
true
1,619
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_alpha_diversity.R \name{plot_alpha_diversity} \alias{plot_alpha_diversity} \title{plot_alpha_diversity} \usage{ plot_alpha_diversity(phyloseq, feature, feature2 = NA, measures = NA, p_test = "kruskal", colors = NULL) } \arguments{ \ite...
#importing the libraries library(tidyverse) library(readxl) #importing the dataset uitilities <- read_excel("C:/Users/Sunnation/Desktop/uitilities.xlsx") #exploring the dataset str(uitilities) sum(is.na(uitilities)) #no NA's in data summary(uitilities) pairs(uitilities %>% select(-Company)) #viewing the different da...
/Hieraricial_clustering_R.R
no_license
sharmajee499/Hierarchical_clustering_R
R
false
false
2,821
r
#importing the libraries library(tidyverse) library(readxl) #importing the dataset uitilities <- read_excel("C:/Users/Sunnation/Desktop/uitilities.xlsx") #exploring the dataset str(uitilities) sum(is.na(uitilities)) #no NA's in data summary(uitilities) pairs(uitilities %>% select(-Company)) #viewing the different da...
#CODE FROM http://rfunctions.blogspot.com/2013/03/spatial-analysis-split-one-shapefile.html TO SPLIT SHAPEFILES library(sp) library(rgdal) #Load physiological data mydir= "C:\\Users\\Buckley\\Google Drive\\Buckley\\Work\\TNZ\\" setwd(paste(mydir,"MRelevation\\Data\\", sep="")) ##ESTRACT FILES FOR ADDITIONAL...
/MRelevation_SplitMammalShapefiles.R
no_license
lbuckley/tnz
R
false
false
3,964
r
#CODE FROM http://rfunctions.blogspot.com/2013/03/spatial-analysis-split-one-shapefile.html TO SPLIT SHAPEFILES library(sp) library(rgdal) #Load physiological data mydir= "C:\\Users\\Buckley\\Google Drive\\Buckley\\Work\\TNZ\\" setwd(paste(mydir,"MRelevation\\Data\\", sep="")) ##ESTRACT FILES FOR ADDITIONAL...
# author_name-------------------------------- # Documentation #' Pull first name(s) and last name for a given list of orcid #' @description Pull and format first name(s) and last name for a given list of orcid #' @param data datafame containing a vectors of the author name (split into first_name and last_name) #' @para...
/R/author_name.R
no_license
kamclean/collaborator
R
false
false
2,844
r
# author_name-------------------------------- # Documentation #' Pull first name(s) and last name for a given list of orcid #' @description Pull and format first name(s) and last name for a given list of orcid #' @param data datafame containing a vectors of the author name (split into first_name and last_name) #' @para...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.backup_operations.R \name{get_supported_resource_types} \alias{get_supported_resource_types} \title{Returns the AWS resource types supported by AWS Backup} \usage{ get_supported_resource_types() } \description{ Returns the AWS resource t...
/service/paws.backup/man/get_supported_resource_types.Rd
permissive
CR-Mercado/paws
R
false
true
352
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.backup_operations.R \name{get_supported_resource_types} \alias{get_supported_resource_types} \title{Returns the AWS resource types supported by AWS Backup} \usage{ get_supported_resource_types() } \description{ Returns the AWS resource t...
#Plot 1 > h<-subset(household_power_consumption,household_power_consumption$Date=="1/2/2007"|household_power_consumption$Date=="2/2/2007") > h[1:5,] > hist(as.numeric(as.character(h$Global_active_power)),col="red",main="Global Active Power",xlab="Global Active Power(kilowatts)") > > dev.copy(png,filename="Plot1...
/Plot1.R
no_license
Aadhish94/exploratory-data-analysis-project-1
R
false
false
349
r
#Plot 1 > h<-subset(household_power_consumption,household_power_consumption$Date=="1/2/2007"|household_power_consumption$Date=="2/2/2007") > h[1:5,] > hist(as.numeric(as.character(h$Global_active_power)),col="red",main="Global Active Power",xlab="Global Active Power(kilowatts)") > > dev.copy(png,filename="Plot1...
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
/epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926575-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
1,101
r
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
#' rnagsvaheat function #' #' Uses ComplexHeatmap to draw heatmap for GSVA analysis #' #' @param pat2 data frame generated by rnasubset function #' @param rnagsva data frame of GSVA values #' @param rnasgsvasig data frame of significant gene sets from rnagsvasig function #' @param gene character(1) Gene symbol of gene ...
/R/rnagsvaheat.R
no_license
woodhaha/TCGAbrowser
R
false
false
2,211
r
#' rnagsvaheat function #' #' Uses ComplexHeatmap to draw heatmap for GSVA analysis #' #' @param pat2 data frame generated by rnasubset function #' @param rnagsva data frame of GSVA values #' @param rnasgsvasig data frame of significant gene sets from rnagsvasig function #' @param gene character(1) Gene symbol of gene ...
#EasyCharts团队出品, #如有问题修正与深入学习,可联系微信:EasyCharts library(ggplot2) df<-read.csv("Facet_Data.csv", header = TRUE) #------------------------------------------------------ÀëÉ¢ÐÍ------------------------------------------ library(RColorBrewer) ggplot(df, aes(x=SOD,y=tau,fill=Class)) + geom_point(shape=21,size=3,colour="...
/第1章 R语言编程与绘图基础/图1-7-18 离散型颜色主题方案.R
no_license
EasyChart/Beautiful-Visualization-with-R
R
false
false
3,420
r
#EasyCharts团队出品, #如有问题修正与深入学习,可联系微信:EasyCharts library(ggplot2) df<-read.csv("Facet_Data.csv", header = TRUE) #------------------------------------------------------ÀëÉ¢ÐÍ------------------------------------------ library(RColorBrewer) ggplot(df, aes(x=SOD,y=tau,fill=Class)) + geom_point(shape=21,size=3,colour="...
#goal: 1. load .csv. 2. subset class of job title to new data frame. 3. show the distribution of salaries for the #different class of assigned job class, 4. order the categories on the plot from lowest to highest paid, #5. generate abbreviated names for each category along the x-axis, 6. add a color to each of the b...
/R_code/Homework #2.R
no_license
ajharnisch/255E
R
false
false
2,172
r
#goal: 1. load .csv. 2. subset class of job title to new data frame. 3. show the distribution of salaries for the #different class of assigned job class, 4. order the categories on the plot from lowest to highest paid, #5. generate abbreviated names for each category along the x-axis, 6. add a color to each of the b...
## Below are two functions that work together to use a cached value of the inverse of a ## matrix if it is available ## makeCacheMatrix creates a list of functions that set or get the value of the input matrix and its inverse makeCacheMatrix <- function(x = matrix()){ inv <- NULL set <- function(y) { x <<- y i...
/cachematrix.R
no_license
aathavank/ProgrammingAssignment2
R
false
false
883
r
## Below are two functions that work together to use a cached value of the inverse of a ## matrix if it is available ## makeCacheMatrix creates a list of functions that set or get the value of the input matrix and its inverse makeCacheMatrix <- function(x = matrix()){ inv <- NULL set <- function(y) { x <<- y i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/retro.R \name{runwithout} \alias{runwithout} \alias{runwithout.sam} \title{runwithout helper function} \usage{ runwithout(fit, year, fleet, ...) \method{runwithout}{sam}(fit, year = NULL, fleet = NULL, map = fit$obj$env$map, ...) } \argument...
/stockassessment/man/runwithout.Rd
no_license
fishfollower/SAM
R
false
true
809
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/retro.R \name{runwithout} \alias{runwithout} \alias{runwithout.sam} \title{runwithout helper function} \usage{ runwithout(fit, year, fleet, ...) \method{runwithout}{sam}(fit, year = NULL, fleet = NULL, map = fit$obj$env$map, ...) } \argument...
# bind global variables utils::globalVariables(c("OR", "lower", "upper", "p", "grp.est", "ci.low", "ci.high")) #' @title Plot estimates, predictions or effects of generalized linear models #' @name sjp.glm #' #' @seealso \href{http://www.strengejacke.de/sjPlot/sjp.glm/}{sjPlot manual: sjp.glm} #' #' @description Plot...
/R/sjPlotOdds.R
no_license
derele/sjPlot
R
false
false
54,541
r
# bind global variables utils::globalVariables(c("OR", "lower", "upper", "p", "grp.est", "ci.low", "ci.high")) #' @title Plot estimates, predictions or effects of generalized linear models #' @name sjp.glm #' #' @seealso \href{http://www.strengejacke.de/sjPlot/sjp.glm/}{sjPlot manual: sjp.glm} #' #' @description Plot...
############################################################################### # Dec 18 # Dynamic Community Occupancy Models - Sky Islands # Marginalized Stan version # # Notes: # * # # To do: # * format .Stan code (identation!) # ######...
/Application_5/Stan_Marginalized.R
no_license
mariadzul-usgs/Marginalized
R
false
false
3,828
r
############################################################################### # Dec 18 # Dynamic Community Occupancy Models - Sky Islands # Marginalized Stan version # # Notes: # * # # To do: # * format .Stan code (identation!) # ######...
# 1 Read file in to a table x <- readLines(con = 'datasets/test_dataset.txt') dna_seqs <- (x[seq(from = 2, to = length(x), by = 2)]) #2 create nested list with each sequences substring #3 sort each of the substring lists in place #4 iterate through first nested list to find the LCS
/bioinformatics-stronghold/finding-a-shared-motif.R
no_license
samleenz/rosalind
R
false
false
292
r
# 1 Read file in to a table x <- readLines(con = 'datasets/test_dataset.txt') dna_seqs <- (x[seq(from = 2, to = length(x), by = 2)]) #2 create nested list with each sequences substring #3 sort each of the substring lists in place #4 iterate through first nested list to find the LCS
## summarise and annotate features ##----------------------------------------------------------------------------## ## Function to get feature annotation information from biomaRt #' Get feature annotation information from Biomart #' #' Use the \pkg{biomaRt} package to add feature annotation information to an \code{...
/R/feature-preprocessing.R
permissive
chenxofhit/scater
R
false
false
14,717
r
## summarise and annotate features ##----------------------------------------------------------------------------## ## Function to get feature annotation information from biomaRt #' Get feature annotation information from Biomart #' #' Use the \pkg{biomaRt} package to add feature annotation information to an \code{...
####################################################################### # stream - Infrastructure for Data Stream Mining # Copyright (C) 2022 Michael Hahsler # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwa...
/R/DST_SlidingWindow.R
no_license
mhahsler/stream
R
false
false
6,575
r
####################################################################### # stream - Infrastructure for Data Stream Mining # Copyright (C) 2022 Michael Hahsler # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwa...
library(shiny) library(dplyr) source("./Data Wrangling.R") state.names <- DRG.location.payments %>% group_by(Provider.State) %>% summarise() city.names <- DRG.location.payments %>% group_by(Provider.City) %>% summarise() zip.names <- DRG.location.payments %>% group_by(Provider.Zip.Code) %>% summaris...
/ui.R
no_license
scbish/Project_Hospital_Information
R
false
false
4,289
r
library(shiny) library(dplyr) source("./Data Wrangling.R") state.names <- DRG.location.payments %>% group_by(Provider.State) %>% summarise() city.names <- DRG.location.payments %>% group_by(Provider.City) %>% summarise() zip.names <- DRG.location.payments %>% group_by(Provider.Zip.Code) %>% summaris...
dataset <- read.csv('../data/50_Startups.csv') head(dataset) dataset$State <- factor(dataset$State, levels = c("New York", "California", "Florida"), labels = c(1,2,3)) library(caTools) set.seed(123) split <- sample.split(dataset$Profit, SplitRatio = 0.8) training_set <- s...
/R/mulyipleLinear.R
no_license
ducksfrogs/udemy_data_sci
R
false
false
826
r
dataset <- read.csv('../data/50_Startups.csv') head(dataset) dataset$State <- factor(dataset$State, levels = c("New York", "California", "Florida"), labels = c(1,2,3)) library(caTools) set.seed(123) split <- sample.split(dataset$Profit, SplitRatio = 0.8) training_set <- s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/m2LLrr.R \name{m2LLrr} \alias{m2LLrr} \title{minus 2 times log-likelihood for reduced rank models using Sherman-Morrison-Woodbury} \usage{ m2LLrr(theta, z, rrDist, knDist, corMod = "exp", estMeth = "REML") } \arguments{ \item{theta}{vector of...
/man/m2LLrr.Rd
no_license
jayverhoef/KrigLinCaution
R
false
true
1,195
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/m2LLrr.R \name{m2LLrr} \alias{m2LLrr} \title{minus 2 times log-likelihood for reduced rank models using Sherman-Morrison-Woodbury} \usage{ m2LLrr(theta, z, rrDist, knDist, corMod = "exp", estMeth = "REML") } \arguments{ \item{theta}{vector of...
\alias{gtkMenuNew} \name{gtkMenuNew} \title{gtkMenuNew} \description{Creates a new \code{\link{GtkMenu}}.} \usage{gtkMenuNew(show = TRUE)} \value{[\code{\link{GtkWidget}}] a new \code{\link{GtkMenu}}.} \author{Derived by RGtkGen from GTK+ documentation} \keyword{internal}
/RGtk2/man/gtkMenuNew.Rd
no_license
lawremi/RGtk2
R
false
false
273
rd
\alias{gtkMenuNew} \name{gtkMenuNew} \title{gtkMenuNew} \description{Creates a new \code{\link{GtkMenu}}.} \usage{gtkMenuNew(show = TRUE)} \value{[\code{\link{GtkWidget}}] a new \code{\link{GtkMenu}}.} \author{Derived by RGtkGen from GTK+ documentation} \keyword{internal}
#' A customization of pairs function #' #' @title A customization of pairs function #' @name pairsSigmaPsi #' @aliases pairsSigmaPsi #' @param X a matrix or data.frame #' @examples #' pairsSigmaPsi(matrix(rnorm(300),100,3)) ##' @return NULL ##' ##' @author Gianmarco Altoè, Laura Boscaro, Marta Bagno ##' @export pairs...
/R/pairs_sigmapsi.R
no_license
livioivil/SigmaPsi
R
false
false
482
r
#' A customization of pairs function #' #' @title A customization of pairs function #' @name pairsSigmaPsi #' @aliases pairsSigmaPsi #' @param X a matrix or data.frame #' @examples #' pairsSigmaPsi(matrix(rnorm(300),100,3)) ##' @return NULL ##' ##' @author Gianmarco Altoè, Laura Boscaro, Marta Bagno ##' @export pairs...
############################################################################### # This script converts ERA5 reanalysis data from a NetCDF file to .RDS files # # for later use. The NetCDF file is quite large, so extracting each variable # # and storing it as an individual .RDS file will speed up future analysis. # ...
/get ERA5 data.R
no_license
sean-horvath/ERA5-Reanalysis-Data
R
false
false
1,822
r
############################################################################### # This script converts ERA5 reanalysis data from a NetCDF file to .RDS files # # for later use. The NetCDF file is quite large, so extracting each variable # # and storing it as an individual .RDS file will speed up future analysis. # ...
setwd("C:\\Users\\SatyakiBh\\Desktop\\BrainWaves-Hackathon") train<-read.csv("train.csv",header = T) test<-read.csv("test.csv", header=T) library(ClustOfVar) km<-kmeansvar(X.quanti = train[,2:101], init=9,matsim = TRUE)#, iter.max = 150, nstart = 1, km_cls<-km$cluster #km_cls_mat<-matrix(km_cls,nrow=100,ncol=1,dimname...
/P1_ClusterCode_v2.R
no_license
sohomghosh/HE_BrainWaves_Finance_Asset-Cluster_Value-Predict
R
false
false
441
r
setwd("C:\\Users\\SatyakiBh\\Desktop\\BrainWaves-Hackathon") train<-read.csv("train.csv",header = T) test<-read.csv("test.csv", header=T) library(ClustOfVar) km<-kmeansvar(X.quanti = train[,2:101], init=9,matsim = TRUE)#, iter.max = 150, nstart = 1, km_cls<-km$cluster #km_cls_mat<-matrix(km_cls,nrow=100,ncol=1,dimname...
#setwd("/beegfs/group_dv/home/RCui/killifish_genomes/WGS_seq/bwamap/NORv1.2LG/allelefreq_0.01to0.98_NVGout/anavar_calibrated_err0.01/runanavar_bs"); #sSrcDir <- "RACDRY.excludehybrid"; #sSrcDir <- "RACWET.excludehybrid"; #sSrcDir <- "ORTDRY"; #sSrcDir <- "ORTWET"; arrPops <- c('ORTDRY', 'ORTWET'); #arrPops <- c('RACDR...
/WGS_seq/bwamap/NORv1.2LG/allelefreq_0.01to0.98_NVGout/anavar_calibrated_err0.01/runanavar_bs/sumresults_bs.R
no_license
wangchengww/killigenomics
R
false
false
5,845
r
#setwd("/beegfs/group_dv/home/RCui/killifish_genomes/WGS_seq/bwamap/NORv1.2LG/allelefreq_0.01to0.98_NVGout/anavar_calibrated_err0.01/runanavar_bs"); #sSrcDir <- "RACDRY.excludehybrid"; #sSrcDir <- "RACWET.excludehybrid"; #sSrcDir <- "ORTDRY"; #sSrcDir <- "ORTWET"; arrPops <- c('ORTDRY', 'ORTWET'); #arrPops <- c('RACDR...
\alias{gdkWindowDeiconify} \name{gdkWindowDeiconify} \title{gdkWindowDeiconify} \description{Attempt to deiconify (unminimize) \code{window}. On X11 the window manager may choose to ignore the request to deiconify. When using GTK+, use \code{\link{gtkWindowDeiconify}} instead of the \code{\link{GdkWindow}} variant. Or ...
/man/gdkWindowDeiconify.Rd
no_license
cran/RGtk2.10
R
false
false
681
rd
\alias{gdkWindowDeiconify} \name{gdkWindowDeiconify} \title{gdkWindowDeiconify} \description{Attempt to deiconify (unminimize) \code{window}. On X11 the window manager may choose to ignore the request to deiconify. When using GTK+, use \code{\link{gtkWindowDeiconify}} instead of the \code{\link{GdkWindow}} variant. Or ...
library(Rwave) ### Name: back1.000 ### Title: Acoustic Returns ### Aliases: back1.000 ### Keywords: datasets ### ** Examples data(back1.000) plot.ts(back1.000)
/data/genthat_extracted_code/Rwave/examples/back1.000.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
169
r
library(Rwave) ### Name: back1.000 ### Title: Acoustic Returns ### Aliases: back1.000 ### Keywords: datasets ### ** Examples data(back1.000) plot.ts(back1.000)
# MWCA setGeneric("MWCA", function(params) standardGeneric("MWCA")) setMethod("MWCA", signature(params="MWCAParams"), function(params){ .MWCA(params)}) # CoupledMWCA setGeneric("CoupledMWCA", function(params) standardGeneric("CoupledMWCA")) setMethod("CoupledMWCA", signature(params="CoupledMWCAPara...
/R/AllGenerics.R
permissive
rikenbit/mwTensor
R
false
false
379
r
# MWCA setGeneric("MWCA", function(params) standardGeneric("MWCA")) setMethod("MWCA", signature(params="MWCAParams"), function(params){ .MWCA(params)}) # CoupledMWCA setGeneric("CoupledMWCA", function(params) standardGeneric("CoupledMWCA")) setMethod("CoupledMWCA", signature(params="CoupledMWCAPara...
## generate sample ids for full gwas set.seed(333) ids_3000 <- c( paste0("CASE", sample(1:3000, 1000)), paste0("CONT", sample(1:6000, 2000)) ) write.table(ids_3000, "/gwasurvivr_manuscript/full_gwas_experiments/data/sample_ids/n3000_sample_ids.txt", sep="\t", quote=FALSE, row.names=FALSE, col.names=FALSE) ...
/full_gwas_experiments/code/simulate_gwas_sample_ids.R
no_license
fmachiri/gwasurvivr_manuscript
R
false
false
853
r
## generate sample ids for full gwas set.seed(333) ids_3000 <- c( paste0("CASE", sample(1:3000, 1000)), paste0("CONT", sample(1:6000, 2000)) ) write.table(ids_3000, "/gwasurvivr_manuscript/full_gwas_experiments/data/sample_ids/n3000_sample_ids.txt", sep="\t", quote=FALSE, row.names=FALSE, col.names=FALSE) ...
library(ioanalysis) ### Name: key.sector ### Title: Impact Analysis via Backward and Forward Linkages ### Aliases: key.sector ### ** Examples data(toy.IO) class(toy.IO) key1 <- key.sector(toy.IO) key1$Narnia data(toy.ES) class(toy.ES) key2 <- key.sector(toy.IO, toy.ES) key2 # A more detailed example # Using criti...
/data/genthat_extracted_code/ioanalysis/examples/key.sector.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
571
r
library(ioanalysis) ### Name: key.sector ### Title: Impact Analysis via Backward and Forward Linkages ### Aliases: key.sector ### ** Examples data(toy.IO) class(toy.IO) key1 <- key.sector(toy.IO) key1$Narnia data(toy.ES) class(toy.ES) key2 <- key.sector(toy.IO, toy.ES) key2 # A more detailed example # Using criti...
--- title: "Machine Learning_DataCleaning, Exploration, Visualization by dplyr, tidyverse, ggplot" author: "Doris Ying-Yu Kuo" date: "11/3/2019" output: html_document: toc: true toc_float: true theme: darkly --- knitr::opts_chunk$set(echo = TRUE) # ??? Part1: Collecting the Data ## 1. Inst...
/Machine Learning_DataCleaning, Exploration, Visualization by dplyr, tidyverse, ggplot.R
no_license
yingyums01/Machine-Learning_DataCleaning-Exploration-Visualization-by-dplyr-tidyverse-ggplot
R
false
false
21,976
r
--- title: "Machine Learning_DataCleaning, Exploration, Visualization by dplyr, tidyverse, ggplot" author: "Doris Ying-Yu Kuo" date: "11/3/2019" output: html_document: toc: true toc_float: true theme: darkly --- knitr::opts_chunk$set(echo = TRUE) # ??? Part1: Collecting the Data ## 1. Inst...
library("R.utils"); verbose <- Arguments$getVerbose(-8, timestamp=TRUE); verbose && enter(verbose, "Downloading raw data for all tests"); verbose && enter(verbose, "Scanning tests"); path <- system.file("testScripts", package="aroma.seq"); verbose && cat(verbose, "Path to testScripts: ", path); pattern <- "download...
/inst/testScripts/setup/01b.downloadAllRawDataSet.R
no_license
HenrikBengtsson/aroma.seq
R
false
false
877
r
library("R.utils"); verbose <- Arguments$getVerbose(-8, timestamp=TRUE); verbose && enter(verbose, "Downloading raw data for all tests"); verbose && enter(verbose, "Scanning tests"); path <- system.file("testScripts", package="aroma.seq"); verbose && cat(verbose, "Path to testScripts: ", path); pattern <- "download...
setwd("/home/ben/workspace/timeCourse/data") library("plyr") source("../code/R/tools.R") datafile="/home/ben/workspace/timeCourse/data/actinidia/cornellGenomeModelTH-TCFrequencyMatrix.csv" counts = read.table( datafile,sep=",", header=TRUE, row.names=1,stringsAsFactors = FALSE ) counts<-counts1 design <- getDataRan...
/housekeeping.R
no_license
tirohia/timecourseR
R
false
false
783
r
setwd("/home/ben/workspace/timeCourse/data") library("plyr") source("../code/R/tools.R") datafile="/home/ben/workspace/timeCourse/data/actinidia/cornellGenomeModelTH-TCFrequencyMatrix.csv" counts = read.table( datafile,sep=",", header=TRUE, row.names=1,stringsAsFactors = FALSE ) counts<-counts1 design <- getDataRan...
set.seed(123) # library to run multinomial regression library(nnet) library(MASS) library(mvtnorm) rm(list=ls()) N <- 10000 # number of observations M <- 2 # number of non-intercept covariates G <- 5 # number of groups # generate the covariates covs <- sapply(1:M, function(x) rnorm(N)) covs <- cbind(rep(1, N), covs) ...
/mnlr/simMNLRVec.R
no_license
nmmarquez/re_simulations
R
false
false
3,132
r
set.seed(123) # library to run multinomial regression library(nnet) library(MASS) library(mvtnorm) rm(list=ls()) N <- 10000 # number of observations M <- 2 # number of non-intercept covariates G <- 5 # number of groups # generate the covariates covs <- sapply(1:M, function(x) rnorm(N)) covs <- cbind(rep(1, N), covs) ...
context("transfo_om") # testthat::test_that("errors", { # testthat::expect_error( # transfo_om(iris), # "L'objet en entrée doit être de classe 'sf'" # ) # # # })
/tests/testthat/test-transfo_om.R
permissive
ARCEP-dev/cartoutremer
R
false
false
177
r
context("transfo_om") # testthat::test_that("errors", { # testthat::expect_error( # transfo_om(iris), # "L'objet en entrée doit être de classe 'sf'" # ) # # # })
7366c66e6f64dcace28c306a9915a8af mvs20n.sat.qdimacs 760 2111
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Tentrup/toy/mvs20n.sat/mvs20n.sat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
60
r
7366c66e6f64dcace28c306a9915a8af mvs20n.sat.qdimacs 760 2111
#Valid Cases a <- 'Start and ,end with single quote' print(a) b <- "Start ,and end with double quotes" print(b) c <- "single quote ' in between double quotes" print(c) d <- 'Double quotes " in between single quote' print(d) #Invalid Cases # e <- 'Mixed quotes" # print(e) # # f <- 'Single quote ' inside single quot...
/Simple_Interest.R
no_license
masterbridge/R-Programming
R
false
false
924
r
#Valid Cases a <- 'Start and ,end with single quote' print(a) b <- "Start ,and end with double quotes" print(b) c <- "single quote ' in between double quotes" print(c) d <- 'Double quotes " in between single quote' print(d) #Invalid Cases # e <- 'Mixed quotes" # print(e) # # f <- 'Single quote ' inside single quot...
library(raster); library(doParallel); library(spatstat) l.sum <- read.csv("Simulated-layers/Layer-summaries.csv") all.layers <- readRDS("Simulated-layers/All-simulated-layers-NORM.rds") config <- readRDS("Simulated-species/Sim-config-species-list-RandomCentroids.rds") spp.layers <- lapply(1:ncol(config$layers), functi...
/PPMs-NORM/Analysing-Random-spps-Stepped-ppms.R
no_license
gerardommc/Niche-centroids
R
false
false
3,059
r
library(raster); library(doParallel); library(spatstat) l.sum <- read.csv("Simulated-layers/Layer-summaries.csv") all.layers <- readRDS("Simulated-layers/All-simulated-layers-NORM.rds") config <- readRDS("Simulated-species/Sim-config-species-list-RandomCentroids.rds") spp.layers <- lapply(1:ncol(config$layers), functi...
res_conf <- list() res_cont <- list() for (i in 1:14) { subs <- c("keep", TRUE) ch_keep <- function(x, i) {x$keep <- x$ChapterN %in% setdiff(1:14,i); x} res_cont$y08[[i]] <- estimate("politics", b, ch_keep(at.08,i), incl_conflict = FALSE, subs = subs) res_cont$y10[[i]] <- estimate("politics", b, ch_keep(at.1...
/leave_one_out.R
no_license
LazerLab/ESFReplicate
R
false
false
1,497
r
res_conf <- list() res_cont <- list() for (i in 1:14) { subs <- c("keep", TRUE) ch_keep <- function(x, i) {x$keep <- x$ChapterN %in% setdiff(1:14,i); x} res_cont$y08[[i]] <- estimate("politics", b, ch_keep(at.08,i), incl_conflict = FALSE, subs = subs) res_cont$y10[[i]] <- estimate("politics", b, ch_keep(at.1...
" Question 1 Take the Student data over Age, SE, OOP, CI (find the dataset in the Dataset section). Find the PCA hidden factor behind it. Norm the factor loadings to the square root of the maximum singular value. What are the resulting factor loadings? " names <- c(t(read.table("https://d396qusza40orc.cloudfront.net...
/Quiz 5.R
no_license
mikeasilva/core-concepts-in-data-analysis
R
false
false
2,589
r
" Question 1 Take the Student data over Age, SE, OOP, CI (find the dataset in the Dataset section). Find the PCA hidden factor behind it. Norm the factor loadings to the square root of the maximum singular value. What are the resulting factor loadings? " names <- c(t(read.table("https://d396qusza40orc.cloudfront.net...
# codeSnips.R # ===== A function to make dinucleotides ======================================= dinucVector <- function(x) { # create a vector of dinucleotides from a sequence vector # (pedestrian version) iFrom <- 1:(length(x) - 1) iTo <- 2:length(x) dinuc <- character(length(iFrom)) for (i ...
/codeSnips.R
no_license
pseabour/https-github.com-hyginn-R-Intro
R
false
false
11,110
r
# codeSnips.R # ===== A function to make dinucleotides ======================================= dinucVector <- function(x) { # create a vector of dinucleotides from a sequence vector # (pedestrian version) iFrom <- 1:(length(x) - 1) iTo <- 2:length(x) dinuc <- character(length(iFrom)) for (i ...
context("is_tbl_mbte") # generate an object, that should be recognized as a valid tbl_mbte. gen_valid_tbl_mbte <- function(dat = raw_signals) { dat <- tibble::as_tibble(dat) # set relevant attributes attr(dat, "time") <- rlang::sym("time_var") attr(dat, "value") <- rlang::sym("value_var") attr(dat,...
/tests/testthat/test-is_tbl_mbte.R
no_license
mkerschbaumer/mbte
R
false
false
2,497
r
context("is_tbl_mbte") # generate an object, that should be recognized as a valid tbl_mbte. gen_valid_tbl_mbte <- function(dat = raw_signals) { dat <- tibble::as_tibble(dat) # set relevant attributes attr(dat, "time") <- rlang::sym("time_var") attr(dat, "value") <- rlang::sym("value_var") attr(dat,...
stop("run the following command on bluecrystalp3") ## bash extract-genotypes.sh ## out: children.{bed,fam,bim} ## mother.{bed,fam,bim} files ## snps.bim.gz ## copy these files to geno.dir/genotype stopifnot(file.exists(file.path(geno.dir, "genotype", c("children.bed", ...
/alspac/extract-genotypes.r
permissive
MRCIEU/handedness-ewas
R
false
false
420
r
stop("run the following command on bluecrystalp3") ## bash extract-genotypes.sh ## out: children.{bed,fam,bim} ## mother.{bed,fam,bim} files ## snps.bim.gz ## copy these files to geno.dir/genotype stopifnot(file.exists(file.path(geno.dir, "genotype", c("children.bed", ...
stats.data = function(dataset, namecolumn = 1, fullmatchcolumn = 2, extractpattern=expression("^(.+?)_.+"), readcount.unmapped.total = NA, controls.target = NULL, controls.nontarget = "random", type="stats") { # type can be: # mapping | for mapping information # stats | for general statistics of the dataset ...
/caRpools/R/stats.data.R
no_license
ingted/R-Examples
R
false
false
4,836
r
stats.data = function(dataset, namecolumn = 1, fullmatchcolumn = 2, extractpattern=expression("^(.+?)_.+"), readcount.unmapped.total = NA, controls.target = NULL, controls.nontarget = "random", type="stats") { # type can be: # mapping | for mapping information # stats | for general statistics of the dataset ...
#' File-in-Working Directory checker #' #' Function to determine if a file lies in a working directory. #' @param filelocation A character string specifying a file location. #' @return A file location. Gives the file location without the working directory if the file is in it (also can be a subfolder), but returns the ...
/R/wd_check.R
no_license
mvsfrazao/GREA
R
false
false
1,310
r
#' File-in-Working Directory checker #' #' Function to determine if a file lies in a working directory. #' @param filelocation A character string specifying a file location. #' @return A file location. Gives the file location without the working directory if the file is in it (also can be a subfolder), but returns the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_non_unique_rows.R \name{get_non_unique_rows} \alias{get_non_unique_rows} \title{Get non-unique rows in a dataframe} \usage{ get_non_unique_rows(a_df, a_var) } \arguments{ \item{a_df}{a dataframe} \item{a_var}{a variable, for defining row...
/man/get_non_unique_rows.Rd
no_license
zhanglynz/myhelper
R
false
true
685
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_non_unique_rows.R \name{get_non_unique_rows} \alias{get_non_unique_rows} \title{Get non-unique rows in a dataframe} \usage{ get_non_unique_rows(a_df, a_var) } \arguments{ \item{a_df}{a dataframe} \item{a_var}{a variable, for defining row...
library(treeman) ### Name: getNdsPrdst ### Title: Get pre-distances ### Aliases: getNdsPrdst ### ** Examples library(treeman) tree <- randTree(10) getNdsPrdst(tree, ids=tree['tips']) # return prdsts for all tips
/data/genthat_extracted_code/treeman/examples/getNdsPrdst.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
220
r
library(treeman) ### Name: getNdsPrdst ### Title: Get pre-distances ### Aliases: getNdsPrdst ### ** Examples library(treeman) tree <- randTree(10) getNdsPrdst(tree, ids=tree['tips']) # return prdsts for all tips
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CRIMpp-package.R \name{CRIMpp} \alias{CRIMpp} \title{Retirement Income Model in C++} \description{ Package to calculate retirement incomes using the \code{Rcpp} package. }
/man/CRIMpp.Rd
no_license
HughParsonage/CRIMpp
R
false
true
250
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CRIMpp-package.R \name{CRIMpp} \alias{CRIMpp} \title{Retirement Income Model in C++} \description{ Package to calculate retirement incomes using the \code{Rcpp} package. }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_bleed_interactions.R \name{plot_bleed_interactions} \alias{plot_bleed_interactions} \title{Creates a circular plot with links between signatures that bleed into each other.} \usage{ plot_bleed_interactions(exposures_mcmc_output, mi...
/man/plot_bleed_interactions.Rd
no_license
xtmgah/SignIT
R
false
true
645
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_bleed_interactions.R \name{plot_bleed_interactions} \alias{plot_bleed_interactions} \title{Creates a circular plot with links between signatures that bleed into each other.} \usage{ plot_bleed_interactions(exposures_mcmc_output, mi...
#FASTR zooplankton library(tidyverse) library(lubridate) library(scales) library(knitr) library(mgcv) library(lme4) library(car) library(emmeans) library(gratia) library(here) library(forcats) # Source functions source(here("global_ndfa_funcs.R")) source(here("Water_Quality/global_wq_funcs.R")) #zooplankton data from...
/Zoop_code/Jesse-zoop-analyses/FASTR_zoop_multivariate.R
no_license
InteragencyEcologicalProgram/ND-FASTR
R
false
false
12,405
r
#FASTR zooplankton library(tidyverse) library(lubridate) library(scales) library(knitr) library(mgcv) library(lme4) library(car) library(emmeans) library(gratia) library(here) library(forcats) # Source functions source(here("global_ndfa_funcs.R")) source(here("Water_Quality/global_wq_funcs.R")) #zooplankton data from...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multifabCIhom.R \name{hhommodel} \alias{hhommodel} \title{Hierarchical homoscedastic model estimates} \usage{ hhommodel(y, g, group, p1) } \arguments{ \item{y}{a numeric vector of data} \item{g}{a group membership vector, of the same length ...
/man/hhommodel.Rd
no_license
pdhoff/fabCI
R
false
true
1,022
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multifabCIhom.R \name{hhommodel} \alias{hhommodel} \title{Hierarchical homoscedastic model estimates} \usage{ hhommodel(y, g, group, p1) } \arguments{ \item{y}{a numeric vector of data} \item{g}{a group membership vector, of the same length ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utilities.R \name{translate} \alias{translate} \title{translate DNA sequence to amino acid} \usage{ translate(secuencia) } \arguments{ \item{secuencia}{character: coding dna, must be in frame} } \value{ string, amino acid sequence } \descrip...
/man/translate.Rd
permissive
santiago1234/iCodon
R
false
true
398
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utilities.R \name{translate} \alias{translate} \title{translate DNA sequence to amino acid} \usage{ translate(secuencia) } \arguments{ \item{secuencia}{character: coding dna, must be in frame} } \value{ string, amino acid sequence } \descrip...
library(tidyverse) library(tidyquant) library(magrittr) library(timetk) # Get all stock symbols in a stock index # tq_index_options() # sp500 <- tq_index("SP500") # Get all stock symbol in 3 stock exchanges ##tq_exchange_options() amex <- tq_exchange("AMEX") nasdaq <- tq_exchange("NASDAQ") nyse <- tq_exc...
/downloaddata.R
no_license
Summerzhang09/MAS627_ShinyAppProject
R
false
false
1,284
r
library(tidyverse) library(tidyquant) library(magrittr) library(timetk) # Get all stock symbols in a stock index # tq_index_options() # sp500 <- tq_index("SP500") # Get all stock symbol in 3 stock exchanges ##tq_exchange_options() amex <- tq_exchange("AMEX") nasdaq <- tq_exchange("NASDAQ") nyse <- tq_exc...
setwd("/datascience/projects/statisticallyfit/github/R/RStatistics/STAT210 Statistical Modelling and Experimental Design/") library(ggplot2) load("data/Exercises and Examples/PONDICE.Rdata") options(digits=10, show.signif.stars = FALSE) # NOTE: 1 = first year, 3 = landfast, 2 = multiyear # must make 1 = landfast, 0 ...
/STAT210 Statistical Modelling and Experimental Design/Chapter 9 - Logistic Regression/exercise_9.27_pondice.R
no_license
statisticallyfit/RStatistics
R
false
false
1,592
r
setwd("/datascience/projects/statisticallyfit/github/R/RStatistics/STAT210 Statistical Modelling and Experimental Design/") library(ggplot2) load("data/Exercises and Examples/PONDICE.Rdata") options(digits=10, show.signif.stars = FALSE) # NOTE: 1 = first year, 3 = landfast, 2 = multiyear # must make 1 = landfast, 0 ...
##################################################################################################################################### ### config text ##################################################################################################################### ####################################################...
/Classify_config.R
no_license
ricklovelisa/htnewsroom_classification
R
false
false
2,103
r
##################################################################################################################################### ### config text ##################################################################################################################### ####################################################...
# TODO - NEED TO SEE HOW WELL PREDICTIONS BALANCE BY MONTH # TODO - WHAT IS THE PREDICTION FOR THE WEEK BEFORE EASTER? DOES IT MAKE SENSE? options(stringsAsFactors = FALSE) setwd("~/walmart") require(plyr) require(testthat) require(lubridate) require(Hmisc) require(stringr) blend_weeks <- function(next_yr_dt, coef1 =...
/benchmark_2497.R
no_license
sadapple/walmart
R
false
false
7,173
r
# TODO - NEED TO SEE HOW WELL PREDICTIONS BALANCE BY MONTH # TODO - WHAT IS THE PREDICTION FOR THE WEEK BEFORE EASTER? DOES IT MAKE SENSE? options(stringsAsFactors = FALSE) setwd("~/walmart") require(plyr) require(testthat) require(lubridate) require(Hmisc) require(stringr) blend_weeks <- function(next_yr_dt, coef1 =...
#' Functionality related to GARCH estimation #' Create GARCH specifications #' #' Makes building GARCH models easier as standard options #' apart from p, q order is preset. Standard options include #' variance targeting, GJRGACH(1,1) specification and the GHST #' distribution for innovations #' #' @param p Scalar - AR...
/wimbledon/R/garch.R
no_license
4350/grandslam
R
false
false
12,090
r
#' Functionality related to GARCH estimation #' Create GARCH specifications #' #' Makes building GARCH models easier as standard options #' apart from p, q order is preset. Standard options include #' variance targeting, GJRGACH(1,1) specification and the GHST #' distribution for innovations #' #' @param p Scalar - AR...
################################################################################ # # File name: TCGAbiolinks_transcriptome_profiling_data.R # # Authors: Jacek Marzec ( j.marzec@qmul.ac.uk ) # # University of Melbourne Centre for Cancer Research, # Victorian Comprehensive Cancer Centre # 305 Grattan St, Melbou...
/TCGAbiolinks_transcriptome_profiling_data.R
no_license
umccr/TCGA-data-prep
R
false
false
18,843
r
################################################################################ # # File name: TCGAbiolinks_transcriptome_profiling_data.R # # Authors: Jacek Marzec ( j.marzec@qmul.ac.uk ) # # University of Melbourne Centre for Cancer Research, # Victorian Comprehensive Cancer Centre # 305 Grattan St, Melbou...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mdp_utils.R \name{PerformAlphaDiversityComp} \alias{PerformAlphaDiversityComp} \title{Perform alpha diversity} \usage{ PerformAlphaDiversityComp(mbSetObj, opt, metadata) } \arguments{ \item{mbSetObj}{Input the name of the mbSetObj.} } \descri...
/MicrobiomeAnalystR/man/PerformAlphaDiversityComp.Rd
no_license
FADHLyemen/MicrobiomeAnalystR
R
false
true
467
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mdp_utils.R \name{PerformAlphaDiversityComp} \alias{PerformAlphaDiversityComp} \title{Perform alpha diversity} \usage{ PerformAlphaDiversityComp(mbSetObj, opt, metadata) } \arguments{ \item{mbSetObj}{Input the name of the mbSetObj.} } \descri...
library("netsim") Dati <- matrix(c(1.793561,1.793561,1.793561,1.793561,1.793561,4.239327,4.239327,4.239327,4.239327,4.239327,1.031338,1.031338,1.031338,1.031338,1.031338,1.789676,1.789676,1.789676,1.789676,1.789676,7.767749,7.767749,7.767749,7.767749,7.767749), 5, 5) pesi <- matrix(c(0,0,0,-1,0,-1,0,-1,0,0,0,-1,0,0,-...
/netsim/testset/prova_sp_rules.R
no_license
mfalda/gen-net-sim
R
false
false
688
r
library("netsim") Dati <- matrix(c(1.793561,1.793561,1.793561,1.793561,1.793561,4.239327,4.239327,4.239327,4.239327,4.239327,1.031338,1.031338,1.031338,1.031338,1.031338,1.789676,1.789676,1.789676,1.789676,1.789676,7.767749,7.767749,7.767749,7.767749,7.767749), 5, 5) pesi <- matrix(c(0,0,0,-1,0,-1,0,-1,0,0,0,-1,0,0,-...
\name{tune} \alias{tune} \title{ tunning an RHMS model } \description{ a function for tunning an RHMS model based on a set of observed time series, using \emph{particle swarm optimization} } \usage{ tune(object,targetObject,decisionObjects, observationTS,delay=0, transformBandWith=list(ct=c(1 , ...
/man/tune.Rd
no_license
cran/RHMS
R
false
false
5,723
rd
\name{tune} \alias{tune} \title{ tunning an RHMS model } \description{ a function for tunning an RHMS model based on a set of observed time series, using \emph{particle swarm optimization} } \usage{ tune(object,targetObject,decisionObjects, observationTS,delay=0, transformBandWith=list(ct=c(1 , ...
\name{fp2bit} \alias{fp2bit} \title{ Convert base 64 fingerprints to binary } \description{ The function converts the base 64 encoded PubChem fingerprints to a binary \code{matrix} or a \code{character} vector. If applied to a \code{SDFset} object, then its data block needs to contain the PubChem fingerprint informatio...
/man/fp2bit.Rd
no_license
girke-lab/ChemmineR
R
false
false
1,907
rd
\name{fp2bit} \alias{fp2bit} \title{ Convert base 64 fingerprints to binary } \description{ The function converts the base 64 encoded PubChem fingerprints to a binary \code{matrix} or a \code{character} vector. If applied to a \code{SDFset} object, then its data block needs to contain the PubChem fingerprint informatio...
##Assignment for Coursera Developing Data Products ##Project: Cardiovascular Risk Prediction ##Shiny App Server Script ##Cardio.risk function generates a probability for a a cardiovascular event in the following ten years. ## ##Functions arguments are as follows: ##age0 is age ##gender is the gender ##ethnicity is et...
/cardio_risk/server.R
no_license
link2matt/cardio-risk-repo
R
false
false
4,801
r
##Assignment for Coursera Developing Data Products ##Project: Cardiovascular Risk Prediction ##Shiny App Server Script ##Cardio.risk function generates a probability for a a cardiovascular event in the following ten years. ## ##Functions arguments are as follows: ##age0 is age ##gender is the gender ##ethnicity is et...
#!/usr/bin/Rscript library(ncdf4) library(raster) library(shiny) library(leaflet) library(rgdal) library(parallel) library(doParallel) library(stringr) rm(list = ls()) is.character0 <- function(x){ is.character(x) && length(x) == 0L } is.integer0 <- function(x){ is.integer(x) && length(x) == 0L } ZONA_WAKTU = "WI...
/MEWS/MEWS_Bogor.R
permissive
yosiknorman/MEWS_2020_BOT
R
false
false
10,764
r
#!/usr/bin/Rscript library(ncdf4) library(raster) library(shiny) library(leaflet) library(rgdal) library(parallel) library(doParallel) library(stringr) rm(list = ls()) is.character0 <- function(x){ is.character(x) && length(x) == 0L } is.integer0 <- function(x){ is.integer(x) && length(x) == 0L } ZONA_WAKTU = "WI...
# Introductory example using the housing data used here: http://www.r2d3.us/visual-intro-to-machine-learning-part-1/ # rpart library library(rpart) library(rpart.plot) homes <- read.csv('data/housing-data.csv') # Function to compare values assess_fit <- function(model, data = homes, outcome = 'in_sf') { predicted <-...
/special-topics-ml/demo-1/decision_tree.R
permissive
yukisea/INFO201
R
false
false
1,211
r
# Introductory example using the housing data used here: http://www.r2d3.us/visual-intro-to-machine-learning-part-1/ # rpart library library(rpart) library(rpart.plot) homes <- read.csv('data/housing-data.csv') # Function to compare values assess_fit <- function(model, data = homes, outcome = 'in_sf') { predicted <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NBSpliceRes-getDSGenes.R \docType{methods} \name{GetDSGenes} \alias{GetDSGenes} \alias{GetDSGenes-methods} \alias{GetDSGenes} \alias{GetDSGenes,NBSpliceRes-method} \title{Get differentially spliced genes.} \usage{ GetDSGenes(myNBRes, adjusted...
/man/NBSpliceRes-GetDSGenes.Rd
no_license
gamerino/NBSplice
R
false
true
1,460
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NBSpliceRes-getDSGenes.R \docType{methods} \name{GetDSGenes} \alias{GetDSGenes} \alias{GetDSGenes-methods} \alias{GetDSGenes} \alias{GetDSGenes,NBSpliceRes-method} \title{Get differentially spliced genes.} \usage{ GetDSGenes(myNBRes, adjusted...
library(bayesm) ### Name: Scotch ### Title: Survey Data on Brands of Scotch Consumed ### Aliases: Scotch ### Keywords: datasets ### ** Examples data(Scotch) cat(" Frequencies of Brands", fill=TRUE) mat = apply(as.matrix(Scotch), 2, mean) print(mat) ## use Scotch data to run Multivariate Probit Model if(0) { y =...
/data/genthat_extracted_code/bayesm/examples/Scotch.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,053
r
library(bayesm) ### Name: Scotch ### Title: Survey Data on Brands of Scotch Consumed ### Aliases: Scotch ### Keywords: datasets ### ** Examples data(Scotch) cat(" Frequencies of Brands", fill=TRUE) mat = apply(as.matrix(Scotch), 2, mean) print(mat) ## use Scotch data to run Multivariate Probit Model if(0) { y =...
SnapshotReporter <- R6::R6Class("SnapshotReporter", inherit = Reporter, public = list( snap_dir = character(), file = NULL, test = NULL, test_file_seen = character(), snap_file_seen = character(), i = 0, file_changed = FALSE, old_snaps = NULL, cur_snaps = NULL, new_snaps = ...
/R/snapshot-reporter.R
permissive
michaelquinn32/testthat
R
false
false
6,194
r
SnapshotReporter <- R6::R6Class("SnapshotReporter", inherit = Reporter, public = list( snap_dir = character(), file = NULL, test = NULL, test_file_seen = character(), snap_file_seen = character(), i = 0, file_changed = FALSE, old_snaps = NULL, cur_snaps = NULL, new_snaps = ...
directory <- "\\Users\\kcaj2\\Desktop\\Coursera\\Exploratory Data Analysis\\Assignment 2" setwd(directory) ##below reads the data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") data <- merge(NEI,SCC, all.x = TRUE, by = "SCC") coaldata <- subset(data, grepl("coal", dat...
/Plot4.R
no_license
jrkramer926/Exploratory-Data-Analysis_Assignment-2
R
false
false
1,094
r
directory <- "\\Users\\kcaj2\\Desktop\\Coursera\\Exploratory Data Analysis\\Assignment 2" setwd(directory) ##below reads the data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") data <- merge(NEI,SCC, all.x = TRUE, by = "SCC") coaldata <- subset(data, grepl("coal", dat...
fn_n_rseed<-function(fn_str,fntrt_p=3){ require(stringr); fn_str<-basename(fn_str); aposi<-as.data.frame(str_locate_all(fn_str,'-')); fn_trt<-substr(fn_str,1,aposi[fntrt_p,1]-1); fn_rseed<-as.numeric(substr(fn_str,aposi[nrow(aposi)-1,1]+1,aposi[nrow(aposi),1]-1)); fn_n_rsee...
/srcs/batch-p/Z13amg15final_batch_CS1.R
no_license
npp97/N15CPM
R
false
false
4,586
r
fn_n_rseed<-function(fn_str,fntrt_p=3){ require(stringr); fn_str<-basename(fn_str); aposi<-as.data.frame(str_locate_all(fn_str,'-')); fn_trt<-substr(fn_str,1,aposi[fntrt_p,1]-1); fn_rseed<-as.numeric(substr(fn_str,aposi[nrow(aposi)-1,1]+1,aposi[nrow(aposi),1]-1)); fn_n_rsee...
#' Historical Monthly/Seasonal Range Timeseries #' #' Compare seasonal averages/minimums/maximums for a target year to historical seasonal averages/minimums/maximums #' #' @param swmpr_in input swmpr object #' @param param chr string of variable to plot #' @param hist_rng numeric vector, if historic range is not ...
/R/historical_range.R
no_license
cran/SWMPrExtension
R
false
false
15,812
r
#' Historical Monthly/Seasonal Range Timeseries #' #' Compare seasonal averages/minimums/maximums for a target year to historical seasonal averages/minimums/maximums #' #' @param swmpr_in input swmpr object #' @param param chr string of variable to plot #' @param hist_rng numeric vector, if historic range is not ...
library(progenyClust) ### Name: cell ### Title: cell imaging metrics dataset ### Aliases: cell ### Keywords: datasets ### ** Examples data(cell)
/data/genthat_extracted_code/progenyClust/examples/cell.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
152
r
library(progenyClust) ### Name: cell ### Title: cell imaging metrics dataset ### Aliases: cell ### Keywords: datasets ### ** Examples data(cell)
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/stats.r \name{bstrap} \alias{bstrap} \title{bootstrap a statistic for a vector} \usage{ bstrap(x, t = mean, n = 10000) } \arguments{ \item{x}{data vector} \item{t}{statistic} \item{n}{number of simulations} } \description{ bootstrap...
/man/bstrap.Rd
no_license
mdelhey/mdutils
R
false
false
761
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/stats.r \name{bstrap} \alias{bstrap} \title{bootstrap a statistic for a vector} \usage{ bstrap(x, t = mean, n = 10000) } \arguments{ \item{x}{data vector} \item{t}{statistic} \item{n}{number of simulations} } \description{ bootstrap...
library(data.table) library(dplyr) library(doParallel) library(quantmod) library(moments) library(rstan) library(xts) library(lubridate) library(ggplot2) library(hrbrthemes) library(shinystan) library(corrplot) devtools::install_github("stan-dev/loo") library(loo) library(xlsx) #library(reshape2) #launch_shinystan...
/R code for the FP.R
no_license
Andrey776/Bayesian-FP-R
R
false
false
39,845
r
library(data.table) library(dplyr) library(doParallel) library(quantmod) library(moments) library(rstan) library(xts) library(lubridate) library(ggplot2) library(hrbrthemes) library(shinystan) library(corrplot) devtools::install_github("stan-dev/loo") library(loo) library(xlsx) #library(reshape2) #launch_shinystan...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mutate.R \name{madison} \alias{madison} \title{madison} \usage{ madison(.tbl, ..., .name = "data", .env = caller_env()) } \arguments{ \item{.tbl}{TODO} \item{...}{TODO} \item{.name}{TODO} \item{.env}{TODO} } \description{ madison }
/man/madison.Rd
permissive
CriscelyLP/dance
R
false
true
313
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mutate.R \name{madison} \alias{madison} \title{madison} \usage{ madison(.tbl, ..., .name = "data", .env = caller_env()) } \arguments{ \item{.tbl}{TODO} \item{...}{TODO} \item{.name}{TODO} \item{.env}{TODO} } \description{ madison }
source("code/ms.spChimp.sim.R") ms.calls <- generate.ms.command.line.values(diploid.population.size = 1e3, locus.size = 1e6, per.bp.mu = 1e-7, migration.fraction = 0.0005, split.times = c(1e4,1e3,5e2)) admix.sources <- c(26,27,29,30) admix.targets <- c(19,20,24,25) admix.p...
/data/sims/admix/exe.ms.spChimp.sim.R
no_license
gbradburd/spaceCHIMP
R
false
false
1,771
r
source("code/ms.spChimp.sim.R") ms.calls <- generate.ms.command.line.values(diploid.population.size = 1e3, locus.size = 1e6, per.bp.mu = 1e-7, migration.fraction = 0.0005, split.times = c(1e4,1e3,5e2)) admix.sources <- c(26,27,29,30) admix.targets <- c(19,20,24,25) admix.p...
library(dplyr) library(caret) #Read the data library(readr) pData <- read_csv("parks_data.csv") head(pData) dim(pData) #195 observations and 24 features str(pData) #All numerical features except the 'name' which identifies patient #'Status' is the target variable. #Transform the status variable into a factor with 2...
/Parkinsons Prediction using Random Forest/random-forest-approach-for-Parkinsons-prediction-master/ParkinsonsModeling.R
no_license
MaheshRk77/Healthcare-Analytics
R
false
false
3,094
r
library(dplyr) library(caret) #Read the data library(readr) pData <- read_csv("parks_data.csv") head(pData) dim(pData) #195 observations and 24 features str(pData) #All numerical features except the 'name' which identifies patient #'Status' is the target variable. #Transform the status variable into a factor with 2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ctreeucb_rejection_sampling agorithm.R \name{ctreeucb_rejection_sampling} \alias{ctreeucb_rejection_sampling} \title{ctreeucb_rejection_sampling} \usage{ ctreeucb_rejection_sampling( dt, visitor_reward, K = ncol(visitor_reward), ctree...
/man/ctreeucb_rejection_sampling.Rd
no_license
manuclaeys/bandit4abtest
R
false
true
2,916
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ctreeucb_rejection_sampling agorithm.R \name{ctreeucb_rejection_sampling} \alias{ctreeucb_rejection_sampling} \title{ctreeucb_rejection_sampling} \usage{ ctreeucb_rejection_sampling( dt, visitor_reward, K = ncol(visitor_reward), ctree...
#Module 4 #February 2016 #Write my own function #cool example from the blog of Hillary Parker cat_function <- function(love=TRUE){ if(love==TRUE){ print("I love cats!") } else { print("I am not a cool person.") } } cat_function(TRUE) Cat_function(FALSE) #a function I wrote a couple of years ago for a...
/Module4.R
no_license
efeichtinger/Hell-Mouth
R
false
false
1,166
r
#Module 4 #February 2016 #Write my own function #cool example from the blog of Hillary Parker cat_function <- function(love=TRUE){ if(love==TRUE){ print("I love cats!") } else { print("I am not a cool person.") } } cat_function(TRUE) Cat_function(FALSE) #a function I wrote a couple of years ago for a...
\name{br_pitch2} \alias{br_pitch2} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Baseball-Reference MLB Team Pitching Pitches Table %% ~~function to do ... ~~ } \description{ Scraps MLB Team Pitching Pitches Table from https://www.baseball-reference.com/leagues/MLB/'year'-pitches-pitchin...
/man/br_pitch2.Rd
no_license
Jonghyun-Yun/brscrap
R
false
false
1,655
rd
\name{br_pitch2} \alias{br_pitch2} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Baseball-Reference MLB Team Pitching Pitches Table %% ~~function to do ... ~~ } \description{ Scraps MLB Team Pitching Pitches Table from https://www.baseball-reference.com/leagues/MLB/'year'-pitches-pitchin...
library(ggplot2) # for data visualization library(stringr) #extracting string patterns library(Metrics) # rmse library(dplyr) # load this in last so plyr doens't overlap it library(caret) # one hot encoding library(scales) # plotting $$ library(e1071) # skewness library(corrplot) # correlation plot library(RMyS...
/FinalCleaningAndImplementation-1.R
no_license
RonakShah92/House-price-prediciton
R
false
false
14,642
r
library(ggplot2) # for data visualization library(stringr) #extracting string patterns library(Metrics) # rmse library(dplyr) # load this in last so plyr doens't overlap it library(caret) # one hot encoding library(scales) # plotting $$ library(e1071) # skewness library(corrplot) # correlation plot library(RMyS...
library(here) library(tidyverse) library(nycflights13) ewr_flights <- flights %>% filter(origin == "EWR") saveRDS(ewr_flights, here("prepared_data/ewr_flights.rds"))
/rmarkdown-example/scripts/prepare.R
no_license
krlmlr/vistransrep
R
false
false
172
r
library(here) library(tidyverse) library(nycflights13) ewr_flights <- flights %>% filter(origin == "EWR") saveRDS(ewr_flights, here("prepared_data/ewr_flights.rds"))
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "wdbc") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("class...
/models/openml_wdbc/classification_Class/6a73f82833d6b8ce32f40e6f512bacea/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
740
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "wdbc") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("class...
# Exercise 4: external data sets: Gates Foundation Educational Grants # Use the `read.csv()` functoin to read the data from the `data/gates_money.csv` # file into a variable called `grants` using the `read.csv()` # Be sure to set your working directory in RStudio, and do NOT treat strings as # factors! grants <- read...
/chapter-10-exercises/exercise-4/exercise.R
permissive
Axurj/book-exercises
R
false
false
1,433
r
# Exercise 4: external data sets: Gates Foundation Educational Grants # Use the `read.csv()` functoin to read the data from the `data/gates_money.csv` # file into a variable called `grants` using the `read.csv()` # Be sure to set your working directory in RStudio, and do NOT treat strings as # factors! grants <- read...
#' Calculating a performance table #' #' This function calculates and displays a table of period performance for financial instruments. A cumulated performance per period is calculated for the different instruments provided. For this purpose, the return data should be log-returns, otherwise the aggregation gives meanin...
/R/calcPeriodPerformance.R
no_license
stephansgit/finViz
R
false
false
1,091
r
#' Calculating a performance table #' #' This function calculates and displays a table of period performance for financial instruments. A cumulated performance per period is calculated for the different instruments provided. For this purpose, the return data should be log-returns, otherwise the aggregation gives meanin...
# makeCacheMatrix: This function creates a special "matrix" object # that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { mat <- NULL set <- function(y) { x <<- y mat <<- NULL } get <- function() x setinverse <- function(solve) mat <<- solve getinverse <- function() m...
/cachematrix.R
no_license
RahulMaddikunta/ProgrammingAssignment2
R
false
false
906
r
# makeCacheMatrix: This function creates a special "matrix" object # that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { mat <- NULL set <- function(y) { x <<- y mat <<- NULL } get <- function() x setinverse <- function(solve) mat <<- solve getinverse <- function() m...