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{pca_scoresplot2D}
\alias{pca_scoresplot2D}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
2D PCA scores plot
}
\description{
Shows a 2D PCA scores plot of two principal componets.
}
\usage{
pca_scoresplot2D(dataset, pca.result, column.class,
pcas = c(1, 2), labels = FALSE, ellipses = ... | /man/pca_scoresplot2D.Rd | no_license | Neal050617/specmine | R | false | false | 1,774 | rd | \name{pca_scoresplot2D}
\alias{pca_scoresplot2D}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
2D PCA scores plot
}
\description{
Shows a 2D PCA scores plot of two principal componets.
}
\usage{
pca_scoresplot2D(dataset, pca.result, column.class,
pcas = c(1, 2), labels = FALSE, ellipses = ... |
library(ggplot2)
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy)) | /exemplos/exemplo_inicial_ggplot.R | no_license | crotman/CursoR | R | false | false | 90 | r |
library(ggplot2)
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy)) |
# like plot_genes, except we want to plot a whole set of genes together to show a complete region
# also plot gaps and variants colored by whether they match each reference
library(ggplot2)
library(viridis)
require(grDevices)
source('../my_color_palette.R')
options(stringsAsFactors = FALSE) # fuck you R
# r2259 -> S... | /code/analyze/plotting/plot_gene_region_only_int.R | no_license | hyperboliccake/introgression | R | false | false | 6,648 | r | # like plot_genes, except we want to plot a whole set of genes together to show a complete region
# also plot gaps and variants colored by whether they match each reference
library(ggplot2)
library(viridis)
require(grDevices)
source('../my_color_palette.R')
options(stringsAsFactors = FALSE) # fuck you R
# r2259 -> S... |
FTR.awardPaths <- function(auction, bids, ISO.env)
{
aux <- unique(bids[,c("path.no", "class.type", "source.ptid",
"sink.ptid")])
aux$auction <- auction
CP <- FTR.get.CP.for.paths(aux, ISO.env)
if (nrow(CP)==0)
stop(paste("Could not find this auction", auction,
"in the clearing price data... | /R Extension/RMG/Utilities/Interfaces/FTR/R/FTR.awardPaths.R | no_license | uhasan1/QLExtension-backup | R | false | false | 792 | r | FTR.awardPaths <- function(auction, bids, ISO.env)
{
aux <- unique(bids[,c("path.no", "class.type", "source.ptid",
"sink.ptid")])
aux$auction <- auction
CP <- FTR.get.CP.for.paths(aux, ISO.env)
if (nrow(CP)==0)
stop(paste("Could not find this auction", auction,
"in the clearing price data... |
#' Get a Specific Roll Call Vote
#'
#' To get a specific roll-call vote, including a complete list of member positions. HTTP Request: GET https://api.propublica.org/congress/v1/{congress}/{chamber}/sessions/{session-number}/votes/{roll-call-number}.json
#'
#' @param congress 102-115 for House, 80-115 for Senate
#' @par... | /R/get_specific_roll_call_vote.R | no_license | DavytJ/ProPublicaR | R | false | false | 1,780 | r | #' Get a Specific Roll Call Vote
#'
#' To get a specific roll-call vote, including a complete list of member positions. HTTP Request: GET https://api.propublica.org/congress/v1/{congress}/{chamber}/sessions/{session-number}/votes/{roll-call-number}.json
#'
#' @param congress 102-115 for House, 80-115 for Senate
#' @par... |
library(dplyr)
hiDF = read.csv("C:/Users/nathan/Google Drive/Data Science Boot Camp/data/Healthcare_Associated_Infections_-_Hospital.csv")
# first filter out the data so that it doesn't contain
# hospitals for which measurements were not done
hiDF = filter(hiDF, Compared.to.National != 'Not Available')
# next remove... | /Project2-Shiny/NathanStevens/data_processor.R | no_license | vuchau/bootcamp007_project | R | false | false | 1,840 | r | library(dplyr)
hiDF = read.csv("C:/Users/nathan/Google Drive/Data Science Boot Camp/data/Healthcare_Associated_Infections_-_Hospital.csv")
# first filter out the data so that it doesn't contain
# hospitals for which measurements were not done
hiDF = filter(hiDF, Compared.to.National != 'Not Available')
# next remove... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/projectMetrics.R
\name{lcpa}
\alias{lcpa}
\title{Compute the longest chain of past passed builds}
\usage{
lcpa(currentBuild)
}
\arguments{
\item{currentBuild}{id of travis-ci build}
}
\description{
This function computes the longest chain of ... | /man/lcpa.Rd | no_license | k-raczkowska/MMSE | R | false | true | 486 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/projectMetrics.R
\name{lcpa}
\alias{lcpa}
\title{Compute the longest chain of past passed builds}
\usage{
lcpa(currentBuild)
}
\arguments{
\item{currentBuild}{id of travis-ci build}
}
\description{
This function computes the longest chain of ... |
# File: figure1d.R
# Author: Yonglu Che
# Description: Script to generate Figure 1D - Percentage mutation rate by cancer type
# Merge of SCC exome sequencing with TCGA data from cBioportal
# See materials and methods for download and preprocessing instr.
library(ggplot2)
data_dir <- "data"
Mutation_percentages_df = re... | /src/figure1d.R | no_license | tjbencomo/col11a1-manuscript | R | false | false | 1,329 | r | # File: figure1d.R
# Author: Yonglu Che
# Description: Script to generate Figure 1D - Percentage mutation rate by cancer type
# Merge of SCC exome sequencing with TCGA data from cBioportal
# See materials and methods for download and preprocessing instr.
library(ggplot2)
data_dir <- "data"
Mutation_percentages_df = re... |
#A function to make scatter plot between two varialbes, including distance matrixs
scatter.plot <- function(x,y,coords=NULL,all.points=TRUE,npoints=10000,mantel.test=FALSE,modified.ttest=FALSE,col=adjustcolor("black",alpha=0.1),
reg.line=TRUE,cor.coef=TRUE,pvalue=TRUE,pvalue.symbol=FALSE,r2=FALSE,text.pos="topleft",x... | /Rcode/functions/scatter.plot.R | no_license | Wubing-Xu/Global_tree_beta-diversity | R | false | false | 3,542 | r | #A function to make scatter plot between two varialbes, including distance matrixs
scatter.plot <- function(x,y,coords=NULL,all.points=TRUE,npoints=10000,mantel.test=FALSE,modified.ttest=FALSE,col=adjustcolor("black",alpha=0.1),
reg.line=TRUE,cor.coef=TRUE,pvalue=TRUE,pvalue.symbol=FALSE,r2=FALSE,text.pos="topleft",x... |
############Skomy
## ----echo=FALSE----------------------------------------------------------
load("~/ensiie_S3/MLG/Projet/hedonic.rda")
par(mfrow=c(1,2),pty="m")
hist(Hedonic$mv,main="Histogramme de mv",xlab="",freq=FALSE,col="grey")
lines(density(Hedonic$mv),col="blue")
par(mfrow=c(1,1),pty="m")
boxplot(Hedonic$mv,c... | /Houses.R | no_license | Skoomy/Houses-modelling | R | false | false | 24,385 | r |
############Skomy
## ----echo=FALSE----------------------------------------------------------
load("~/ensiie_S3/MLG/Projet/hedonic.rda")
par(mfrow=c(1,2),pty="m")
hist(Hedonic$mv,main="Histogramme de mv",xlab="",freq=FALSE,col="grey")
lines(density(Hedonic$mv),col="blue")
par(mfrow=c(1,1),pty="m")
boxplot(Hedonic$mv,c... |
# initialise list of selected tracks
tracksSelected <- reactiveValues(tracks = c())
# remember which layers have been loaded
tracksLayers <- reactiveValues(loaded = c())
# trips available based on user, dates and vessels selected
tripsAvailable <- reactiveValues(data = NULL)
# remember previous value of map type
old... | /ShinyApps/app/server_tracks.R | no_license | StAResComp/sifids_web | R | false | false | 21,789 | r | # initialise list of selected tracks
tracksSelected <- reactiveValues(tracks = c())
# remember which layers have been loaded
tracksLayers <- reactiveValues(loaded = c())
# trips available based on user, dates and vessels selected
tripsAvailable <- reactiveValues(data = NULL)
# remember previous value of map type
old... |
/09_controller.R | no_license | tomicapretto/tesina | R | false | false | 2,071 | r | ||
library(dygraphs)
library(datasets)
library(xts)
library(lubridate)
load("MegaWideOct2015.RData")
mega.merge <- z
shinyServer(function(input, output) {
output$feedback<- reactive({
validate( need(input$password, "Enter the password"))
if (input$password=="water"){answer<-"Password is correct"}
else{a... | /Intermediate_Shiny/server.R | no_license | matthewross07/ShinyTutorial_Practice | R | false | false | 1,781 | r | library(dygraphs)
library(datasets)
library(xts)
library(lubridate)
load("MegaWideOct2015.RData")
mega.merge <- z
shinyServer(function(input, output) {
output$feedback<- reactive({
validate( need(input$password, "Enter the password"))
if (input$password=="water"){answer<-"Password is correct"}
else{a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MACRO-Human-Biting.R
\name{MacroHuman_sumKappa_PfMOI}
\alias{MacroHuman_sumKappa_PfMOI}
\title{MACRO: Update \code{\link{Human}} PfMOI kappa For a Patch}
\usage{
MacroHuman_sumKappa_PfMOI()
}
\arguments{
\item{a}{parameter}
}
\value{
does stu... | /man/MacroHuman_sumKappa_PfMOI.Rd | no_license | smitdave/MASH | R | false | true | 500 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MACRO-Human-Biting.R
\name{MacroHuman_sumKappa_PfMOI}
\alias{MacroHuman_sumKappa_PfMOI}
\title{MACRO: Update \code{\link{Human}} PfMOI kappa For a Patch}
\usage{
MacroHuman_sumKappa_PfMOI()
}
\arguments{
\item{a}{parameter}
}
\value{
does stu... |
library(ammistability)
### Name: ASTAB.AMMI
### Title: AMMI Based Stability Parameter
### Aliases: ASTAB.AMMI
### ** Examples
library(agricolae)
data(plrv)
# AMMI model
model <- with(plrv, AMMI(Locality, Genotype, Rep, Yield, console = FALSE))
# ANOVA
model$ANOVA
# IPC F test
model$analysis
# Mean yield and IPC... | /data/genthat_extracted_code/ammistability/examples/ASTAB.AMMI.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 779 | r | library(ammistability)
### Name: ASTAB.AMMI
### Title: AMMI Based Stability Parameter
### Aliases: ASTAB.AMMI
### ** Examples
library(agricolae)
data(plrv)
# AMMI model
model <- with(plrv, AMMI(Locality, Genotype, Rep, Yield, console = FALSE))
# ANOVA
model$ANOVA
# IPC F test
model$analysis
# Mean yield and IPC... |
"qMap" <- function(obsfn,histfn,ccsfn,nproj,nsimyrs,nhistyrs, station, histstart, histend,plotdir){
#This code is different from the standard qMAP file because it reads in separte files for the historical
# simulation period and the future simulation period. Files should be preprocessed so tha the historical simulatio... | /R/Scripts/qMap_HDE.R | no_license | rabutler/SecondaryBC | R | false | false | 18,433 | r | "qMap" <- function(obsfn,histfn,ccsfn,nproj,nsimyrs,nhistyrs, station, histstart, histend,plotdir){
#This code is different from the standard qMAP file because it reads in separte files for the historical
# simulation period and the future simulation period. Files should be preprocessed so tha the historical simulatio... |
#Import CSV to dataframe Iris
income_mini = read.csv("C:/Users/Siva/Desktop/Data Mining/Homework 1/Iris.csv", TRUE)
#declare a dataframe for storing results
result_df <- data.frame(
"Transaction-ID"=integer(),
"1st"=integer(),
"1st-dist"=double(),
... | /Pre-processing/Iris_euclid_dataframe.r | no_license | mrsiva26/Data-Mining | R | false | false | 2,452 | r | #Import CSV to dataframe Iris
income_mini = read.csv("C:/Users/Siva/Desktop/Data Mining/Homework 1/Iris.csv", TRUE)
#declare a dataframe for storing results
result_df <- data.frame(
"Transaction-ID"=integer(),
"1st"=integer(),
"1st-dist"=double(),
... |
## Download, unzip, and read the dataset:
dataURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
filename <- "Household_power_consumption.zip"
datafile <- "household_power_consumption.txt"
if (!file.exists(filename)){
download.file(dataURL, filename, method="curl")
}
if ... | /plot3.R | no_license | acblimehouse/Exploratory_Data_Analysis_Wk1 | R | false | false | 1,488 | r | ## Download, unzip, and read the dataset:
dataURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
filename <- "Household_power_consumption.zip"
datafile <- "household_power_consumption.txt"
if (!file.exists(filename)){
download.file(dataURL, filename, method="curl")
}
if ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gfortis}
\alias{gfortis}
\title{\emph{Geospiza fortis} beak depth data}
\format{
A data frame with 413 rows and 8 variables:
\describe{
\item{brood_id}{factor: identifier for each brood of offspring}
\item{species}... | /man/gfortis.Rd | permissive | ryanraaum/qmdata | R | false | true | 1,530 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gfortis}
\alias{gfortis}
\title{\emph{Geospiza fortis} beak depth data}
\format{
A data frame with 413 rows and 8 variables:
\describe{
\item{brood_id}{factor: identifier for each brood of offspring}
\item{species}... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{Maybe}
\alias{Maybe}
\title{Maybe call a function}
\usage{
Maybe(fn)
}
\arguments{
\item{fn}{A function.}
}
\value{
A function.
}
\description{
If the argument(s) to a function are missing or \code{NULL},
return \code{NULL}; otherwise apply the function.
}
| /man/Maybe.Rd | no_license | gschofl/rmisc | R | false | false | 317 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{Maybe}
\alias{Maybe}
\title{Maybe call a function}
\usage{
Maybe(fn)
}
\arguments{
\item{fn}{A function.}
}
\value{
A function.
}
\description{
If the argument(s) to a function are missing or \code{NULL},
return \code{NULL}; otherwise apply the function.
}
|
#--plot max drawdown
#--plot.drawdowns.ggplot2.r
library (ggplot2)
library (reshape2)
#source ("d://python_projects//compfi//multiplot.r")
#-- http://stackoverflow.com/questions/19387202/fill-the-region-between-two-lines-with-ggplot2-in-r
symbol = "adksx"
find.common.ylim = function (data) {
relative = NULL
... | /plot.drawdowns.ggplot2.r | no_license | localperf/compfi | R | false | false | 6,463 | r |
#--plot max drawdown
#--plot.drawdowns.ggplot2.r
library (ggplot2)
library (reshape2)
#source ("d://python_projects//compfi//multiplot.r")
#-- http://stackoverflow.com/questions/19387202/fill-the-region-between-two-lines-with-ggplot2-in-r
symbol = "adksx"
find.common.ylim = function (data) {
relative = NULL
... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
#source("/home/carlos/Downloads/vacine/vacine.r")
#source("vacine.r")
library(stringr... | /server.R | no_license | tomatebio/dataproduct | R | false | false | 3,178 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
#source("/home/carlos/Downloads/vacine/vacine.r")
#source("vacine.r")
library(stringr... |
# Random Forest Classification
# Importing the dataset
setwd("C:/Users/rahul/Documents/UserData/Online Training/Machine Learning A-Z/Manual/Part 3 - Classification/Section 20 - Random Forest Classification")
dataset = read.csv('Social_Network_Ads.csv')
dataset = dataset[3:5]
# Encoding the target feature as factor
da... | /Part 3 - Classification/Section 20 - Random Forest Classification/Section 20 - Random Forest Classification.R | no_license | Rahulkg007/Machine-Learning-Udemy | R | false | false | 2,594 | r | # Random Forest Classification
# Importing the dataset
setwd("C:/Users/rahul/Documents/UserData/Online Training/Machine Learning A-Z/Manual/Part 3 - Classification/Section 20 - Random Forest Classification")
dataset = read.csv('Social_Network_Ads.csv')
dataset = dataset[3:5]
# Encoding the target feature as factor
da... |
# Número de repeticiones en la simulación
repeticiones <- 1000
# Tamaño inicial de las dos muestras
n_muestra_1 <- 10
n_muestra_2 <- 10
# Aumento del tamaño de la muestra en cada paso
paso <- 5
# Tamaño máximo de las muestras que vamos a emplear
max_pasos <- 32
# Valor de mu (media) de la población de cada una de la... | /simulacion stopping points.R | no_license | joaquinmoris/OpenScience2019UMA | R | false | false | 1,304 | r | # Número de repeticiones en la simulación
repeticiones <- 1000
# Tamaño inicial de las dos muestras
n_muestra_1 <- 10
n_muestra_2 <- 10
# Aumento del tamaño de la muestra en cada paso
paso <- 5
# Tamaño máximo de las muestras que vamos a emplear
max_pasos <- 32
# Valor de mu (media) de la población de cada una de la... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/err_tdy.R
\name{err_tdy_breaks_integer_period}
\alias{err_tdy_breaks_integer_period}
\title{Check and tidy a vector of integer breaks used to define periods}
\usage{
err_tdy_breaks_integer_period(breaks)
}
\arguments{
\item{breaks}{An integer... | /man/err_tdy_breaks_integer_period.Rd | permissive | bayesiandemography/demcheck | R | false | true | 723 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/err_tdy.R
\name{err_tdy_breaks_integer_period}
\alias{err_tdy_breaks_integer_period}
\title{Check and tidy a vector of integer breaks used to define periods}
\usage{
err_tdy_breaks_integer_period(breaks)
}
\arguments{
\item{breaks}{An integer... |
##########################################
# Coliphage analysis - 6 beaches
# v1 by Jade 7/13/15
# Forest plot of CIRs for single indicators
##########################################
rm(list=ls())
library(ggplot2)
library(plyr)
library(scales)
library(grid)
load("~/Documents/CRG/coliphage/results/rawoutput/regress... | /src/Figures/supplement/1b-figure-forest.R | no_license | jadebc/13beaches-coliphage | R | false | false | 6,129 | r | ##########################################
# Coliphage analysis - 6 beaches
# v1 by Jade 7/13/15
# Forest plot of CIRs for single indicators
##########################################
rm(list=ls())
library(ggplot2)
library(plyr)
library(scales)
library(grid)
load("~/Documents/CRG/coliphage/results/rawoutput/regress... |
# Samantha Masca
# Nicole Cheng
# BIOS 30318
# Exercise 11
# TA: Elizabeth Brooks
rN <- 0.1
rM <- 0.1
K <- 1000000 # carrying capacity
rND <- -0.1 # cancer drug present, non-mutant
rMD <- 0.05 # cancer drug present, mutant
times <- 1:500 # set timesteps
Ns <- matrix(data=NA, nrow=length(times), ncol=3) # set ma... | /Exercise_11.R | no_license | smasca/Biocomputing2020_Tutorial13 | R | false | false | 1,177 | r | # Samantha Masca
# Nicole Cheng
# BIOS 30318
# Exercise 11
# TA: Elizabeth Brooks
rN <- 0.1
rM <- 0.1
K <- 1000000 # carrying capacity
rND <- -0.1 # cancer drug present, non-mutant
rMD <- 0.05 # cancer drug present, mutant
times <- 1:500 # set timesteps
Ns <- matrix(data=NA, nrow=length(times), ncol=3) # set ma... |
#' Drop rogue taxa to generate a more informative consensus
#'
#' `RogueTaxa()` finds wildcard leaves whose removal increases the resolution
#' or branch support values of a consensus tree, using the relative
#' bipartition, shared phylogenetic, or mutual clustering concepts of
#' information.
#'
#' "Rogue" or (loosely... | /R/RogueTaxa.R | no_license | ms609/Rogue | R | false | false | 8,111 | r | #' Drop rogue taxa to generate a more informative consensus
#'
#' `RogueTaxa()` finds wildcard leaves whose removal increases the resolution
#' or branch support values of a consensus tree, using the relative
#' bipartition, shared phylogenetic, or mutual clustering concepts of
#' information.
#'
#' "Rogue" or (loosely... |
####################
#
# Modelling Almetric mentions
#
####################
rm(list=ls())
## load packages
library(dplyr)
library(tidyr)
library(lme4)
library(here)
setwd(here())
## load Almetric dataset
## ***This is private Altmetric data that we cannot provide. Please refer to the query.md for Altmetric search... | /scripts/Altmetric_models.R | no_license | travistai2/open-science-cc | R | false | false | 3,139 | r |
####################
#
# Modelling Almetric mentions
#
####################
rm(list=ls())
## load packages
library(dplyr)
library(tidyr)
library(lme4)
library(here)
setwd(here())
## load Almetric dataset
## ***This is private Altmetric data that we cannot provide. Please refer to the query.md for Altmetric search... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/show.R
\docType{methods}
\name{show,ExpVarRasterList-method}
\alias{show,ExpVarRasterList-method}
\alias{show,PredictiveModelList-method}
\alias{show,PredictionList-method}
\alias{show,PerformanceList-method}
\alias{show,Model-method}
\alias{... | /man/show-methods.Rd | no_license | cran/lulcc | R | false | true | 739 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/show.R
\docType{methods}
\name{show,ExpVarRasterList-method}
\alias{show,ExpVarRasterList-method}
\alias{show,PredictiveModelList-method}
\alias{show,PredictionList-method}
\alias{show,PerformanceList-method}
\alias{show,Model-method}
\alias{... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{auto_test}
\alias{auto_test}
\title{Watches code and tests for changes, rerunning tests as appropriate.}
\usage{
auto_test(code_path, test_path, reporter = "summary", env = test_env())
}
\arguments{
\item{code_path}{path to directory containing code}
\item... | /man/auto_test.Rd | no_license | juancentro/testthat | R | false | false | 1,316 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{auto_test}
\alias{auto_test}
\title{Watches code and tests for changes, rerunning tests as appropriate.}
\usage{
auto_test(code_path, test_path, reporter = "summary", env = test_env())
}
\arguments{
\item{code_path}{path to directory containing code}
\item... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# Loading Packages
library(shiny)
library(tidyverse)
library(ggsci)
library(shinysky)
library(shinycssloaders)
lib... | /RNA-Seq/RNA-Seq_app.R | no_license | NMaziak/NC_Timecourse | R | false | false | 4,652 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# Loading Packages
library(shiny)
library(tidyverse)
library(ggsci)
library(shinysky)
library(shinycssloaders)
lib... |
#' duplicated_packages lists the duplicated packages with their locations
#' @title List the duplicated packages with their locations
#' @author Marc Girondot \email{marc.girondot@@gmail.com}
#' @return A data.frame with 4 elements for each duplicated packages:\cr
#' - versions: the version of the packages\cr
#' - libr... | /R/duplicated_packages.R | no_license | cran/HelpersMG | R | false | false | 1,997 | r | #' duplicated_packages lists the duplicated packages with their locations
#' @title List the duplicated packages with their locations
#' @author Marc Girondot \email{marc.girondot@@gmail.com}
#' @return A data.frame with 4 elements for each duplicated packages:\cr
#' - versions: the version of the packages\cr
#' - libr... |
##
##ExData_Plotting1 project
##
## Plot 4 - 4 plots in a diagram
##
## Load data -- Data had been downloaded into the working directory
##
plot4 <- function() {
## check if the file exist
if(!file.exists('Data')) {
dir.create('Data')
Url <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_c... | /plot4.R | no_license | yuehow/ExData_Plotting1 | R | false | false | 2,295 | r | ##
##ExData_Plotting1 project
##
## Plot 4 - 4 plots in a diagram
##
## Load data -- Data had been downloaded into the working directory
##
plot4 <- function() {
## check if the file exist
if(!file.exists('Data')) {
dir.create('Data')
Url <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_c... |
library("SuperLearner")
train_data <- read.csv("train_summ.csv")
actual_train_data <- head(train_data, 1000)
actual_test_data <- tail(train_data, 397)
drops <- c("Kurtosis","Skew")
actual_train_data <- actual_train_data[ , !(names(actual_train_data) %in% drops)]
actual_test_data <- actual_test_data[ , !(names(actual_... | /Project4.Imaging/code/04_bin_sl_TC.R | no_license | rachaelvp/ph244-big_data | R | false | false | 979 | r | library("SuperLearner")
train_data <- read.csv("train_summ.csv")
actual_train_data <- head(train_data, 1000)
actual_test_data <- tail(train_data, 397)
drops <- c("Kurtosis","Skew")
actual_train_data <- actual_train_data[ , !(names(actual_train_data) %in% drops)]
actual_test_data <- actual_test_data[ , !(names(actual_... |
##########################################################################################################################################
## This R script will do the following :
## 1. Create the variables SMS_Count, Email_Count, and Call_Count: number of times each Lead_Id was contacted through each channel.
## 2. Cr... | /CampaignManagement/MRS-SPARK/step2_feature_engineering.R | no_license | sriteja009/SQL-Server-R-Services-Samples | R | false | false | 4,806 | r | ##########################################################################################################################################
## This R script will do the following :
## 1. Create the variables SMS_Count, Email_Count, and Call_Count: number of times each Lead_Id was contacted through each channel.
## 2. Cr... |
## ----message=FALSE, warning=FALSE------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# パッケージの読み込み
library("ggplot2") # グラフィック
library("gridExtra")
library("ggthemes")
library("... | /r/kernels/maccalla-titanic-challenge-written-in-japanese/script/titanic-challenge-written-in-japanese.R | no_license | helenaK/trustworthy-titanic | R | false | false | 24,785 | r | ## ----message=FALSE, warning=FALSE------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# パッケージの読み込み
library("ggplot2") # グラフィック
library("gridExtra")
library("ggthemes")
library("... |
#Assignment 1 PLOT 1
#-----------------------------------------------------------------------------
#"Individual household electric power consumption Data Set"
#-----------------------------------------------------------------------------
#Check: Code folder should contain the following data folder and data
filepath <-... | /plot3.r | no_license | AbhaySThakur/ExData_Plotting1 | R | false | false | 1,766 | r | #Assignment 1 PLOT 1
#-----------------------------------------------------------------------------
#"Individual household electric power consumption Data Set"
#-----------------------------------------------------------------------------
#Check: Code folder should contain the following data folder and data
filepath <-... |
\name{TargetSearch-defunct}
\alias{TargetSearch-defunct}
\alias{fixRIcorrection}
\alias{fixRIcorrection-defunct}
\alias{TargetSearchGUI}
\title{Defunct functions in package \sQuote{TargetSearch}}
\description{
Functions listed here are defunct and no longer available.
}
\details{
These function have been removed... | /man/TargetSearch-defunct.Rd | no_license | acinostroza/TargetSearch | R | false | false | 698 | rd | \name{TargetSearch-defunct}
\alias{TargetSearch-defunct}
\alias{fixRIcorrection}
\alias{fixRIcorrection-defunct}
\alias{TargetSearchGUI}
\title{Defunct functions in package \sQuote{TargetSearch}}
\description{
Functions listed here are defunct and no longer available.
}
\details{
These function have been removed... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/beta_C.R
\name{beta_C}
\alias{beta_C}
\title{Calculate beta_C}
\usage{
beta_C(x, C, extrapolation = T, interrupt = T)
}
\arguments{
\item{x}{a site by species matrix}
\item{C}{target coverage. value between 0 and 1.}
\item{extrapolation}{lo... | /man/beta_C.Rd | no_license | T-Engel/betaC | R | false | true | 705 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/beta_C.R
\name{beta_C}
\alias{beta_C}
\title{Calculate beta_C}
\usage{
beta_C(x, C, extrapolation = T, interrupt = T)
}
\arguments{
\item{x}{a site by species matrix}
\item{C}{target coverage. value between 0 and 1.}
\item{extrapolation}{lo... |
context("TSVM Universvm classifier")
# Simple dataset used in the tests
data(testdata)
modelform <- testdata$modelform
classname<-all.vars(modelform)[1]
D <- testdata$D
D_test <- testdata$D_test
X <- testdata$X
X_u <- testdata$X_u
y <- testdata$y
X_test <- testdata$X_test
y_test <- testdata$y_test
# test_that("Rejec... | /tests/testthat/testTSVMuniversvm.R | no_license | trappmartin/RSSL | R | false | false | 2,502 | r | context("TSVM Universvm classifier")
# Simple dataset used in the tests
data(testdata)
modelform <- testdata$modelform
classname<-all.vars(modelform)[1]
D <- testdata$D
D_test <- testdata$D_test
X <- testdata$X
X_u <- testdata$X_u
y <- testdata$y
X_test <- testdata$X_test
y_test <- testdata$y_test
# test_that("Rejec... |
#Cell line info
celllinefile="C:/Users/Obi/Documents/My Dropbox/Projects/BCCL/ALEXA/67libs/cell_line_info.2.txt"
#Gene data
genedatafile="C:/Users/Obi/Documents/My Dropbox/Projects/BCCL/ALEXA/67libs/MAP3K14/ENSG00000006062.txt"
#All gene expression data
datafile="C:/Users/Obi/Documents/My Dropbox/Projects/BCCL... | /LBNL/BCCL/ALEXA/ALEXASingleGeneAnalysis.R | no_license | obigriffith/analysis-projects-R | R | false | false | 16,476 | r | #Cell line info
celllinefile="C:/Users/Obi/Documents/My Dropbox/Projects/BCCL/ALEXA/67libs/cell_line_info.2.txt"
#Gene data
genedatafile="C:/Users/Obi/Documents/My Dropbox/Projects/BCCL/ALEXA/67libs/MAP3K14/ENSG00000006062.txt"
#All gene expression data
datafile="C:/Users/Obi/Documents/My Dropbox/Projects/BCCL... |
#' Constructor for a class in the PredictiveModel class hierarchy that wraps models returned from caret
#'
#' @export
CrossValidationParameterOptimizer <- setRefClass(Class = "CrossValidationParameterOptimizer",
contains="PredictiveModel",
... | /R5/CrossValidationParameterOptimizer.R | no_license | insockjang/DrugResponse | R | false | false | 8,203 | r | #' Constructor for a class in the PredictiveModel class hierarchy that wraps models returned from caret
#'
#' @export
CrossValidationParameterOptimizer <- setRefClass(Class = "CrossValidationParameterOptimizer",
contains="PredictiveModel",
... |
\name{factor.scores}
\alias{factor.scores}
\alias{factor.scores.gpcm}
\alias{factor.scores.grm}
\alias{factor.scores.ltm}
\alias{factor.scores.rasch}
\alias{factor.scores.tpm}
\title{ Factor Scores - Ability Estimates }
\description{
Computation of factor scores for \code{grm}, \code{ltm}, \code{rasch} and \code{tp... | /man/factor.scores.Rd | no_license | SethPoulsen/ltm | R | false | false | 7,629 | rd | \name{factor.scores}
\alias{factor.scores}
\alias{factor.scores.gpcm}
\alias{factor.scores.grm}
\alias{factor.scores.ltm}
\alias{factor.scores.rasch}
\alias{factor.scores.tpm}
\title{ Factor Scores - Ability Estimates }
\description{
Computation of factor scores for \code{grm}, \code{ltm}, \code{rasch} and \code{tp... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/urinary_tract.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.55,family="gaussian",standardize=TRUE)
sink('./urinary_tract_061.txt'... | /Model/EN/Classifier/urinary_tract/urinary_tract_061.R | no_license | esbgkannan/QSMART | R | false | false | 363 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/urinary_tract.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.55,family="gaussian",standardize=TRUE)
sink('./urinary_tract_061.txt'... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/access_token.R
\name{jencode}
\alias{jencode}
\title{Generate encoded request token}
\usage{
jencode(jheader, jpayload, client_secret)
}
\arguments{
\item{jheader}{The jwt_header in json format}
\item{jpayload}{The jwt_payload in json format... | /man/jencode.Rd | no_license | bdevoe/iformr | R | false | true | 487 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/access_token.R
\name{jencode}
\alias{jencode}
\title{Generate encoded request token}
\usage{
jencode(jheader, jpayload, client_secret)
}
\arguments{
\item{jheader}{The jwt_header in json format}
\item{jpayload}{The jwt_payload in json format... |
### Author Information #####
### Coded by Rischan Mafrur ###
### 01/01/2015 ###
### For Thesis Purpose ###
### Language : R ###
### Dataset : Private Data ###
### Divide Dataset to two parts ###
# setwd("D:/DATA/output3")
# df <- read.csv("ENFP_0719_HP.csv")
#
# df1 <- subset(df, as.Date(df$Timestamp,"%m-%d-%Y %H:%... | /split_data.R | permissive | rischanlab/HumanBehaviorModeling | R | false | false | 1,510 | r | ### Author Information #####
### Coded by Rischan Mafrur ###
### 01/01/2015 ###
### For Thesis Purpose ###
### Language : R ###
### Dataset : Private Data ###
### Divide Dataset to two parts ###
# setwd("D:/DATA/output3")
# df <- read.csv("ENFP_0719_HP.csv")
#
# df1 <- subset(df, as.Date(df$Timestamp,"%m-%d-%Y %H:%... |
require(caret)
control <- trainControl(method = "cv", number = 5)
data_config <- read.csv2("ML_Shiny/ressources/config-2020-02-13.csv")
data_inp <- read.csv("ML_Shiny/www/iris.csv")
form_algo <- list()
apply(data_config, 1, function(x){
preproc <- x[which(names(data_config)=="preProc")]
tunegrid <- paste("expa... | /ML_BD_V1/ML_Shiny/build.R | no_license | m2-rshiny/ProjetTut | R | false | false | 2,181 | r | require(caret)
control <- trainControl(method = "cv", number = 5)
data_config <- read.csv2("ML_Shiny/ressources/config-2020-02-13.csv")
data_inp <- read.csv("ML_Shiny/www/iris.csv")
form_algo <- list()
apply(data_config, 1, function(x){
preproc <- x[which(names(data_config)=="preProc")]
tunegrid <- paste("expa... |
avg_zins<-function(einzahlungen2,end_date, end_sum){
start_time <- Sys.time()
a = 0
max_col=nrow(einzahlungen2)
anzahlfonds=nrow(end_sum)
einzahlungen2$Jahre<-as.integer(time_length(interval( ymd(einzahlungen2$Datum),end_date),"years"))
einzahlungen2$Tage<- as.integer(time_length(interval( ymd(einzahlun... | /avg_zins.R | no_license | shaobo9856/get_isin | R | false | false | 1,490 | r |
avg_zins<-function(einzahlungen2,end_date, end_sum){
start_time <- Sys.time()
a = 0
max_col=nrow(einzahlungen2)
anzahlfonds=nrow(end_sum)
einzahlungen2$Jahre<-as.integer(time_length(interval( ymd(einzahlungen2$Datum),end_date),"years"))
einzahlungen2$Tage<- as.integer(time_length(interval( ymd(einzahlun... |
titles <- c("blog","news","twit","blognost","newsnost","twitnost")
# Because of memory issues I really have to do everything step-by-step
getngrams <- function(type=1,n){
load(paste(cpath,"corpus_clean_",sample_size,".RData",sep=""))
corpus <- crp_blog_1
if (type==2) corpus <- crp_news_1
else if (ty... | /Capstone/ngramcreation.R | no_license | ppssphysics/CS_DataScience | R | false | false | 1,452 | r | titles <- c("blog","news","twit","blognost","newsnost","twitnost")
# Because of memory issues I really have to do everything step-by-step
getngrams <- function(type=1,n){
load(paste(cpath,"corpus_clean_",sample_size,".RData",sep=""))
corpus <- crp_blog_1
if (type==2) corpus <- crp_news_1
else if (ty... |
# PART 1: The first part of this script deals with getting the dataset from 'Test' folder.
# Read in the first table consisting of volunteers. This is a single column table
# with 2947 rows
volunteers <- read.table("./data/UCI_HAR/test/subject_test.txt", sep="")
# Read in the second table consisting of activities. Th... | /run_analysis.R | no_license | sammyguy/HumanActRecognition | R | false | false | 6,899 | r | # PART 1: The first part of this script deals with getting the dataset from 'Test' folder.
# Read in the first table consisting of volunteers. This is a single column table
# with 2947 rows
volunteers <- read.table("./data/UCI_HAR/test/subject_test.txt", sep="")
# Read in the second table consisting of activities. Th... |
context("test-tempnetwork-error-messages")
test_that("test 'error_messages'", {
expect_error(error_vertex_not_exists(), error_message_vertex_not_exists())
expect_error(error_tvertex_not_exists(), error_message_tvertex_not_exists())
expect_error(error_point_not_exists(), error_message_point_not_exists())
expec... | /tests/testthat/test-tempnetwork-error-messages.R | no_license | KonstantinRK/tempnetwork | R | false | false | 3,988 | r | context("test-tempnetwork-error-messages")
test_that("test 'error_messages'", {
expect_error(error_vertex_not_exists(), error_message_vertex_not_exists())
expect_error(error_tvertex_not_exists(), error_message_tvertex_not_exists())
expect_error(error_point_not_exists(), error_message_point_not_exists())
expec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zchunk_L222.en_transformation_USA.R
\name{module_gcam.usa_L222.en_transformation_USA}
\alias{module_gcam.usa_L222.en_transformation_USA}
\title{module_gcam.usa_L222.en_transformation_USA}
\usage{
module_gcam.usa_L222.en_transformation_USA(com... | /man/module_gcam.usa_L222.en_transformation_USA.Rd | no_license | shaohuizhang/gcamdata | R | false | true | 1,766 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zchunk_L222.en_transformation_USA.R
\name{module_gcam.usa_L222.en_transformation_USA}
\alias{module_gcam.usa_L222.en_transformation_USA}
\title{module_gcam.usa_L222.en_transformation_USA}
\usage{
module_gcam.usa_L222.en_transformation_USA(com... |
# Superlab Spring 2021 Statistical Analysis of Abiotic Data
# This script can be used to install all the packages you'll need to run the analyses in abiotic_stats.R
install.packages("ggplot2")
install.packages("readr")
install.packages("dplyr")
| /set_up_environment.R | permissive | rando2/Haverford_Superlab21 | R | false | false | 246 | r | # Superlab Spring 2021 Statistical Analysis of Abiotic Data
# This script can be used to install all the packages you'll need to run the analyses in abiotic_stats.R
install.packages("ggplot2")
install.packages("readr")
install.packages("dplyr")
|
print("adding NA values for missing rows")
# insert newrow into the given dataframe at index r and return new dataframe
insertRow <- function(existingDF, newrow, r) {
existingDF[seq(r+1,nrow(existingDF)+1),] <- existingDF[seq(r,nrow(existingDF)),]
existingDF[r,] <- newrow
existingDF
}
# return a format... | /insert_missing_data.R | no_license | PIELab/stress-predictor | R | false | false | 2,613 | r | print("adding NA values for missing rows")
# insert newrow into the given dataframe at index r and return new dataframe
insertRow <- function(existingDF, newrow, r) {
existingDF[seq(r+1,nrow(existingDF)+1),] <- existingDF[seq(r,nrow(existingDF)),]
existingDF[r,] <- newrow
existingDF
}
# return a format... |
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/soft_tissue.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.85,family="gaussian",standardize=TRUE)
sink('./Model/EN/ReliefF/soft_tissue/soft_tissue_087.... | /Model/EN/ReliefF/soft_tissue/soft_tissue_087.R | no_license | leon1003/QSMART | R | false | false | 367 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/soft_tissue.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.85,family="gaussian",standardize=TRUE)
sink('./Model/EN/ReliefF/soft_tissue/soft_tissue_087.... |
#### SEMINAR 2 - GRUPPE 2 ####
## Plan for seminaret ##
# 1. Laste inn data - read_funksjoner()
# 2. Forberede og manipulere data
# 3. Utforsking av data og deskriptiv statistikk
# 4. Plotte-funksjonen ggplot
# 5. Lagre datasett
## 1. Laste inn data - read_funksjoner() ##
# Installere/hente tidyverse og haven
... | /seminar2_tomt.R | no_license | elisofieb/4020a21 | R | false | false | 1,476 | r | #### SEMINAR 2 - GRUPPE 2 ####
## Plan for seminaret ##
# 1. Laste inn data - read_funksjoner()
# 2. Forberede og manipulere data
# 3. Utforsking av data og deskriptiv statistikk
# 4. Plotte-funksjonen ggplot
# 5. Lagre datasett
## 1. Laste inn data - read_funksjoner() ##
# Installere/hente tidyverse og haven
... |
### Summarising functions, plotting etc.
###
###
require(truncnorm)
### This is a helper function to run a single gmse_apply call as a first time step, using a given list of input parameters.
### Only intended as a convenience function to ensure simulation scripts can be relatively "clean".
init_sims = function(gms... | /gmse_apply_helpers.R | no_license | jejoenje/gmse_vary | R | false | false | 61,561 | r | ### Summarising functions, plotting etc.
###
###
require(truncnorm)
### This is a helper function to run a single gmse_apply call as a first time step, using a given list of input parameters.
### Only intended as a convenience function to ensure simulation scripts can be relatively "clean".
init_sims = function(gms... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yamlet.R
\name{write_yamlet}
\alias{write_yamlet}
\title{Write Yamlet}
\usage{
write_yamlet(
x,
con = stdout(),
eol = "\\n",
useBytes = FALSE,
default_keys = getOption("yamlet_default_keys", list("label", "guide")),
fileEncoding =... | /man/write_yamlet.Rd | no_license | romainfrancois/yamlet | R | false | true | 2,090 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yamlet.R
\name{write_yamlet}
\alias{write_yamlet}
\title{Write Yamlet}
\usage{
write_yamlet(
x,
con = stdout(),
eol = "\\n",
useBytes = FALSE,
default_keys = getOption("yamlet_default_keys", list("label", "guide")),
fileEncoding =... |
#Functions
library(XML)
library(RCurl)
library(stringr)
GetPage = function(url){
x = getURI(url)
page = htmlParse(x)
x2 = gsub(pattern = "\n ",replacement = "",x = x)
## Get names of restaurants
y = data.frame(NameStart = unlist(gregexpr(pattern = 'rest-name">',x2))) + 11
NameEnds = unlist(gre... | /functions.R | no_license | debarros/OpentableSorter | R | false | false | 3,890 | r | #Functions
library(XML)
library(RCurl)
library(stringr)
GetPage = function(url){
x = getURI(url)
page = htmlParse(x)
x2 = gsub(pattern = "\n ",replacement = "",x = x)
## Get names of restaurants
y = data.frame(NameStart = unlist(gregexpr(pattern = 'rest-name">',x2))) + 11
NameEnds = unlist(gre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.emr_operations.R
\name{list_steps}
\alias{list_steps}
\title{Provides a list of steps for the cluster in reverse order unless you specify stepIds with the request}
\usage{
list_steps(ClusterId, StepStates = NULL, StepIds = NULL,
Marker... | /service/paws.emr/man/list_steps.Rd | permissive | CR-Mercado/paws | R | false | true | 1,067 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.emr_operations.R
\name{list_steps}
\alias{list_steps}
\title{Provides a list of steps for the cluster in reverse order unless you specify stepIds with the request}
\usage{
list_steps(ClusterId, StepStates = NULL, StepIds = NULL,
Marker... |
rxodeTest(
{
context("Issue #178: deactivate active compiled model")
td <- tempdir()
.rxWithWd(td, {
test_that("178", {
## Define model
skip_on_os("solaris")
skip_on_os("mac")
ode <- "
C2 = centr/V2;
C3 = peri/V3;
d/dt(depot) = -KA*depot;
d/... | /tests/testthat/test-issue-178.R | no_license | cran/RxODE | R | false | false | 860 | r | rxodeTest(
{
context("Issue #178: deactivate active compiled model")
td <- tempdir()
.rxWithWd(td, {
test_that("178", {
## Define model
skip_on_os("solaris")
skip_on_os("mac")
ode <- "
C2 = centr/V2;
C3 = peri/V3;
d/dt(depot) = -KA*depot;
d/... |
## Plotting Assignment 1 for Exploratory Data Analysis - Plot 3
## This code file constructs the plot3.png plot
## Student Name: Luiz Carlos Moutinho Pataca - luiz.pataca@gmail.com
# 1. Read the data and subsetting
Sys.setlocale("LC_TIME", "C") # Set time locale to english
inicial <- read.csv(file = "household_pow... | /plot3.R | no_license | luizpataca/ExData_Plotting1 | R | false | false | 1,437 | r | ## Plotting Assignment 1 for Exploratory Data Analysis - Plot 3
## This code file constructs the plot3.png plot
## Student Name: Luiz Carlos Moutinho Pataca - luiz.pataca@gmail.com
# 1. Read the data and subsetting
Sys.setlocale("LC_TIME", "C") # Set time locale to english
inicial <- read.csv(file = "household_pow... |
# Utility functions for using the Elbow method for selecting the optimal K
# The Elbow method is based on the sum of squared differences between data points and cluster centres,
# that is, the sum of within_SS for all the clusters (tot.withinss)
getElbowMethodParameters <- function(x) { # x: dataset (numeric var... | /Elbow method.R | no_license | inteligentni/Class-04-Clustering | R | false | false | 1,954 | r | # Utility functions for using the Elbow method for selecting the optimal K
# The Elbow method is based on the sum of squared differences between data points and cluster centres,
# that is, the sum of within_SS for all the clusters (tot.withinss)
getElbowMethodParameters <- function(x) { # x: dataset (numeric var... |
#' @title Seattle City Council Districts
#' @description Boundaries of Seattle City Council districts.
#' @return Returns an \code{\link[sf:sf]{sf object}}.
#' @note \itemize{
#' \item{Data source: King County GIS (\url{ftp://ftp.kingcounty.gov/gis-web/GISData/transitstop_SHP.zip})}
#' }
#'
#'
#'
#' @rdname bus_stop... | /R/bus_stops_metro.R | no_license | tiernanmartin/hhsitemapper | R | false | false | 1,689 | r | #' @title Seattle City Council Districts
#' @description Boundaries of Seattle City Council districts.
#' @return Returns an \code{\link[sf:sf]{sf object}}.
#' @note \itemize{
#' \item{Data source: King County GIS (\url{ftp://ftp.kingcounty.gov/gis-web/GISData/transitstop_SHP.zip})}
#' }
#'
#'
#'
#' @rdname bus_stop... |
# Declarations of all generic methods used in the package
# Copyright (c) 2005-2007 Oleg Sklyar
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1
# of the License, or (... | /R/AllGenerics.R | no_license | aoles/EBImage | R | false | false | 1,034 | r | # Declarations of all generic methods used in the package
# Copyright (c) 2005-2007 Oleg Sklyar
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1
# of the License, or (... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helperData.R
\docType{data}
\name{dcut}
\alias{dcut}
\title{Scalar noting when the sightings data are complete through}
\format{
A vector of length 1
}
\usage{
dcut
}
\description{
Right now this is set based on advice from Phili... | /man/dcut.Rd | permissive | robschick/tangled | R | false | true | 506 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helperData.R
\docType{data}
\name{dcut}
\alias{dcut}
\title{Scalar noting when the sightings data are complete through}
\format{
A vector of length 1
}
\usage{
dcut
}
\description{
Right now this is set based on advice from Phili... |
library(qlcMatrix)
### Name: corSparse
### Title: Pearson correlation between columns (sparse matrices)
### Aliases: corSparse
### ** Examples
## Not run:
##D
##D # reasonably fast (though not instantly!) with
##D # sparse matrices up to a resulting matrix size of 1e8 cells.
##D # However, the calculations and th... | /data/genthat_extracted_code/qlcMatrix/examples/corSparse.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,903 | r | library(qlcMatrix)
### Name: corSparse
### Title: Pearson correlation between columns (sparse matrices)
### Aliases: corSparse
### ** Examples
## Not run:
##D
##D # reasonably fast (though not instantly!) with
##D # sparse matrices up to a resulting matrix size of 1e8 cells.
##D # However, the calculations and th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plottingfunctions.R
\name{pvalCorrVolcano}
\alias{pvalCorrVolcano}
\title{'volcano' plot (difference in correlations vs p-values)
of all gene-metabolite pairs}
\usage{
pvalCorrVolcano(inputResults, inputData, nrpoints = 10000, diffcorr = 0.5,... | /man/pvalCorrVolcano.Rd | no_license | anu-bioinfo/IntLIM | R | false | true | 1,239 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plottingfunctions.R
\name{pvalCorrVolcano}
\alias{pvalCorrVolcano}
\title{'volcano' plot (difference in correlations vs p-values)
of all gene-metabolite pairs}
\usage{
pvalCorrVolcano(inputResults, inputData, nrpoints = 10000, diffcorr = 0.5,... |
library(validate)
### Name: cells
### Title: Cell counts and differences for a series of datasets
### Aliases: cells
### ** Examples
data(retailers)
# start with raw data
step0 <- retailers
# impute turnovers
step1 <- step0
step1$turnover[is.na(step1$turnover)] <- mean(step1$turnover,na.rm=TRUE)
# flip sign of n... | /data/genthat_extracted_code/validate/examples/cells.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 804 | r | library(validate)
### Name: cells
### Title: Cell counts and differences for a series of datasets
### Aliases: cells
### ** Examples
data(retailers)
# start with raw data
step0 <- retailers
# impute turnovers
step1 <- step0
step1$turnover[is.na(step1$turnover)] <- mean(step1$turnover,na.rm=TRUE)
# flip sign of n... |
library(Luminescence)
### Name: Risoe.BINfileData2RLum.Analysis
### Title: Convert Risoe.BINfileData object to an RLum.Analysis object
### Aliases: Risoe.BINfileData2RLum.Analysis
### Keywords: manip
### ** Examples
##load data
data(ExampleData.BINfileData, envir = environment())
##convert values for position 1
R... | /data/genthat_extracted_code/Luminescence/examples/Risoe.BINfileData2RLum.Analysis.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 380 | r | library(Luminescence)
### Name: Risoe.BINfileData2RLum.Analysis
### Title: Convert Risoe.BINfileData object to an RLum.Analysis object
### Aliases: Risoe.BINfileData2RLum.Analysis
### Keywords: manip
### ** Examples
##load data
data(ExampleData.BINfileData, envir = environment())
##convert values for position 1
R... |
#############################################################################
#
# XLConnect
# Copyright (C) 2010-2021 Mirai Solutions GmbH
#
# 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 Software Foundation... | /R/cellstyle.setBorder.R | no_license | miraisolutions/xlconnect | R | false | false | 1,647 | r | #############################################################################
#
# XLConnect
# Copyright (C) 2010-2021 Mirai Solutions GmbH
#
# 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 Software Foundation... |
#' High-definition likelihood inference of SNP-based heritabiity (HDL)
#'
#' The function returns the estimate and standard error of the SNP-heritability of one trait based on GWAS summary statistics.
#'
#' @param gwas.df A data frame including GWAS summary statistics of genetic variants for a trait.
#' The input d... | /HDL/R/HDL.h2.R | no_license | zhanyq/HDL | R | false | false | 19,072 | r | #' High-definition likelihood inference of SNP-based heritabiity (HDL)
#'
#' The function returns the estimate and standard error of the SNP-heritability of one trait based on GWAS summary statistics.
#'
#' @param gwas.df A data frame including GWAS summary statistics of genetic variants for a trait.
#' The input d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DEEPEst0624-package.R
\docType{package}
\name{DEEPEst0624-package}
\alias{DEEPEst0624-package}
\alias{DEEPEst0624}
\title{The 'DEEPEst0624' package.}
\description{
A DESCRIPTION OF THE PACKAGE
}
\references{
Stan Development Team (2018). RSta... | /man/DEEPEst0624-package.Rd | no_license | ColumbiaCDS/DEEPEst0624 | R | false | true | 396 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DEEPEst0624-package.R
\docType{package}
\name{DEEPEst0624-package}
\alias{DEEPEst0624-package}
\alias{DEEPEst0624}
\title{The 'DEEPEst0624' package.}
\description{
A DESCRIPTION OF THE PACKAGE
}
\references{
Stan Development Team (2018). RSta... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{cooling_eu.products}
\alias{cooling_eu.products}
\title{A list of Cooling useful work products}
\format{
A list with 2 entries.
\describe{
\item{LTC.-10.C}{The useful work product (Eu.product) "LTC.-10.C"}
\item{LT... | /man/cooling_eu.products.Rd | no_license | MatthewHeun/Recca | R | false | true | 485 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{cooling_eu.products}
\alias{cooling_eu.products}
\title{A list of Cooling useful work products}
\format{
A list with 2 entries.
\describe{
\item{LTC.-10.C}{The useful work product (Eu.product) "LTC.-10.C"}
\item{LT... |
## 1. 강수량 데이터(X)
### (1) Data2fd
basis_function <- function(my_basis, num){
X.F <- Data2fd(times, X, my_basis)
mu.F <- mean.fd(X.F)
sd.F <- sd.fd(X.F)
plot(X.F,col='grey')
plot(mu.F,col=1,lwd=2,add=TRUE)
plot(mu.F+2*sd.F,col=2,lwd=1,add=TRUE)
plot(mu.F-2*sd.F,col=2,lwd=1,add=TRUE)
title(paste('nbasis = ... | /3-FDA.R | no_license | bominkm/FDA | R | false | false | 7,937 | r | ## 1. 강수량 데이터(X)
### (1) Data2fd
basis_function <- function(my_basis, num){
X.F <- Data2fd(times, X, my_basis)
mu.F <- mean.fd(X.F)
sd.F <- sd.fd(X.F)
plot(X.F,col='grey')
plot(mu.F,col=1,lwd=2,add=TRUE)
plot(mu.F+2*sd.F,col=2,lwd=1,add=TRUE)
plot(mu.F-2*sd.F,col=2,lwd=1,add=TRUE)
title(paste('nbasis = ... |
## Script name: jhu_waitlist_data_medicaid
##
## Purpose of script: Pull Medicaid data for selected PHA IDs
##
## Author: Alastair Matheson, Public Health - Seattle & King County
## Date Created: 2022-06-27
## Email: alastair.matheson@kingcounty.gov
##
## Notes:
##
##
# SET OPTIONS AND BRING IN PACKAGES ----
option... | /analyses/waitlist/jhu_waitlist_data_medicaid.R | permissive | PHSKC-APDE/Housing | R | false | false | 9,406 | r | ## Script name: jhu_waitlist_data_medicaid
##
## Purpose of script: Pull Medicaid data for selected PHA IDs
##
## Author: Alastair Matheson, Public Health - Seattle & King County
## Date Created: 2022-06-27
## Email: alastair.matheson@kingcounty.gov
##
## Notes:
##
##
# SET OPTIONS AND BRING IN PACKAGES ----
option... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rowops.R
\name{rowswap}
\alias{rowswap}
\title{Interchange two rows of a matrix}
\usage{
rowswap(x, from, to)
}
\arguments{
\item{x}{a matrix, often consisting of the coeficient matrix, A, joined with a vector of constants, b.}
\item{from}{s... | /man/rowswap.Rd | no_license | gmonette/matlib | R | false | true | 682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rowops.R
\name{rowswap}
\alias{rowswap}
\title{Interchange two rows of a matrix}
\usage{
rowswap(x, from, to)
}
\arguments{
\item{x}{a matrix, often consisting of the coeficient matrix, A, joined with a vector of constants, b.}
\item{from}{s... |
## SDS R Workshop III
install.packages("gdata")
require(gdata)
hpi2016=read.csv("https://raw.githubusercontent.com/kho7/SDS/master/ProgrammingWorkshops/R/hpi2016dataonly.csv")
library(ggplot2)
theme_set(theme_classic())
# BoxPlot
g <- ggplot(hpi2016, aes(Region, Happy.Planet.Index))
g + geom_boxplot(varwidth=T, fill... | /ProgrammingWorkshops/R/ws3.R | no_license | kho7/SDS | R | false | false | 4,522 | r | ## SDS R Workshop III
install.packages("gdata")
require(gdata)
hpi2016=read.csv("https://raw.githubusercontent.com/kho7/SDS/master/ProgrammingWorkshops/R/hpi2016dataonly.csv")
library(ggplot2)
theme_set(theme_classic())
# BoxPlot
g <- ggplot(hpi2016, aes(Region, Happy.Planet.Index))
g + geom_boxplot(varwidth=T, fill... |
#' @title Impute missing values to the mean dosage
#'
#' @description This function imputes missing genotype values to the mean
#' dosage.
#'
#' @param Z A genotype matrix (dosage matrix) - rows correspond to
#' individuals and columns correspond to SNPs. Use 'NA' for missing values.
#'
#' @details This function i... | /R/imputeToMean.R | no_license | DavisBrian/Firth | R | false | false | 778 | r | #' @title Impute missing values to the mean dosage
#'
#' @description This function imputes missing genotype values to the mean
#' dosage.
#'
#' @param Z A genotype matrix (dosage matrix) - rows correspond to
#' individuals and columns correspond to SNPs. Use 'NA' for missing values.
#'
#' @details This function i... |
modelcoeff <- newcoeff
b0 <- modelcoeff$Estimate[1] #Intercept
b1 <- modelcoeff$Estimate[2] #Average.Value..Fill.Speed..FillSp.
b2 <- modelcoeff$Estimate[3] #Average.Value..Job.Cycle.Time..Job.Ct
#b3 <- modelcoeff$Estimate[4] #Average.Value..Post.Gate.Peak..PSTAvg.
b3 <- modelcoeff$Estimate[4] #Fill...Pack.Integ... | /maxplot.R | permissive | ragav208/Injection_Molding | R | false | false | 3,475 | r | modelcoeff <- newcoeff
b0 <- modelcoeff$Estimate[1] #Intercept
b1 <- modelcoeff$Estimate[2] #Average.Value..Fill.Speed..FillSp.
b2 <- modelcoeff$Estimate[3] #Average.Value..Job.Cycle.Time..Job.Ct
#b3 <- modelcoeff$Estimate[4] #Average.Value..Post.Gate.Peak..PSTAvg.
b3 <- modelcoeff$Estimate[4] #Fill...Pack.Integ... |
data <- read.table("household_power_consumption.txt", header = T, sep = ';',
na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
#change the date format
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
#get a subset of data related to two days in Febru... | /plot3.R | no_license | solamsalu/ExData_Plotting1 | R | false | false | 992 | r | data <- read.table("household_power_consumption.txt", header = T, sep = ';',
na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
#change the date format
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
#get a subset of data related to two days in Febru... |
### initial reading and preparing of data ###
# read in table to data
data <- read.table("./exdata-data-household_power_consumption/household_power_consumption.txt", h=T, sep=";")
# Store only the data for 1/2/07 & 2/2/07
data <- data[data[,1]== "1/2/2007" | data[,1]=="2/2/2007",]
# create datetime field using strpt... | /plot3.R | no_license | d3an79/ExData_Plotting1 | R | false | false | 1,611 | r | ### initial reading and preparing of data ###
# read in table to data
data <- read.table("./exdata-data-household_power_consumption/household_power_consumption.txt", h=T, sep=";")
# Store only the data for 1/2/07 & 2/2/07
data <- data[data[,1]== "1/2/2007" | data[,1]=="2/2/2007",]
# create datetime field using strpt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_database.R
\name{create_database}
\alias{create_database}
\title{Creating database}
\usage{
create_database(dbname, user, password, host)
}
\arguments{
\item{dbname}{name of database}
\item{user}{name of user}
\item{password}{passwor... | /sejmRP/man/create_database.Rd | no_license | mi2-warsaw/sejmRP | R | false | true | 1,903 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_database.R
\name{create_database}
\alias{create_database}
\title{Creating database}
\usage{
create_database(dbname, user, password, host)
}
\arguments{
\item{dbname}{name of database}
\item{user}{name of user}
\item{password}{passwor... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{h2o.createFrame}
\alias{h2o.createFrame}
\title{Data H2OFrame Creation in H2O}
\usage{
h2o.createFrame(rows = 10000, cols = 10, randomize = TRUE, value = 0,
real_range = 100, categorical_fraction = 0.2, factors = 100,
integer_fraction = 0.2, integer_range =... | /h2o_3.10.4.4/h2o/man/h2o.createFrame.Rd | no_license | JoeyChiese/gitKraken_test | R | false | false | 2,908 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{h2o.createFrame}
\alias{h2o.createFrame}
\title{Data H2OFrame Creation in H2O}
\usage{
h2o.createFrame(rows = 10000, cols = 10, randomize = TRUE, value = 0,
real_range = 100, categorical_fraction = 0.2, factors = 100,
integer_fraction = 0.2, integer_range =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map-genotype-frequencies.r
\name{map_genotype_frequencies}
\alias{map_genotype_frequencies}
\title{Map observed/expected genotype frequencies to sampled genotypes}
\usage{
map_genotype_frequencies(x)
}
\arguments{
\item{x}{Sample returned by ... | /man/map_genotype_frequencies.Rd | no_license | DKMS-LSL/HLAsim | R | false | true | 2,437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map-genotype-frequencies.r
\name{map_genotype_frequencies}
\alias{map_genotype_frequencies}
\title{Map observed/expected genotype frequencies to sampled genotypes}
\usage{
map_genotype_frequencies(x)
}
\arguments{
\item{x}{Sample returned by ... |
#安装需要的R包
pkgs <- rownames(installed.packages())
#本程序所需包
packages_1=c('ComplexHeatmap','circlize','colorspace','GetoptLong','RSvgDevice','data.table','RMySQL')
#将要安装的R包
packages_2=setdiff(packages_1,pkgs)
#安装所需R包
if(length(packages_2)>0){
install.packages(packages_2, repos="http://cran.rstudio.com/")
sou... | /complexheatmap_QAS/SVG/ComplexHeatmap.R | no_license | TMCjp/QAS | R | false | false | 7,653 | r | #安装需要的R包
pkgs <- rownames(installed.packages())
#本程序所需包
packages_1=c('ComplexHeatmap','circlize','colorspace','GetoptLong','RSvgDevice','data.table','RMySQL')
#将要安装的R包
packages_2=setdiff(packages_1,pkgs)
#安装所需R包
if(length(packages_2)>0){
install.packages(packages_2, repos="http://cran.rstudio.com/")
sou... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{lexmodelbuildingservice}
\alias{lexmodelbuildingservice}
\title{Amazon Lex Model Building Service}
\usage{
lexmodelbuildingservice(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/... | /cran/paws/man/lexmodelbuildingservice.Rd | permissive | johnnytommy/paws | R | false | true | 6,437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{lexmodelbuildingservice}
\alias{lexmodelbuildingservice}
\title{Amazon Lex Model Building Service}
\usage{
lexmodelbuildingservice(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/... |
getRemoveIndex <- function(fin,thickenParam="5 min",seed=1234){
set.seed(seed)
removed<- fin%>%
as_tbl_time(time) %>%
filter_time(~"2017-03") %>%
thicken(thickenParam,colname = "removed") %>%
distinct(removed) %>%
sample_frac(.25) %>%
pull(removed) %>%
as.character()
index <- ... | /PPMI/functions/getRemoveIndexFunc.R | no_license | sobradob/thesis | R | false | false | 1,139 | r |
getRemoveIndex <- function(fin,thickenParam="5 min",seed=1234){
set.seed(seed)
removed<- fin%>%
as_tbl_time(time) %>%
filter_time(~"2017-03") %>%
thicken(thickenParam,colname = "removed") %>%
distinct(removed) %>%
sample_frac(.25) %>%
pull(removed) %>%
as.character()
index <- ... |
# The zipped data file can be downloaded here: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
# Make sure to unzip the data file into the working directory: household_power_consumption.txt.
# For better efficiency, use the sqldf package to read the data.
if (!"sqldf" %in% ro... | /plot1.R | no_license | filact/ExData_Plotting1 | R | false | false | 1,179 | r | # The zipped data file can be downloaded here: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
# Make sure to unzip the data file into the working directory: household_power_consumption.txt.
# For better efficiency, use the sqldf package to read the data.
if (!"sqldf" %in% ro... |
setwd("~/r_scripts/Exploratory analysis/ExData_Plotting1")
power_data<-read.csv("household_power_consumption.txt", sep=";" )
library(dplyr)
small_data<- filter(power_data, Date=="1/2/2007" | Date=="2/2/2007")
small_data1<-mutate(small_data, DT=paste(Date, Time))
small_data1<-mutate(small_data1, DT=as.POSIXct(DT, tz=""... | /plot2.R | no_license | lauraviluma/ExData_Plotting1 | R | false | false | 604 | r | setwd("~/r_scripts/Exploratory analysis/ExData_Plotting1")
power_data<-read.csv("household_power_consumption.txt", sep=";" )
library(dplyr)
small_data<- filter(power_data, Date=="1/2/2007" | Date=="2/2/2007")
small_data1<-mutate(small_data, DT=paste(Date, Time))
small_data1<-mutate(small_data1, DT=as.POSIXct(DT, tz=""... |
### Generate FCE table
FCEPlot.Aggr.FCEs_obj <- reactive({
input$FCEPlot.Aggr.Refresh
dsList <- isolate(FCEPlot.Aggr.data())
if (is.null(dsList)) return(NULL)
aggr_on <- ifelse(input$FCEPlot.Aggr.Aggregator == 'Functions', 'funcId', 'DIM')
targets <- isolate(FCEPlot.Aggr.Targets_obj)
dt <- generate_data.Agg... | /inst/shiny-server/server/FCE_aggr_plot.R | permissive | nojhan/IOHanalyzer | R | false | false | 4,506 | r | ### Generate FCE table
FCEPlot.Aggr.FCEs_obj <- reactive({
input$FCEPlot.Aggr.Refresh
dsList <- isolate(FCEPlot.Aggr.data())
if (is.null(dsList)) return(NULL)
aggr_on <- ifelse(input$FCEPlot.Aggr.Aggregator == 'Functions', 'funcId', 'DIM')
targets <- isolate(FCEPlot.Aggr.Targets_obj)
dt <- generate_data.Agg... |
rm(list=ls())
library(GMSE)
library(scales)
library(RColorBrewer)
library(parallel)
library(foreach)
source('helpers.R')
source('gmse_apply_helpers.R')
source("build_para_grid.R")
n_sims = gmse_paras$n_sims
n_years = gmse_paras$n_years
cl = parallel::makeForkCluster(6)
doParallel::registerDoParallel(cl)
sims = list... | /new_sims_loop_test.R | no_license | jejoenje/gmse_vary | R | false | false | 6,364 | r | rm(list=ls())
library(GMSE)
library(scales)
library(RColorBrewer)
library(parallel)
library(foreach)
source('helpers.R')
source('gmse_apply_helpers.R')
source("build_para_grid.R")
n_sims = gmse_paras$n_sims
n_years = gmse_paras$n_years
cl = parallel::makeForkCluster(6)
doParallel::registerDoParallel(cl)
sims = list... |
library(xlsx)
dvu<-read.xlsx("VU.xlsx", sheetIndex = 1)
ech<-read.xlsx("Echantillon2015.xlsx", sheetIndex = 1)
my_data<-merge(dvu, ech, c("FLOW","SH4"))
Lasp_Ind<-100*my_data$VU/my_data$PRIX_BASE
my_data2<-data.frame(Temps= as.Date(paste(my_data$Year, my_data$Period, 1, sep="-")), my_data, Lasp_Ind)
test2<-aggreg... | /R_Indice/Indice_Methode_CEDEAO.R | no_license | Meomeoowww/R | R | false | false | 1,212 | r | library(xlsx)
dvu<-read.xlsx("VU.xlsx", sheetIndex = 1)
ech<-read.xlsx("Echantillon2015.xlsx", sheetIndex = 1)
my_data<-merge(dvu, ech, c("FLOW","SH4"))
Lasp_Ind<-100*my_data$VU/my_data$PRIX_BASE
my_data2<-data.frame(Temps= as.Date(paste(my_data$Year, my_data$Period, 1, sep="-")), my_data, Lasp_Ind)
test2<-aggreg... |
x <- c(3.0, 6.0, 9.0, 12.0)
y <- c(3.0, 4.0, 5.5, 6.5)
x; y
m <- lm(y ~ x)
m
# 매개변수 확인
coef(m)
# 훈련 집합의 예측값
fitted(m)
# 오차(잔차)
residuals(m)
# 평균제곱오차 MSE. 편차 제곱합 : deviance
deviance(m)
deviance(m) / length(x)
# 모델 자세히 살펴보기 : summary
summary(m)
# 모델을 이용한 예측 : predict
## 새로운 데이터
newx <- data.... | /R_Practice/DescriptiveStat/src/2. Modeling.R | no_license | ChulHyunJJ/R-programing | R | false | false | 483 | r | x <- c(3.0, 6.0, 9.0, 12.0)
y <- c(3.0, 4.0, 5.5, 6.5)
x; y
m <- lm(y ~ x)
m
# 매개변수 확인
coef(m)
# 훈련 집합의 예측값
fitted(m)
# 오차(잔차)
residuals(m)
# 평균제곱오차 MSE. 편차 제곱합 : deviance
deviance(m)
deviance(m) / length(x)
# 모델 자세히 살펴보기 : summary
summary(m)
# 모델을 이용한 예측 : predict
## 새로운 데이터
newx <- data.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formant.R
\name{formant.toFrame}
\alias{formant.toFrame}
\title{formant.toFrame}
\usage{
formant.toFrame(formantArray)
}
\arguments{
\item{formantArray}{Formant object (array format)}
}
\value{
Formant object with frames
}
\description{
forma... | /man/formant.toFrame.Rd | permissive | bbTomas/rPraat | R | false | true | 535 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formant.R
\name{formant.toFrame}
\alias{formant.toFrame}
\title{formant.toFrame}
\usage{
formant.toFrame(formantArray)
}
\arguments{
\item{formantArray}{Formant object (array format)}
}
\value{
Formant object with frames
}
\description{
forma... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/player_transfer_history.R
\name{player_transfer_history}
\alias{player_transfer_history}
\title{Get player transfer history}
\usage{
player_transfer_history(player_urls)
}
\arguments{
\item{player_urls}{the player url(s) from transfermarket}
... | /man/player_transfer_history.Rd | no_license | abhiamishra/worldfootballR | R | false | true | 522 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/player_transfer_history.R
\name{player_transfer_history}
\alias{player_transfer_history}
\title{Get player transfer history}
\usage{
player_transfer_history(player_urls)
}
\arguments{
\item{player_urls}{the player url(s) from transfermarket}
... |
#setwd("C:\\OnlineSync\\Mega\\R\\work\\web_scraping_real_estate\\cijenastanaapp")
# rsconnect::setAccountInfo(name='itmarket', token='C1A599E9B054414D2AF7752A881E154E', secret='aqXbJmCkZsdOiqoWmaF3Gi6UIOUXQdjYIGGcNxu3')
# library(rsconnect)
# rsconnect::deployApp('.')
# -- READ THE MODEL AND SET THE VARIABLES
#ALGS =... | /cijenastanaapp/app.R | no_license | dkopcino/web_scraping_real_estate | R | false | false | 12,389 | r | #setwd("C:\\OnlineSync\\Mega\\R\\work\\web_scraping_real_estate\\cijenastanaapp")
# rsconnect::setAccountInfo(name='itmarket', token='C1A599E9B054414D2AF7752A881E154E', secret='aqXbJmCkZsdOiqoWmaF3Gi6UIOUXQdjYIGGcNxu3')
# library(rsconnect)
# rsconnect::deployApp('.')
# -- READ THE MODEL AND SET THE VARIABLES
#ALGS =... |
utils::globalVariables(c(".", "i"))
#' Feature importance based on data entropy.
#'
#' \code{svd_entropy} measures the contribution of each feature in decreasing
#' the data entropy.
#'
#' @param variables character vector specifying observation variables.
#' @param sample tbl containing sample used to estimate paramet... | /R/svd_entropy.R | permissive | cytomining/cytominer | R | false | false | 2,033 | r | utils::globalVariables(c(".", "i"))
#' Feature importance based on data entropy.
#'
#' \code{svd_entropy} measures the contribution of each feature in decreasing
#' the data entropy.
#'
#' @param variables character vector specifying observation variables.
#' @param sample tbl containing sample used to estimate paramet... |
library(wheatmap)
### Name: TopRightOf
### Title: Top right of
### Aliases: TopRightOf
### ** Examples
WHeatmap(matrix(rnorm(2000),nrow=40)) +
WHeatmap(matrix(c(rnorm(100)+1,rnorm(100)), nrow=10),
cmp=CMPar(brewer.name = 'RdGy'), TopRightOf(just=c('left','bottom')))
WHeatmap(matrix(rnorm(2000),nrow=40)) +
... | /data/genthat_extracted_code/wheatmap/examples/TopRightOf.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 617 | r | library(wheatmap)
### Name: TopRightOf
### Title: Top right of
### Aliases: TopRightOf
### ** Examples
WHeatmap(matrix(rnorm(2000),nrow=40)) +
WHeatmap(matrix(c(rnorm(100)+1,rnorm(100)), nrow=10),
cmp=CMPar(brewer.name = 'RdGy'), TopRightOf(just=c('left','bottom')))
WHeatmap(matrix(rnorm(2000),nrow=40)) +
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.