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 |
|---|---|---|---|---|---|---|---|---|---|
## ---------------------------------------------------------------------------------------------------------------------
notas <- data.frame(nombre = c("Jesus", "Carla", "Rodrigo", "Javier"),
nota = c(12, 15, 13, NA))
notas
## -----------------------------------------------------------------------... | /files/GuiaRImputacion_20210904.R | permissive | evelyn-gutierrez/TratamientoPerdidos | R | false | false | 5,758 | r | ## ---------------------------------------------------------------------------------------------------------------------
notas <- data.frame(nombre = c("Jesus", "Carla", "Rodrigo", "Javier"),
nota = c(12, 15, 13, NA))
notas
## -----------------------------------------------------------------------... |
\name{evalMissingData}
\alias{evalMissingData}
\title{Evaluate Missing Data}
\description{Evaluate missing data in a SoilProfileCollection object}
\usage{
evalMissingData(x, vars, name = "hzname", p = "Cr|R|Cd")
}
\arguments{
\item{x}{a \code{SoilProfileCollection} object}
\item{vars}{a chatacter vecto... | /pkg/aqp/man/evalMissingData.Rd | no_license | dtbinh/aqp | R | false | false | 1,499 | rd | \name{evalMissingData}
\alias{evalMissingData}
\title{Evaluate Missing Data}
\description{Evaluate missing data in a SoilProfileCollection object}
\usage{
evalMissingData(x, vars, name = "hzname", p = "Cr|R|Cd")
}
\arguments{
\item{x}{a \code{SoilProfileCollection} object}
\item{vars}{a chatacter vecto... |
#' Sequencing Data Heatmap Creation
#'
#' This function allows you to create heatmaps from a sequencing output spreadsheet.
#' @param input.file The path to the sequencing output spreadsheet (.xlsx), i.e. sequencing="path/to/output.xlsx"
#' @param sheet The sheet number in the spreadsheet with data, i.e sheet=1
#' @par... | /R/sequencing_heatmap.R | permissive | MUSC-CGM/sequencingHeatmap | R | false | false | 5,168 | r | #' Sequencing Data Heatmap Creation
#'
#' This function allows you to create heatmaps from a sequencing output spreadsheet.
#' @param input.file The path to the sequencing output spreadsheet (.xlsx), i.e. sequencing="path/to/output.xlsx"
#' @param sheet The sheet number in the spreadsheet with data, i.e sheet=1
#' @par... |
#Declaring the libraries
library(rvest)
library(stringr)
library(ggmap)
library(leaflet)
library(TSP)
#Part 1 - Pulling the Data
url_stable <- 'http://www.natgeotraveller.in/magazine/section/short-breaks/'
pages <- c('','page2','page3','page4','page5','page6')
xpath_place_stable_1 <- '//*[@id="body"]/div/div'
xpath... | /code/nat_geo_short_trips.R | no_license | apoorv74/optimal-route | R | false | false | 5,075 | r |
#Declaring the libraries
library(rvest)
library(stringr)
library(ggmap)
library(leaflet)
library(TSP)
#Part 1 - Pulling the Data
url_stable <- 'http://www.natgeotraveller.in/magazine/section/short-breaks/'
pages <- c('','page2','page3','page4','page5','page6')
xpath_place_stable_1 <- '//*[@id="body"]/div/div'
xpath... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sagemaker_operations.R
\name{sagemaker_create_compilation_job}
\alias{sagemaker_create_compilation_job}
\title{Starts a model compilation job}
\usage{
sagemaker_create_compilation_job(CompilationJobName, RoleArn,
InputConfig, OutputConfig, ... | /cran/paws.machine.learning/man/sagemaker_create_compilation_job.Rd | permissive | johnnytommy/paws | R | false | true | 3,647 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sagemaker_operations.R
\name{sagemaker_create_compilation_job}
\alias{sagemaker_create_compilation_job}
\title{Starts a model compilation job}
\usage{
sagemaker_create_compilation_job(CompilationJobName, RoleArn,
InputConfig, OutputConfig, ... |
library(issb)
h = function(x, pars) {
hazs = numeric(length(pars))
hazs[1] = pars[1]*x[1]*(x[1]-1)*x[2]/2
hazs[2] = pars[2]*x[1]*(x[1]-1)*(x[1]-2)/6
hazs[3] = pars[3]*x[3]
hazs[4] = pars[4]*x[1]
return(hazs)
}
#The stoichiometric matrix
## 3 species four reactions
## species 2 & 3 constant ------
smat = ma... | /models/schlogl.R | no_license | csgillespie/diagnostics | R | false | false | 995 | r | library(issb)
h = function(x, pars) {
hazs = numeric(length(pars))
hazs[1] = pars[1]*x[1]*(x[1]-1)*x[2]/2
hazs[2] = pars[2]*x[1]*(x[1]-1)*(x[1]-2)/6
hazs[3] = pars[3]*x[3]
hazs[4] = pars[4]*x[1]
return(hazs)
}
#The stoichiometric matrix
## 3 species four reactions
## species 2 & 3 constant ------
smat = ma... |
run_analysis <- function (path) {
##Create path to files
path_x_test <- paste (path, "/test/X_test.txt", sep="")
path_y_test <- paste (path, "/test/y_test.txt", sep="")
path_subject_test <- paste (path, "/test/subject_test.txt", sep="")
path_x_train <- paste (path, "/train/X_train.txt", sep="")
path_y_train <- paste (... | /run_analysis.R | no_license | DenisCA/cleandata | R | false | false | 1,997 | r | run_analysis <- function (path) {
##Create path to files
path_x_test <- paste (path, "/test/X_test.txt", sep="")
path_y_test <- paste (path, "/test/y_test.txt", sep="")
path_subject_test <- paste (path, "/test/subject_test.txt", sep="")
path_x_train <- paste (path, "/train/X_train.txt", sep="")
path_y_train <- paste (... |
#' library(raster)
#' X <- matrix(c(3,6,5,7,2,2,4,NaN,0), nrow=3, byrow=TRUE) ## input
#' fftvario(X)
#' r <- raster(system.file('external/test.grd', package='raster'))
#' fftvario(as.matrix(r))
#' @export
fftvario <- function(X) {
D <- 2*dim(X)-1 - dim(X)
X <- do.call(rbind, c(list(X), rep(NA, D[1])))
... | /R/variogram.R | no_license | cmarmstrong/fftvar | R | false | false | 1,048 | r | #' library(raster)
#' X <- matrix(c(3,6,5,7,2,2,4,NaN,0), nrow=3, byrow=TRUE) ## input
#' fftvario(X)
#' r <- raster(system.file('external/test.grd', package='raster'))
#' fftvario(as.matrix(r))
#' @export
fftvario <- function(X) {
D <- 2*dim(X)-1 - dim(X)
X <- do.call(rbind, c(list(X), rep(NA, D[1])))
... |
#type4 - n=3
library (lpSolve)
# w1, w2, w3, f1+ f2+ f3+, f1-, f2-, f3-, e(iv)1+,e(iv)2+,e(iv)3+, e(iv)1-,e(iv)2-,e(iv)3- ,c1,c2,c3, c4,c5,c6
# A= 6000, B= 3000, C= 1000
# 5700<= A <= 6300
# 2850<= B <= 3150
# 950<= C <= 1050
f.obj <- c (0,0,0, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 1,1,1, 1,1,1)
f.con <- matri... | /my_thsis/type4-631full.R | no_license | yfde11/my_thsis | R | false | false | 1,164 | r | #type4 - n=3
library (lpSolve)
# w1, w2, w3, f1+ f2+ f3+, f1-, f2-, f3-, e(iv)1+,e(iv)2+,e(iv)3+, e(iv)1-,e(iv)2-,e(iv)3- ,c1,c2,c3, c4,c5,c6
# A= 6000, B= 3000, C= 1000
# 5700<= A <= 6300
# 2850<= B <= 3150
# 950<= C <= 1050
f.obj <- c (0,0,0, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 1,1,1, 1,1,1)
f.con <- matri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gitCRAN.R
\docType{package}
\name{gitCRAN}
\alias{gitCRAN}
\title{gitCRAN: A package for keeping your internal/custom CRAN repo in Github}
\section{Concept}{
Creating and maintaining a custom/internal CRAN repository requires setting
up a fi... | /gitCRAN/man/gitCRAN.Rd | permissive | USEPA/cflinuxfs3-CRAN | R | false | true | 666 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gitCRAN.R
\docType{package}
\name{gitCRAN}
\alias{gitCRAN}
\title{gitCRAN: A package for keeping your internal/custom CRAN repo in Github}
\section{Concept}{
Creating and maintaining a custom/internal CRAN repository requires setting
up a fi... |
setwd("~/Documents/Coursera/Exploratory Data")
raw_data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
subset <- raw_data[(raw_data$Date == "1/2/2007"| raw_data$Date == "2/2/2007"),]
## add time and date
datetime <- as.POSIXct(paste(subset$Date, subset$Time), format="%d/%m/%Y %H:%M:%S")
##... | /Plot R Scripts/plot2.R | no_license | kennethrebella/ExData_Plotting1 | R | false | false | 957 | r | setwd("~/Documents/Coursera/Exploratory Data")
raw_data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
subset <- raw_data[(raw_data$Date == "1/2/2007"| raw_data$Date == "2/2/2007"),]
## add time and date
datetime <- as.POSIXct(paste(subset$Date, subset$Time), format="%d/%m/%Y %H:%M:%S")
##... |
context("week_boundaries")
# test data ---------------------------------------------------------------
unbounded_dates <- as.Date(
c("2018-09-17", "2018-09-21", "2018-09-24"),
format="%Y-%m-%d"
)
expected_unbounded <- tibble::frame_data(
~week.number, ~week.id, ~total.games, ~init.date, ~last.da... | /tests/testthat/test-week-boundaries.R | no_license | dcaribou/pScores | R | false | false | 1,187 | r | context("week_boundaries")
# test data ---------------------------------------------------------------
unbounded_dates <- as.Date(
c("2018-09-17", "2018-09-21", "2018-09-24"),
format="%Y-%m-%d"
)
expected_unbounded <- tibble::frame_data(
~week.number, ~week.id, ~total.games, ~init.date, ~last.da... |
pti.gamma <-
function(p=.5,alpha=2,lambda=.5)
{
t=qgamma((1-p)/2,shape=alpha,rate=lambda)
T=qgamma((1+p)/2,shape=alpha,rate=lambda)
tT=c(t,T)
M=matrix(ncol=2,nrow=2)
x=seq(0,to=qgamma(.999,shape=alpha,rate=lambda),length=200)
par(mfrow=c(1,1),mar=c(4,4,1,1))
plot(x,dgamma(x,shape=alpha,rate=lambda),lwd=3,type=... | /RcodeData/pti.gamma.r | no_license | tmuntianu/advancedstatistics | R | false | false | 1,318 | r | pti.gamma <-
function(p=.5,alpha=2,lambda=.5)
{
t=qgamma((1-p)/2,shape=alpha,rate=lambda)
T=qgamma((1+p)/2,shape=alpha,rate=lambda)
tT=c(t,T)
M=matrix(ncol=2,nrow=2)
x=seq(0,to=qgamma(.999,shape=alpha,rate=lambda),length=200)
par(mfrow=c(1,1),mar=c(4,4,1,1))
plot(x,dgamma(x,shape=alpha,rate=lambda),lwd=3,type=... |
## we are trying to create a function that can be used to cache the inverse of the matrix so that
## we dont need to calculate it again
## Returns a list of functions upon execution which can be used to set the matrix ,print it ,set the inverse ,print the inverse.
makeCacheMatrix <- function(m = matrix()) {... | /cachematrix.R | no_license | pranaychatrath/ProgrammingAssignment2 | R | false | false | 1,119 | r | ## we are trying to create a function that can be used to cache the inverse of the matrix so that
## we dont need to calculate it again
## Returns a list of functions upon execution which can be used to set the matrix ,print it ,set the inverse ,print the inverse.
makeCacheMatrix <- function(m = matrix()) {... |
#0>>Load libraries -----------------------------------------------------------------------------
#netcdy libraries
library(ncdf4)
#spatial libraries
library(sp)
library(geosphere)
library(rgdal)
library(raster)
library(RStoolbox)
#plotting libraries
library(ggplot2)
#spatial plotting libraries
library(sf)
libra... | /V5-CCM-MPI-GERICS.R | no_license | joaquin-ferrer/V5-FSLAMR-CCM | R | false | false | 8,160 | r | #0>>Load libraries -----------------------------------------------------------------------------
#netcdy libraries
library(ncdf4)
#spatial libraries
library(sp)
library(geosphere)
library(rgdal)
library(raster)
library(RStoolbox)
#plotting libraries
library(ggplot2)
#spatial plotting libraries
library(sf)
libra... |
#TeamEpidermis - Figure Generation Scripts
#load libraries
library(Momocs)
#library(plyr)
library(ggplot2)
#read in RV data/organize in table
dataDir = "G:/My\ Drive/TeamEpidermis/DataAnalysis/Rozi_CellsAll"
list.files(path = dataDir, full = T, pattern = "txt") %>% import_txt() %>% Out()-> l
measures <- matri... | /TraditionalAnalysesAndFigures.R | no_license | BartlettLab/LeafEpidermis | R | false | false | 32,818 | r | #TeamEpidermis - Figure Generation Scripts
#load libraries
library(Momocs)
#library(plyr)
library(ggplot2)
#read in RV data/organize in table
dataDir = "G:/My\ Drive/TeamEpidermis/DataAnalysis/Rozi_CellsAll"
list.files(path = dataDir, full = T, pattern = "txt") %>% import_txt() %>% Out()-> l
measures <- matri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/decluster.R
\name{find_clusters}
\alias{find_clusters}
\title{Declustering}
\usage{
find_clusters(data, thresh, k = 1)
}
\arguments{
\item{data}{A numeric vector of raw data. No missing values are allowed.}
\item{thresh}{A numeric scalar. ... | /man/find_clusters.Rd | no_license | ayotoasset/exdex | R | false | true | 508 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/decluster.R
\name{find_clusters}
\alias{find_clusters}
\title{Declustering}
\usage{
find_clusters(data, thresh, k = 1)
}
\arguments{
\item{data}{A numeric vector of raw data. No missing values are allowed.}
\item{thresh}{A numeric scalar. ... |
library(rstan)
library(data.table)
library(lubridate)
library(gdata)
library(dplyr)
library(tidyr)
library(EnvStats)
library(scales)
library(stringr)
library(abind)
process_covariates <- function(countries, interventions, d, ifr.by.country,N2){
serial.interval = readRDS("data/serial-interval.rds")
# Pads serial in... | /process-covariates.r | permissive | dare-centre/imperial-covid19-model | R | false | false | 5,092 | r | library(rstan)
library(data.table)
library(lubridate)
library(gdata)
library(dplyr)
library(tidyr)
library(EnvStats)
library(scales)
library(stringr)
library(abind)
process_covariates <- function(countries, interventions, d, ifr.by.country,N2){
serial.interval = readRDS("data/serial-interval.rds")
# Pads serial in... |
library(comtradr)
### Name: ct_get_remaining_hourly_queries
### Title: Comtradr rate limit check
### Aliases: ct_get_remaining_hourly_queries
### ** Examples
ct_get_remaining_hourly_queries()
| /data/genthat_extracted_code/comtradr/examples/ct_get_remaining_hourly_queries.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 199 | r | library(comtradr)
### Name: ct_get_remaining_hourly_queries
### Title: Comtradr rate limit check
### Aliases: ct_get_remaining_hourly_queries
### ** Examples
ct_get_remaining_hourly_queries()
|
# E-Learning Stats for Advance Illinois
library("tidyverse")
library("ipumsr")
library("sf")
fp = "/Users/mercedeswentworth-nice/Documents/Employment/Advance Illinois/ELearningBrief/"
ddi <- read_ipums_ddi(paste0(fp, "data/usa_00003.xml"))
ogdf <- read_ipums_micro(ddi)
# using PUMA since county level data is not a... | /ELearningBrief/ELearning Stats.R | no_license | mwnbenz/Advance-Illinois | R | false | false | 3,243 | r | # E-Learning Stats for Advance Illinois
library("tidyverse")
library("ipumsr")
library("sf")
fp = "/Users/mercedeswentworth-nice/Documents/Employment/Advance Illinois/ELearningBrief/"
ddi <- read_ipums_ddi(paste0(fp, "data/usa_00003.xml"))
ogdf <- read_ipums_micro(ddi)
# using PUMA since county level data is not a... |
context("gbif_issues")
test_that("gbif_issues", {
aa <- gbif_issues()
expect_is(aa, "data.frame")
expect_named(aa, c('code', 'issue', 'description', "type"))
expect_is(aa$code, 'character')
expect_is(aa$issue, 'character')
expect_is(aa$description, 'character')
expect_is(aa$type, 'character')
})
test_t... | /tests/testthat/test-gbif_issues.R | permissive | damianooldoni/rgbif | R | false | false | 398 | r | context("gbif_issues")
test_that("gbif_issues", {
aa <- gbif_issues()
expect_is(aa, "data.frame")
expect_named(aa, c('code', 'issue', 'description', "type"))
expect_is(aa$code, 'character')
expect_is(aa$issue, 'character')
expect_is(aa$description, 'character')
expect_is(aa$type, 'character')
})
test_t... |
library(forecast)
library(tseries)
ar_1 <- Arima(consumption, order = c(1,0,1))
ma_1 <- Arima(consumption, order = c(0,0,1))
ar_1_toma <- ARMAtoMA(ar = ar_1$coef[2], lag.max = 50)
plot(ar_1_toma, type = 'l')
ma_1_toma <- ARMAtoMA(ma = ma_1$coef[1], lag.max = 50)
plot(ma_1_toma, type = 'l')
#Die Koeffizienten der M... | /Zeitreihenanalyse/SS18HT/SS18.R | no_license | Npaffen/Advanced_R_Project | R | false | false | 4,195 | r | library(forecast)
library(tseries)
ar_1 <- Arima(consumption, order = c(1,0,1))
ma_1 <- Arima(consumption, order = c(0,0,1))
ar_1_toma <- ARMAtoMA(ar = ar_1$coef[2], lag.max = 50)
plot(ar_1_toma, type = 'l')
ma_1_toma <- ARMAtoMA(ma = ma_1$coef[1], lag.max = 50)
plot(ma_1_toma, type = 'l')
#Die Koeffizienten der M... |
gsac<-function(df_sac, pcol=iiasa6, w=400, h=500, legend="top", pmax=NULL, prop=FALSE){
#df_sac<-df_sac1;pyear=2010; pcol=iiasa6; w=400;h=500
df1 <- df_sac %>%
select(year, edu, pop) %>%
dcast(year ~ edu, value.var="pop") %>%
select(-2)
#df1 <- df0 %>% filter(eduno!=0) %>% select(year, edu, pop) %>%... | /server/sac_fn.R | no_license | vbeakovic/wcde | R | false | false | 1,475 | r | gsac<-function(df_sac, pcol=iiasa6, w=400, h=500, legend="top", pmax=NULL, prop=FALSE){
#df_sac<-df_sac1;pyear=2010; pcol=iiasa6; w=400;h=500
df1 <- df_sac %>%
select(year, edu, pop) %>%
dcast(year ~ edu, value.var="pop") %>%
select(-2)
#df1 <- df0 %>% filter(eduno!=0) %>% select(year, edu, pop) %>%... |
tabPanel('Chi Square Association', value = 'tab_chict',
fluidPage(
fluidRow(
column(6, align = 'left',
h4('Chi Square Test of Association'),
p('Examine if there is a relationship between two categorical variables.')
),
column(6, align = 'right',
actionButton(input... | /inferr/inst/application/ui/ui_chict.R | permissive | akhikolla/TestedPackages-NoIssues | R | false | false | 1,876 | r | tabPanel('Chi Square Association', value = 'tab_chict',
fluidPage(
fluidRow(
column(6, align = 'left',
h4('Chi Square Test of Association'),
p('Examine if there is a relationship between two categorical variables.')
),
column(6, align = 'right',
actionButton(input... |
library(tidyr)
library(dplyr)
library(plyr)
setwd("~/Desktop/PCR Results")
# Prep the data by removing unnecessary columns, identifying triplicates with a standard deviation of more than 0.2, removing the furthest replicate from the median, and recalculating the triplicate mean
gene.prep <- function(filename){
file... | /RScripts/PCR Results.R | no_license | hgibling/PUFAWork | R | false | false | 8,087 | r | library(tidyr)
library(dplyr)
library(plyr)
setwd("~/Desktop/PCR Results")
# Prep the data by removing unnecessary columns, identifying triplicates with a standard deviation of more than 0.2, removing the furthest replicate from the median, and recalculating the triplicate mean
gene.prep <- function(filename){
file... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /mepstrends/hc_use/json/code/r/totEXP__sop__race__.r | permissive | HHS-AHRQ/MEPS-summary-tables | R | false | false | 2,726 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
#! /usr/bin/env Rscript
library(Rhipe)
rhinit()
map <- expression({
# For each input record, parse out required fields and output new record:
extractTop20 = function(line) {
fields <- unlist(strsplit(line, "\\t"))
# Skip header lines and bad records:
if (length(fields) == 21) {
#origin <- fields[... | /R-Codes/citiwise-reports-hadoop/Dallas/Dallas-Origin/DallasOrigin.R | no_license | sumansaurabh/thesis-ug-airline-data | R | false | false | 2,082 | r | #! /usr/bin/env Rscript
library(Rhipe)
rhinit()
map <- expression({
# For each input record, parse out required fields and output new record:
extractTop20 = function(line) {
fields <- unlist(strsplit(line, "\\t"))
# Skip header lines and bad records:
if (length(fields) == 21) {
#origin <- fields[... |
samples <- data.frame(value = 1:10, type = "car")
test_that("calc_CrI works as expected with default arguments", {
expect_known_output(calc_CrI(samples),
file = testthat::test_path("test-data/calc_CrI_default.rds")
)
})
test_that("calc_CrI works as expected when grouping", {
expect_known_output(calc_CrI(sam... | /tests/testthat/test-calc_CrI.R | permissive | albertyumol/EpiNow2 | R | false | false | 423 | r | samples <- data.frame(value = 1:10, type = "car")
test_that("calc_CrI works as expected with default arguments", {
expect_known_output(calc_CrI(samples),
file = testthat::test_path("test-data/calc_CrI_default.rds")
)
})
test_that("calc_CrI works as expected when grouping", {
expect_known_output(calc_CrI(sam... |
<?xml version="1.0" encoding="utf-8"?>
<serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TheNuggetList.WebUI.Azure" generation="1" functional="0" release="0" Id="0c703714-c3a8-4f40-945e-5792b6545857" dslVersion="1.2.0.0" xmlns="http://schemas.micros... | /TheNuggetList.WebUI.Azure/csx/Release/ServiceDefinition.build.rd | no_license | Fodsuk/TheNuggetList | R | false | false | 12,678 | rd | <?xml version="1.0" encoding="utf-8"?>
<serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TheNuggetList.WebUI.Azure" generation="1" functional="0" release="0" Id="0c703714-c3a8-4f40-945e-5792b6545857" dslVersion="1.2.0.0" xmlns="http://schemas.micros... |
library(NetworkToolbox)
### Name: resp.rep
### Title: Repeated Responses Check
### Aliases: resp.rep
### ** Examples
#Re-reverse responses
rev.vec <- c(TRUE,FALSE,TRUE,FALSE,TRUE,TRUE,TRUE,FALSE,TRUE,FALSE,
TRUE,FALSE,FALSE,TRUE,FALSE,TRUE,FALSE,TRUE,TRUE,FALSE,TRUE,FALSE,TRUE,
FALSE,FALSE,TRUE,FALSE,TRUE,FALSE,TRU... | /data/genthat_extracted_code/NetworkToolbox/examples/resp.rep.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,129 | r | library(NetworkToolbox)
### Name: resp.rep
### Title: Repeated Responses Check
### Aliases: resp.rep
### ** Examples
#Re-reverse responses
rev.vec <- c(TRUE,FALSE,TRUE,FALSE,TRUE,TRUE,TRUE,FALSE,TRUE,FALSE,
TRUE,FALSE,FALSE,TRUE,FALSE,TRUE,FALSE,TRUE,TRUE,FALSE,TRUE,FALSE,TRUE,
FALSE,FALSE,TRUE,FALSE,TRUE,FALSE,TRU... |
# x axis #
d <- seq(0.00001, 0.2, 0.0001)
##########
set.seed(3)
y <- rpois(10,5)
y.lgth <- length(y)
lambda <- sum(y)/y.lgth
Z <- abs(qt((1 - 0.95) / 2, y.lgth - 1))
N <- c(7000, 5000, 3000, 2000, 100, 300)
# y axis #
n <- matrix(NA, nrow = length(N), ncol = length(d))
##########
for (i in 1:length(N)) {
for(j in... | /Tarea6/source/ejercicio10-mari.R | no_license | CarlosRDGZ/Probabilidad | R | false | false | 962 | r | # x axis #
d <- seq(0.00001, 0.2, 0.0001)
##########
set.seed(3)
y <- rpois(10,5)
y.lgth <- length(y)
lambda <- sum(y)/y.lgth
Z <- abs(qt((1 - 0.95) / 2, y.lgth - 1))
N <- c(7000, 5000, 3000, 2000, 100, 300)
# y axis #
n <- matrix(NA, nrow = length(N), ncol = length(d))
##########
for (i in 1:length(N)) {
for(j in... |
#filePath
setwd('D:/Johns Hopkins University/Getting and cleaning Data/project')
#create data.table data
traindata <- read.table('UCI HAR Dataset/train/X_train.txt')
testdata <- read.table('UCI HAR Dataset/test/X_test.txt')
#read activity variables
trainActivityData <- read.table('UCI HAR Dataset/train/y_train.txt')... | /run_analysis.R | no_license | JoulesScience/Assignment-Getting-and-Cleaning-Data-Course-Project | R | false | false | 2,855 | r | #filePath
setwd('D:/Johns Hopkins University/Getting and cleaning Data/project')
#create data.table data
traindata <- read.table('UCI HAR Dataset/train/X_train.txt')
testdata <- read.table('UCI HAR Dataset/test/X_test.txt')
#read activity variables
trainActivityData <- read.table('UCI HAR Dataset/train/y_train.txt')... |
mvar_psych <- function (data, type, level, lambdaSeq, lambdaSel, lambdaFolds,
lambdaGam, alphaSeq, alphaSel, alphaFolds, alphaGam, lags,
consec, beepvar, dayvar, weights, threshold, method, binarySign,
scale, verbatim, pbar, warnings, saveModels, saveData, overparameterize,
... | /R/mvar_psych.R | no_license | SpyBal/psychNET | R | false | false | 19,216 | r | mvar_psych <- function (data, type, level, lambdaSeq, lambdaSel, lambdaFolds,
lambdaGam, alphaSeq, alphaSel, alphaFolds, alphaGam, lags,
consec, beepvar, dayvar, weights, threshold, method, binarySign,
scale, verbatim, pbar, warnings, saveModels, saveData, overparameterize,
... |
# AUTO GENERATED FILE - DO NOT EDIT
#' @export
dashbioIdeogram <- function(id=NULL, accessToken=NULL, ancestors=NULL, annotationHeight=NULL, annotationTracks=NULL, annotations=NULL, annotationsColor=NULL, annotationsData=NULL, annotationsLayout=NULL, annotationsPath=NULL, assembly=NULL, barWidth=NULL, brush=NULL, brus... | /R/dashbioIdeogram.R | permissive | plotly/dash-bio | R | false | false | 3,239 | r | # AUTO GENERATED FILE - DO NOT EDIT
#' @export
dashbioIdeogram <- function(id=NULL, accessToken=NULL, ancestors=NULL, annotationHeight=NULL, annotationTracks=NULL, annotations=NULL, annotationsColor=NULL, annotationsData=NULL, annotationsLayout=NULL, annotationsPath=NULL, assembly=NULL, barWidth=NULL, brush=NULL, brus... |
source( "masternegloglikeeps1.R" )
source("eudicottree.R" )
library( "expm" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE)
last.state=50
uniform.samples<-read.csv("sample260.csv",header=FALSE)
a<- as.numeric(t(uniform.... | /Full model optimizations/explorelikeuni260.R | no_license | roszenil/Bichromdryad | R | false | false | 745 | r | source( "masternegloglikeeps1.R" )
source("eudicottree.R" )
library( "expm" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE)
last.state=50
uniform.samples<-read.csv("sample260.csv",header=FALSE)
a<- as.numeric(t(uniform.... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11010
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11010
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/incrementer-encoder/incrementer-enc07-non... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Miller-Marin/incrementer-encoder/incrementer-enc07-nonuniform-depth-5/incrementer-enc07-nonuniform-depth-5.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 705 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11010
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11010
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/incrementer-encoder/incrementer-enc07-non... |
\name{getU}
\alias{getU}
\title{Retrieve matrix U from CURobj-class}
\description{Retrieve matrix U from \link{CURobj-class}}
\usage{
getU(object)
}
\arguments{
\item{object}{ object of class \link{CURobj-class} }
}
\value{ a matrix with compontent U of CUR}
\references{
Mahoney M. W. and Drineas P. (2009) CUR matrix... | /man/getU.rd | no_license | cran/rCUR | R | false | false | 628 | rd | \name{getU}
\alias{getU}
\title{Retrieve matrix U from CURobj-class}
\description{Retrieve matrix U from \link{CURobj-class}}
\usage{
getU(object)
}
\arguments{
\item{object}{ object of class \link{CURobj-class} }
}
\value{ a matrix with compontent U of CUR}
\references{
Mahoney M. W. and Drineas P. (2009) CUR matrix... |
get_race_by_age_and_sex <- function(locality) {
white_labels = combine_age_and_race("White Alone")
black_labels = combine_age_and_race("Black or African American Alone")
american_indian_labels = combine_age_and_race("American Indian and Alaskan Native Alone")
asian_labels = combine_age_and_race("Asian Alone")
... | /race_age_and_sex.R | no_license | IOKeeffe/ACSAutomation | R | false | false | 2,873 | r | get_race_by_age_and_sex <- function(locality) {
white_labels = combine_age_and_race("White Alone")
black_labels = combine_age_and_race("Black or African American Alone")
american_indian_labels = combine_age_and_race("American Indian and Alaskan Native Alone")
asian_labels = combine_age_and_race("Asian Alone")
... |
\name{GetElectedCandidates}
\alias{GetElectedCandidates}
\title{GetElectedCandidates}
\usage{
GetElectedCandidates(year, election, election.district,
verbose = TRUE)
}
\arguments{
\item{year}{election year}
\item{election}{election type (municipal / parliament /
president / ...)}
\item{election.district... | /man/GetElectedCandidates.Rd | permissive | rOpenGov/datavaalit | R | false | false | 651 | rd | \name{GetElectedCandidates}
\alias{GetElectedCandidates}
\title{GetElectedCandidates}
\usage{
GetElectedCandidates(year, election, election.district,
verbose = TRUE)
}
\arguments{
\item{year}{election year}
\item{election}{election type (municipal / parliament /
president / ...)}
\item{election.district... |
### Empirical Methods in Finance
library(fGarch)
library(tidyverse)
library(readxl)
library(xts)
# Impoting and organizing the data
ddf = read.csv("F-F_Research_Data_5_Factors_2x3_daily.CSV", skip = 3 ,stringsAsFactors=FALSE)
mdf = read.csv("F-F_Research_Data_5_Factors_2x3.CSV", skip = 3, stringsAsFactors=FA... | /Week 6/EMF_HW6_YO.R | no_license | redxia/Emp-Meth-Fin | R | false | false | 4,129 | r | ### Empirical Methods in Finance
library(fGarch)
library(tidyverse)
library(readxl)
library(xts)
# Impoting and organizing the data
ddf = read.csv("F-F_Research_Data_5_Factors_2x3_daily.CSV", skip = 3 ,stringsAsFactors=FALSE)
mdf = read.csv("F-F_Research_Data_5_Factors_2x3.CSV", skip = 3, stringsAsFactors=FA... |
# plot2.R
# Coursera Data Science Specialization - Exploratory Data Analysis - Week 01 - Course Project
# Script to reproduce second plot of the course project
dataset <- read.table("../../household_power_consumption.txt",header=TRUE,sep=";",na.strings = "?")
x <- paste(dataset$Date, dataset$Time)
dataset$T... | /plot2.R | no_license | acuquel/ExData_Plotting1 | R | false | false | 661 | r | # plot2.R
# Coursera Data Science Specialization - Exploratory Data Analysis - Week 01 - Course Project
# Script to reproduce second plot of the course project
dataset <- read.table("../../household_power_consumption.txt",header=TRUE,sep=";",na.strings = "?")
x <- paste(dataset$Date, dataset$Time)
dataset$T... |
#' Calculates difference in minor allele frequency between two populations
#' for use in runGSEA.R
#'
#' @param genoF (char) path to file with SNP genotype data (PLINK format)
#' @param realFAM (char) path to PLINK case/control coded fam file
#' @param phenoPerm (logical) runs GSEA using phenotype permutations
#' (i.e... | /R/~old/gpc/calcMAFdiff.R | permissive | BaderLab/POPPATHR | R | false | false | 3,598 | r | #' Calculates difference in minor allele frequency between two populations
#' for use in runGSEA.R
#'
#' @param genoF (char) path to file with SNP genotype data (PLINK format)
#' @param realFAM (char) path to PLINK case/control coded fam file
#' @param phenoPerm (logical) runs GSEA using phenotype permutations
#' (i.e... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HDMA.R
\name{wrapDSVA}
\alias{wrapDSVA}
\title{wrapDSVA : Mediation EWAS and independent mediation analysis (coufounders estimated via dSVA method)}
\usage{
wrapDSVA(X, Y, M, K, conf.known = NULL, mediation = T, top = 50,
sims = 100)
}
\arg... | /man/wrapDSVA.Rd | no_license | jumentib/hdma | R | false | true | 1,463 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HDMA.R
\name{wrapDSVA}
\alias{wrapDSVA}
\title{wrapDSVA : Mediation EWAS and independent mediation analysis (coufounders estimated via dSVA method)}
\usage{
wrapDSVA(X, Y, M, K, conf.known = NULL, mediation = T, top = 50,
sims = 100)
}
\arg... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | /r/tests/testthat/test-dataset-dplyr.R | permissive | tallamjr/arrow | R | false | false | 8,731 | r | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
## Copyright (C) 2012, 2013 Bitergia
##
## 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; either version 3 of the License, or
## (at your option) any later version.
##
## This program is distri... | /testing/tests/mailinglists.R | no_license | aaparrui/VizGrimoireR | R | false | false | 1,228 | r | ## Copyright (C) 2012, 2013 Bitergia
##
## 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; either version 3 of the License, or
## (at your option) any later version.
##
## This program is distri... |
#practise ximb
#create a=100 row DF with following variables
#gender, spl ,age, experience, grade , placement
head (students1)
str(students1)
(gender = sample(c('M','F'), size=100, replace=T))
(experience = floor(rnorm(100,mean= 4,sd=1)))
(course = sample(c('Marketing','Finance','HR'), size=100, replace=T))
(plac... | /practise on data frame.R | no_license | abhijeetsingh1991/analytics | R | false | false | 2,282 | r | #practise ximb
#create a=100 row DF with following variables
#gender, spl ,age, experience, grade , placement
head (students1)
str(students1)
(gender = sample(c('M','F'), size=100, replace=T))
(experience = floor(rnorm(100,mean= 4,sd=1)))
(course = sample(c('Marketing','Finance','HR'), size=100, replace=T))
(plac... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{umx_cov_diag}
\alias{umx_cov_diag}
\title{umx_cov_diag}
\usage{
umx_cov_diag(df, ordVar = 1, format = c("diag", "Full", "Lower"),
use = "complete")
}
\arguments{
\item{df}{a dataframe of raw data from which to get variances.}
\item{ordVar}{= 1}
\item{return... | /man/umx_cov_diag.Rd | no_license | hmaes/umx | R | false | false | 1,308 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{umx_cov_diag}
\alias{umx_cov_diag}
\title{umx_cov_diag}
\usage{
umx_cov_diag(df, ordVar = 1, format = c("diag", "Full", "Lower"),
use = "complete")
}
\arguments{
\item{df}{a dataframe of raw data from which to get variances.}
\item{ordVar}{= 1}
\item{return... |
library(ape)
testtree <- read.tree("8745_3.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="8745_3_unrooted.txt") | /codeml_files/newick_trees_processed/8745_3/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("8745_3.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="8745_3_unrooted.txt") |
library(medfate)
### Encoding: UTF-8
### Name: supplyfunctions
### Title: Hydraulic supply functions
### Aliases: hydraulics.ECrit hydraulics.EXylem hydraulics.EVanGenuchten
### hydraulics.ECapacitance hydraulics.E2psiXylem
### hydraulics.E2psiVanGenuchten hydraulics.E2psiTwoElements
### hydraulics.E2psiBelowg... | /data/genthat_extracted_code/medfate/examples/supplyfunctions.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,359 | r | library(medfate)
### Encoding: UTF-8
### Name: supplyfunctions
### Title: Hydraulic supply functions
### Aliases: hydraulics.ECrit hydraulics.EXylem hydraulics.EVanGenuchten
### hydraulics.ECapacitance hydraulics.E2psiXylem
### hydraulics.E2psiVanGenuchten hydraulics.E2psiTwoElements
### hydraulics.E2psiBelowg... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pamrI.R
\docType{data}
\name{pamrI}
\alias{pamrI}
\title{Instance of a learnerSchema for pamr models}
\format{An object of class \code{learnerSchema} of length 1.}
\usage{
pamrI
}
\description{
This object is an instance of the learnerSchema ... | /man/pamrI.Rd | no_license | cran/nlcv | R | false | true | 853 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pamrI.R
\docType{data}
\name{pamrI}
\alias{pamrI}
\title{Instance of a learnerSchema for pamr models}
\format{An object of class \code{learnerSchema} of length 1.}
\usage{
pamrI
}
\description{
This object is an instance of the learnerSchema ... |
library(ltsk)
### Name: ltsk
### Title: Ordinary Local Time and Space Kriging
### Aliases: ltsk
### ** Examples
## load the data
data(ex)
data(epa_cl)
## apply log transformation
obs[,'pr_pm25'] = log(obs[,'pr_pm25'])
## run kriging
system.time(out <- ltsk(ex2.query[1:2,],obs,c(0.10,10),zcoord='pr_pm25',verbose=FAL... | /data/genthat_extracted_code/ltsk/examples/ltsk.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 349 | r | library(ltsk)
### Name: ltsk
### Title: Ordinary Local Time and Space Kriging
### Aliases: ltsk
### ** Examples
## load the data
data(ex)
data(epa_cl)
## apply log transformation
obs[,'pr_pm25'] = log(obs[,'pr_pm25'])
## run kriging
system.time(out <- ltsk(ex2.query[1:2,],obs,c(0.10,10),zcoord='pr_pm25',verbose=FAL... |
library(data.table)
#Download data for the project
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "./data/exploreDataProject1.zip")
#unzip files
unzip("./data/exploreDataProject1.zip", files = NULL, exdir="./data")
#Read in data
rawData ... | /Plot2.R | no_license | asujcmwong/ExData_Plotting1 | R | false | false | 848 | r |
library(data.table)
#Download data for the project
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "./data/exploreDataProject1.zip")
#unzip files
unzip("./data/exploreDataProject1.zip", files = NULL, exdir="./data")
#Read in data
rawData ... |
/script_ayudantia.R | no_license | josegalvezs/demo2 | R | false | false | 1,913 | r | ||
# Author: Jeremy Raw
# VisionEval helper tools
# NOTE: these all depend on having set up the VisionEval environment
# See VisionEval.R in the installation runtime (VE-Installer/boilerplate)
# R6 Class documentation example:
# https://github.com/r-lib/R6/issues/3#issuecomment-173855054
# https://github.com/r-lib/proce... | /sources/tools/models.R | permissive | sid-marain/VisionEval | R | false | false | 25,933 | r | # Author: Jeremy Raw
# VisionEval helper tools
# NOTE: these all depend on having set up the VisionEval environment
# See VisionEval.R in the installation runtime (VE-Installer/boilerplate)
# R6 Class documentation example:
# https://github.com/r-lib/R6/issues/3#issuecomment-173855054
# https://github.com/r-lib/proce... |
%% File Name: IRT.residuals.Rd
%% File Version: 0.17
\name{IRT.residuals}
\alias{IRT.residuals}
\alias{IRT.residuals.tam.jml}
\alias{IRT.residuals.tam.mml}
\alias{IRT.residuals.tam.mml.2pl}
\alias{IRT.residuals.tam.mml.mfr}
\alias{residuals.tam.jml}
\alias{residuals.tam.mml}
\alias{residuals.tam.mml.2pl}
\... | /TAM/man/IRT.residuals.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 3,029 | rd | %% File Name: IRT.residuals.Rd
%% File Version: 0.17
\name{IRT.residuals}
\alias{IRT.residuals}
\alias{IRT.residuals.tam.jml}
\alias{IRT.residuals.tam.mml}
\alias{IRT.residuals.tam.mml.2pl}
\alias{IRT.residuals.tam.mml.mfr}
\alias{residuals.tam.jml}
\alias{residuals.tam.mml}
\alias{residuals.tam.mml.2pl}
\... |
#call ggplot2 library
library(ggplot2)
#subset for china and latest year in dataset
china_povhc_raw <- subset(countries_povhc_raw, country == "China" & year == 2016)
#create a bar plot for china's poverty headcounts in 2016 at the three different lines in the dataset, y = headcount, x = year, fill = pov_line
ggpl... | /Scripts/Sample Exercise 1 Script.R | permissive | Global-Development-and-Politics-of-Data/poverty | R | false | false | 703 | r | #call ggplot2 library
library(ggplot2)
#subset for china and latest year in dataset
china_povhc_raw <- subset(countries_povhc_raw, country == "China" & year == 2016)
#create a bar plot for china's poverty headcounts in 2016 at the three different lines in the dataset, y = headcount, x = year, fill = pov_line
ggpl... |
# Read the Train and Test datasets
x_train <- read.table("UCI HAR Dataset/train/X_train.txt")
y_train <- read.table("UCI HAR Dataset/train/y_train.txt")
subject_train <- read.table("UCI HAR Dataset/train/subject_train.txt")
x_test <- read.table("UCI HAR Dataset/test/X_test.txt")
y_test <- read.table("UCI HAR Dataset/te... | /run_analysis.R | no_license | GrayWizard/GettingCleaningDataProject | R | false | false | 2,297 | r | # Read the Train and Test datasets
x_train <- read.table("UCI HAR Dataset/train/X_train.txt")
y_train <- read.table("UCI HAR Dataset/train/y_train.txt")
subject_train <- read.table("UCI HAR Dataset/train/subject_train.txt")
x_test <- read.table("UCI HAR Dataset/test/X_test.txt")
y_test <- read.table("UCI HAR Dataset/te... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/NIPT_dat.R
\docType{data}
\name{F1.TypeB}
\alias{F1.TypeB}
\title{Counts data for Type B SNPs}
\format{A data.frame with names of SNPs and counts on HapI and HapII}
\usage{
data(F1.TypeB)
}
\description{
Counts data for Type B SNPs in... | /man/F1.TypeB.Rd | no_license | ccshao/maIHB | R | false | false | 464 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/NIPT_dat.R
\docType{data}
\name{F1.TypeB}
\alias{F1.TypeB}
\title{Counts data for Type B SNPs}
\format{A data.frame with names of SNPs and counts on HapI and HapII}
\usage{
data(F1.TypeB)
}
\description{
Counts data for Type B SNPs in... |
#Chapter 7 q1, 5, 9, 17, 27, 29, 31, 35
ch7q1 <- function() {
mean = 8
var = 5/20
print("Mean")
print(mean)
print("Variance")
print(var)
}
ch7q27 <- function() {
x = c(319, 338, 337, 339, 328, 325, 340, 331, 341, 336, 330, 330, 321, 327, 337, 320, 343, 350, 322, 334, 326, 349, 341, 338, 332, 339, 335, 338, 333, 3... | /sta248_pqset3.r | no_license | rohanbhatia/sta248-work | R | false | false | 839 | r | #Chapter 7 q1, 5, 9, 17, 27, 29, 31, 35
ch7q1 <- function() {
mean = 8
var = 5/20
print("Mean")
print(mean)
print("Variance")
print(var)
}
ch7q27 <- function() {
x = c(319, 338, 337, 339, 328, 325, 340, 331, 341, 336, 330, 330, 321, 327, 337, 320, 343, 350, 322, 334, 326, 349, 341, 338, 332, 339, 335, 338, 333, 3... |
library(tidyverse)
library(extrafont) #Estos dos paquetes son casi de la familia
library(ggalluvial) #Este paquete servira para hacer el diagrama de Sankey
#Esta vez he tenido que hacer la importacion de forma completamente manual.
#Dicho de otro modo: he cogido la tabla B22R de la pagina http://www.cis.es/cis/export... | /30-dias-de-graficos/dia-17.R | no_license | msm-mario/DatosDeMiercoles | R | false | false | 3,905 | r | library(tidyverse)
library(extrafont) #Estos dos paquetes son casi de la familia
library(ggalluvial) #Este paquete servira para hacer el diagrama de Sankey
#Esta vez he tenido que hacer la importacion de forma completamente manual.
#Dicho de otro modo: he cogido la tabla B22R de la pagina http://www.cis.es/cis/export... |
library(dplyr)
library(lubridate)
epc_raw <- read.table("./data/household_power_consumption.txt",
sep = ";",
header = TRUE)
epc_data <- epc_raw %>%
mutate(date_time = dmy_hms(paste(Date, Time))) %>%
mutate(Date = dmy(Date)) %>%
filter(Date == "2007-02-01" | Date == ... | /plot2.R | no_license | MarkNicholls173/ExData_Plotting1 | R | false | false | 632 | r | library(dplyr)
library(lubridate)
epc_raw <- read.table("./data/household_power_consumption.txt",
sep = ";",
header = TRUE)
epc_data <- epc_raw %>%
mutate(date_time = dmy_hms(paste(Date, Time))) %>%
mutate(Date = dmy(Date)) %>%
filter(Date == "2007-02-01" | Date == ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CCA_markers.R
\name{get_signal_in_cluster_mk}
\alias{get_signal_in_cluster_mk}
\title{Extract signals which go from and to the same cluster}
\usage{
get_signal_in_cluster_mk(signals)
}
\arguments{
\item{signals}{}
}
\value{
}
\description{
E... | /man/get_signal_in_cluster_mk.Rd | no_license | AlexanderKononov/cytofBrowser | R | false | true | 375 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CCA_markers.R
\name{get_signal_in_cluster_mk}
\alias{get_signal_in_cluster_mk}
\title{Extract signals which go from and to the same cluster}
\usage{
get_signal_in_cluster_mk(signals)
}
\arguments{
\item{signals}{}
}
\value{
}
\description{
E... |
#################################################################
###
### This script downloads the Breast cancer copy number Data
### from the TCGA database
### It will process the data into a single table.
### Data is saved :
### ../2 DATA/TCGA TCGA CNV/TCGA CNV_BRCA_ASSEMBLER/...
### File to use :
### BRCA.CN.TCG... | /Deprecated seperate Cancer Code/Breast/v1.Code/1.4.Download_CNV_BRCA.WHX.R | no_license | dudious/QCRI-SIDRA-ICR | R | false | false | 2,321 | r | #################################################################
###
### This script downloads the Breast cancer copy number Data
### from the TCGA database
### It will process the data into a single table.
### Data is saved :
### ../2 DATA/TCGA TCGA CNV/TCGA CNV_BRCA_ASSEMBLER/...
### File to use :
### BRCA.CN.TCG... |
# perfect theoretical null make sure SKATO is fine
library(devtools)
#install_github("dsoave/gJLS")
library(gJLS)
#install.packages("car")
library(car)
#install.packages("SKAT")
library(SKAT)
#install_github("lin-lab/iSKAT-GESAT")
library(iSKAT)
#install.packages("quantreg")
library(quantreg)
#install.packages("L1pack... | /Code/theoretical.null.t1e.R | no_license | irenezzzt/mvgS | R | false | false | 6,238 | r | # perfect theoretical null make sure SKATO is fine
library(devtools)
#install_github("dsoave/gJLS")
library(gJLS)
#install.packages("car")
library(car)
#install.packages("SKAT")
library(SKAT)
#install_github("lin-lab/iSKAT-GESAT")
library(iSKAT)
#install.packages("quantreg")
library(quantreg)
#install.packages("L1pack... |
setwd("C:/Users/Martin/Documents/Workaholic/TUD_Verkehr/Geodaten/Berlin/Strukturdaten/Einkaufszentren/")
shopping_malls <- read.table("Einkaufszentren_D.csv", sep = ",", dec = ".",header = TRUE,fileEncoding= "utf8")
shopping_malls <- shopping_malls[,1:5]
colnames(shopping_malls)[5] <- c("Verkaufsflaeche")
shopping_mal... | /Preparation/R/Import_Wikitable.R | no_license | MXTG/carsharing | R | false | false | 788 | r | setwd("C:/Users/Martin/Documents/Workaholic/TUD_Verkehr/Geodaten/Berlin/Strukturdaten/Einkaufszentren/")
shopping_malls <- read.table("Einkaufszentren_D.csv", sep = ",", dec = ".",header = TRUE,fileEncoding= "utf8")
shopping_malls <- shopping_malls[,1:5]
colnames(shopping_malls)[5] <- c("Verkaufsflaeche")
shopping_mal... |
######################################################################
# Build tree
######################################################################
buildTree <- function(b.dframe,
mtry,
split_method,
interaction.depth,
... | /R/buildTree.R | no_license | cran/uplift | R | false | false | 6,344 | r | ######################################################################
# Build tree
######################################################################
buildTree <- function(b.dframe,
mtry,
split_method,
interaction.depth,
... |
# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcppclustemglasso <- function(InputList, l, r) {
.Call('SelvarMix_rcppclustemglasso', PACKAGE = 'SelvarMix', InputList, l, r)
}
rcppDiscriminantAnalysisGlasso <- function(X_, labels_, nbClust, l, r) {
... | /R/RcppExports.R | no_license | masedki/SelvarMix | R | false | false | 1,032 | r | # This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcppclustemglasso <- function(InputList, l, r) {
.Call('SelvarMix_rcppclustemglasso', PACKAGE = 'SelvarMix', InputList, l, r)
}
rcppDiscriminantAnalysisGlasso <- function(X_, labels_, nbClust, l, r) {
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BtcAddresses.R
\name{PubKey2PubHash}
\alias{PubKey2PubHash}
\title{Create public key hash from 512-bit public key}
\usage{
PubKey2PubHash(pubkey, mainnet = TRUE)
}
\arguments{
\item{pubkey}{\code{character}, the public key.}
\item{mainnet}{\... | /man/PubKey2PubHash.Rd | no_license | cran/rbtc | R | false | true | 1,128 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BtcAddresses.R
\name{PubKey2PubHash}
\alias{PubKey2PubHash}
\title{Create public key hash from 512-bit public key}
\usage{
PubKey2PubHash(pubkey, mainnet = TRUE)
}
\arguments{
\item{pubkey}{\code{character}, the public key.}
\item{mainnet}{\... |
testlist <- list(hi = -3.63536157376339e-132, lo = -3.63536157376329e-132, mu = -3.63536157376339e-132, sig = -3.63536157376339e-132)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) | /gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610044538-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 195 | r | testlist <- list(hi = -3.63536157376339e-132, lo = -3.63536157376329e-132, mu = -3.63536157376339e-132, sig = -3.63536157376339e-132)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) |
SparkSpecterCoeffs = function(rawCoeffsFilepath,ExperimentHeader=NULL, lib=NULL,MS1=FALSE)
{ library(data.table)
DIA_RefSpectraCoeffs = read.csv(rawCoeffsFilepath,header=FALSE,stringsAsFactors = FALSE)
names(DIA_RefSpectraCoeffs) = c("Coeff","Scan","RefPeptideSeq", "RefPrecursorCharge","PrecursorMZ","Retentio... | /SpecterQuant.R | no_license | lifeinfo/Specter | R | false | false | 15,968 | r | SparkSpecterCoeffs = function(rawCoeffsFilepath,ExperimentHeader=NULL, lib=NULL,MS1=FALSE)
{ library(data.table)
DIA_RefSpectraCoeffs = read.csv(rawCoeffsFilepath,header=FALSE,stringsAsFactors = FALSE)
names(DIA_RefSpectraCoeffs) = c("Coeff","Scan","RefPeptideSeq", "RefPrecursorCharge","PrecursorMZ","Retentio... |
\name{Block Design}
\alias{BlockD}
\title{Block Design}
\description{
Due to 'Rstudio's' status as open source software, we believe it will be utilized frequently for future data analysis by users whom lack formal training or experience with 'R'. The block design is a linear modeling which accounts fo... | /man/Block_Design.Rd | no_license | cran/NMVANOVA | R | false | false | 2,108 | rd | \name{Block Design}
\alias{BlockD}
\title{Block Design}
\description{
Due to 'Rstudio's' status as open source software, we believe it will be utilized frequently for future data analysis by users whom lack formal training or experience with 'R'. The block design is a linear modeling which accounts fo... |
## backward compat (copied from lme4)
if((Rv <- getRversion()) < "3.2.1") {
lengths <- function (x, use.names = TRUE) vapply(x, length, 1L, USE.NAMES = use.names)
}
rm(Rv)
## generate a list with names equal to values
namedList <- function (...) {
L <- list(...)
snm <- sapply(substitute(list(...)), deparse... | /glmmTMB/R/utils.R | no_license | subasish/glmmTMB | R | false | false | 12,728 | r | ## backward compat (copied from lme4)
if((Rv <- getRversion()) < "3.2.1") {
lengths <- function (x, use.names = TRUE) vapply(x, length, 1L, USE.NAMES = use.names)
}
rm(Rv)
## generate a list with names equal to values
namedList <- function (...) {
L <- list(...)
snm <- sapply(substitute(list(...)), deparse... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.45775623016977e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615827723-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 361 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.45775623016977e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
# install.packages("stringr")
# install.packages("xlsx")
library("stringr")
library("xlsx")
gospodarstwa = read.table(file="./storage/ROLN_3179.csv", header=TRUE, sep=";")
# Sprawdź czy wartości dla wiersza POLSKA są poprawne we wszystkich kolumnach. Odpowiedź zapisz do pliku pol.csv. Podpowiedź: ? colSums.
colNames... | /main.r | no_license | mikoweb/r-exercise | R | false | false | 2,607 | r | # install.packages("stringr")
# install.packages("xlsx")
library("stringr")
library("xlsx")
gospodarstwa = read.table(file="./storage/ROLN_3179.csv", header=TRUE, sep=";")
# Sprawdź czy wartości dla wiersza POLSKA są poprawne we wszystkich kolumnach. Odpowiedź zapisz do pliku pol.csv. Podpowiedź: ? colSums.
colNames... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BHAI-package.R
\docType{package}
\name{BHAI}
\alias{BHAI}
\alias{BHAI-package}
\title{BHAI:}
\description{
The \strong{BHAI} package
}
\section{BHAI functions}{
\code{\link{bhai}}:
}
| /man/BHAI.Rd | no_license | cran/BHAI | R | false | true | 278 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BHAI-package.R
\docType{package}
\name{BHAI}
\alias{BHAI}
\alias{BHAI-package}
\title{BHAI:}
\description{
The \strong{BHAI} package
}
\section{BHAI functions}{
\code{\link{bhai}}:
}
|
rm(list=ls())
setwd("/Users/liaoyantai/Documents/study/545 data mining/HW4 Yantai Liao 50093183")
library(gbm)
library(randomForest)
library(MMST)
data(wdbc)
####
my_data<-wdbc[,-1]
set.seed(12345)
training<-sample(1:nrow(my_data),0.8*nrow(my_data))
wdbc.training<-my_data[training,]
wdbc.test<-my_data[-training,]
y.t... | /Breast Cancer.R | no_license | Yantai/Breast-Cancer | R | false | false | 2,827 | r | rm(list=ls())
setwd("/Users/liaoyantai/Documents/study/545 data mining/HW4 Yantai Liao 50093183")
library(gbm)
library(randomForest)
library(MMST)
data(wdbc)
####
my_data<-wdbc[,-1]
set.seed(12345)
training<-sample(1:nrow(my_data),0.8*nrow(my_data))
wdbc.training<-my_data[training,]
wdbc.test<-my_data[-training,]
y.t... |
library(tdthap)
### Name: set.similarity
### Title: Set similarity function for Geary-Moran type TDT tests
### Aliases: set.similarity
### Keywords: htest
### ** Examples
## Not run:
##D # To do a Geary_Moran test on a 10 marker haplotype
##D gaps <- c(0, 50, 60, 80, 20, 30, 50, 40, 50, 100, 0)
##D set.similarit... | /data/genthat_extracted_code/tdthap/examples/set.similarity.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 415 | r | library(tdthap)
### Name: set.similarity
### Title: Set similarity function for Geary-Moran type TDT tests
### Aliases: set.similarity
### Keywords: htest
### ** Examples
## Not run:
##D # To do a Geary_Moran test on a 10 marker haplotype
##D gaps <- c(0, 50, 60, 80, 20, 30, 50, 40, 50, 100, 0)
##D set.similarit... |
#=============================================================================#
# Name : get_mean_clim_ras
# Author : Jorge Flores
# Date :
# Version:
# Aim :
# URL :
#=============================================================================#
library(raster)
library(maps)
library(mapdata)
library(field... | /get_mean_clim_ras.R | no_license | NilsTeilher/chl_sat | R | false | false | 2,769 | r | #=============================================================================#
# Name : get_mean_clim_ras
# Author : Jorge Flores
# Date :
# Version:
# Aim :
# URL :
#=============================================================================#
library(raster)
library(maps)
library(mapdata)
library(field... |
rm(list = ls())
library(lme4)
library(boot)
library(foreign)
library(ggplot2)
library(ggforce)
#set output directory
model_date = format(Sys.Date(), "%Y_%m_%d")
outputdir <- paste0('/ihme/homes/annieb6/AMR/typhi_paratyphi/stackers/', model_date, '/')
dir.create(outputdir, showWarnings = F, recursive = T)
#Load data
... | /misc/glm_model.R | no_license | The-Oxford-GBD-group/typhi_paratyphi_modelling_code | R | false | false | 5,207 | r | rm(list = ls())
library(lme4)
library(boot)
library(foreign)
library(ggplot2)
library(ggforce)
#set output directory
model_date = format(Sys.Date(), "%Y_%m_%d")
outputdir <- paste0('/ihme/homes/annieb6/AMR/typhi_paratyphi/stackers/', model_date, '/')
dir.create(outputdir, showWarnings = F, recursive = T)
#Load data
... |
#' Perform normal GWAS (genome-wide association studies) first, then perform SNP-set GWAS for relatively significant markers
#'
#' @param pheno Data frame where the first column is the line name (gid). The remaining columns should be a phenotype to test.
#' @param geno Data frame with the marker names in the first colu... | /R/RGWAS.twostep.R | permissive | KosukeHamazaki/RAINBOW | R | false | false | 34,352 | r | #' Perform normal GWAS (genome-wide association studies) first, then perform SNP-set GWAS for relatively significant markers
#'
#' @param pheno Data frame where the first column is the line name (gid). The remaining columns should be a phenotype to test.
#' @param geno Data frame with the marker names in the first colu... |
## Data set up for models on ADA - 5 fold cross validation
## Run on ADA
## Get residuals from full models - with spatial and without spatial components.
## 1. Create full model
## 2. Predicted values - observered.
#### Read data on Ada #####
## Only testing local:
# setwd("J:/UEA/gitHRepos/HJA_analyses_Kelpie... | /Hmsc_CD/oregon_ada/code_sjSDM/r20210311b/get_residuals_fullModel.r | permissive | dougwyu/HJA_analyses_Kelpie | R | false | false | 6,106 | r | ## Data set up for models on ADA - 5 fold cross validation
## Run on ADA
## Get residuals from full models - with spatial and without spatial components.
## 1. Create full model
## 2. Predicted values - observered.
#### Read data on Ada #####
## Only testing local:
# setwd("J:/UEA/gitHRepos/HJA_analyses_Kelpie... |
setwd("data")
CT=read.csv("CT.csv")
CT$State="Connecticut"
CT=subset(CT,select=c("County","State","Fatalities.Count"))
CT=aggregate(.~County+State,data=CT,FUN="mean")
data=read.csv("Distance.csv")
data$County=toupper(data$County)
CT$County=toupper(CT$County)
dta=merge(CT,data,by=c("County","State"))
write.csv(dta,file... | /R_codes/Corr2/Create_CT_correlation.R | no_license | dtmlinh/Car-Crash-Fatalities-Exploration-Tool | R | false | false | 336 | r | setwd("data")
CT=read.csv("CT.csv")
CT$State="Connecticut"
CT=subset(CT,select=c("County","State","Fatalities.Count"))
CT=aggregate(.~County+State,data=CT,FUN="mean")
data=read.csv("Distance.csv")
data$County=toupper(data$County)
CT$County=toupper(CT$County)
dta=merge(CT,data,by=c("County","State"))
write.csv(dta,file... |
###########################################################################################
###Project: Dietary fiber intake, the gut microbiome, and chronic systemic inflammation
###Lead author: Wenjie Ma
###Study population: Men's Lifestyle Validation Study (MLVS)
###Data:
#Recent (7DDRs) total fiber and pectin
#Cu... | /FigS1_PCo.R | no_license | mghanbari/Fiber-Microbiome-Inflammation | R | false | false | 4,842 | r | ###########################################################################################
###Project: Dietary fiber intake, the gut microbiome, and chronic systemic inflammation
###Lead author: Wenjie Ma
###Study population: Men's Lifestyle Validation Study (MLVS)
###Data:
#Recent (7DDRs) total fiber and pectin
#Cu... |
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# _______ __ _____ __ +
# | | |__|.-----.| \.--.--.-----.---.-.--------.|__|.----.-----. +
# | | || _ || -- | | | | _ | || || __|__ --| +
# |... | /hipDynamics.R | no_license | caucheteux/HipDynamicsR | R | false | false | 2,707 | r | # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# _______ __ _____ __ +
# | | |__|.-----.| \.--.--.-----.---.-.--------.|__|.----.-----. +
# | | || _ || -- | | | | _ | || || __|__ --| +
# |... |
#rm(list=ls(all=TRUE))
# load maps ---------------------------------------------------------------
library(ggmap)
library(ggplot2)
library(raster)
library(maptools)
library(maps)
library(viridis)
library(reshape2)
library(rayshader)
library(tidyverse)
library(dplyr)
library(sf)
library(ggpubr)
# first map of Peru ---... | /codes/map_color_peru_region.R | no_license | mqnjqrid/capture_recapture | R | false | false | 6,254 | r | #rm(list=ls(all=TRUE))
# load maps ---------------------------------------------------------------
library(ggmap)
library(ggplot2)
library(raster)
library(maptools)
library(maps)
library(viridis)
library(reshape2)
library(rayshader)
library(tidyverse)
library(dplyr)
library(sf)
library(ggpubr)
# first map of Peru ---... |
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
# file : create_succession_parameters.R
# authors : Ceres B. Isabelle B. Damien G. and Maya G.
# date : 06-01-2015
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
# Description =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=... | /scripts/PNE/FATE_benchmark/0_create_succession_parameters_benchmark.R | no_license | emabio/fatehdhub | R | false | false | 18,753 | r | # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
# file : create_succession_parameters.R
# authors : Ceres B. Isabelle B. Damien G. and Maya G.
# date : 06-01-2015
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
# Description =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=... |
library(tidyverse)
library(tseries)
library(forecast)
# Get data
truckee <- read_csv("clean_truckee_flow.csv")
# Convert to ts data
truckee_ts <- ts(truckee$mean_va, frequency = 12, start = c(2000,1))
# plot(truckee_ts)
# Decompose to explore data further
truckee_dc <- decompose(truckee_ts)
plot(truckee_dc)
# Hol... | /archive-knb-test.R | no_license | camilabobroff/archive-knb-test | R | false | false | 1,179 | r | library(tidyverse)
library(tseries)
library(forecast)
# Get data
truckee <- read_csv("clean_truckee_flow.csv")
# Convert to ts data
truckee_ts <- ts(truckee$mean_va, frequency = 12, start = c(2000,1))
# plot(truckee_ts)
# Decompose to explore data further
truckee_dc <- decompose(truckee_ts)
plot(truckee_dc)
# Hol... |
library(rstan)
data <- list(
N=80,
D=14,
x=Xr,
y=Yr,
N_pred=20,
x_pred=Xt
)
fit1 <- stan(
file = "GPC2.stan", # Stan program
data = data,
chains = 1,
warmup = 1000,
iter = 10000,
thin=10,
)
| /GPstan.r | no_license | lorraien/Bayesian | R | false | false | 220 | r |
library(rstan)
data <- list(
N=80,
D=14,
x=Xr,
y=Yr,
N_pred=20,
x_pred=Xt
)
fit1 <- stan(
file = "GPC2.stan", # Stan program
data = data,
chains = 1,
warmup = 1000,
iter = 10000,
thin=10,
)
|
## Exploratory Data Analysis
##
## Leonardo Mendes de Oliveira 15/10/2017
##
## The table "alldata" and your conversions not need execute allways (Only in plot1)
## For graphs in sequence, the steps 1 to 3 not necessary.
##
setwd('/Users/Notebook/Desktop/coursera/data')
## Step 1: Read source data
alldata ... | /plot1.R | no_license | leonardo78rs/ExData_Plotting1 | R | false | false | 1,424 | r | ## Exploratory Data Analysis
##
## Leonardo Mendes de Oliveira 15/10/2017
##
## The table "alldata" and your conversions not need execute allways (Only in plot1)
## For graphs in sequence, the steps 1 to 3 not necessary.
##
setwd('/Users/Notebook/Desktop/coursera/data')
## Step 1: Read source data
alldata ... |
summary(who)
mean(who$Over60)
who[,]
?which(min(who$Over60))
who[which.min(who$Over60), ]
who[which.max(who$LiteracyRate),]
min(tapply(who$ChildMortality, who$Region, mean))
plot(usda$Protein, usda$TotalFat)
boxplot(who$LifeExpectancy ~ who$Region)
rm(mvtWeek1)
max(mvt$ID)
min(mvt$Beat)
table(mvt$Arrest)
table(mvt$Loca... | /first.R | no_license | janasampath/ANOVA_Analysis | R | false | false | 3,198 | r | summary(who)
mean(who$Over60)
who[,]
?which(min(who$Over60))
who[which.min(who$Over60), ]
who[which.max(who$LiteracyRate),]
min(tapply(who$ChildMortality, who$Region, mean))
plot(usda$Protein, usda$TotalFat)
boxplot(who$LifeExpectancy ~ who$Region)
rm(mvtWeek1)
max(mvt$ID)
min(mvt$Beat)
table(mvt$Arrest)
table(mvt$Loca... |
#### city planning data analysis ####
#### december 2018 ####
getwd() # this directory should be the one with your data files in it!
# if not, use "setwd()" to set the working directory
#### load libraries ####
library(data.table)
library(ggplot2)
library(plyr)
library(dplyr)
library(psych)
library(tcltk2)
libra... | /sacramento_code.R | no_license | katherinerosewolf/cyplan256 | R | false | false | 38,256 | r | #### city planning data analysis ####
#### december 2018 ####
getwd() # this directory should be the one with your data files in it!
# if not, use "setwd()" to set the working directory
#### load libraries ####
library(data.table)
library(ggplot2)
library(plyr)
library(dplyr)
library(psych)
library(tcltk2)
libra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{glob_parquets}
\alias{glob_parquets}
\title{Read in multipart parquet
https://stackoverflow.com/a/58450079}
\usage{
glob_parquets(file_list)
}
\arguments{
\item{file_list}{}
}
\value{
}
\description{
Read in multipart parquet
h... | /man/glob_parquets.Rd | permissive | bryanwhiting/bonds | R | false | true | 358 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{glob_parquets}
\alias{glob_parquets}
\title{Read in multipart parquet
https://stackoverflow.com/a/58450079}
\usage{
glob_parquets(file_list)
}
\arguments{
\item{file_list}{}
}
\value{
}
\description{
Read in multipart parquet
h... |
# ___________________________________________________________________________
# DIFFERENCES IN INTENSITIES ----
# Determine and list significant differences between exposed samples (marked with "F")
# and non-exposed samples
# ___________________________________________________________________________
# Read in nanop... | /R/B_02_differences_in_intensities.R | no_license | KunzstLD/Nanoparticle_classification | R | false | false | 2,747 | r | # ___________________________________________________________________________
# DIFFERENCES IN INTENSITIES ----
# Determine and list significant differences between exposed samples (marked with "F")
# and non-exposed samples
# ___________________________________________________________________________
# Read in nanop... |
##############
# MUDAR AQUI #
#~~~~~~~~~~~~~~~~~
batch = c(20000) #
bb = 20000 #
#~~~~~~~~~~~~~~~~~
##############
# MUDAR AQUI #
#~~~~~~~~~~~~~~~~~
#typ = "LOSS" #
#tp = "loss" #
#path = "loss" #
typ = "POLY" #
tp = "poly" #
path = "persist" #
#~~~~~~~~~~~~~~~~~
##############
# MUDAR AQUI #
#~... | /2_hyb_incompatibilities/3_Selected_Mutations/3_classify_mutations.r | no_license | PA-GAGNAIRE/Forward_ADMIX | R | false | false | 2,145 | r | ##############
# MUDAR AQUI #
#~~~~~~~~~~~~~~~~~
batch = c(20000) #
bb = 20000 #
#~~~~~~~~~~~~~~~~~
##############
# MUDAR AQUI #
#~~~~~~~~~~~~~~~~~
#typ = "LOSS" #
#tp = "loss" #
#path = "loss" #
typ = "POLY" #
tp = "poly" #
path = "persist" #
#~~~~~~~~~~~~~~~~~
##############
# MUDAR AQUI #
#~... |
# 2020-07-17 07:35
# elihei [<eheidari@student.ethz.ch>]
# /Volumes/Projects/scGCN/code/R/scGCNUtils/R/graph_const.R
#' construct and visualize Gaussian Graphical Models.
#'
#' @description
#' Fit a Gaussian Graphical Model to continuous-valued dataset employing a subset of methods from stepwise AIC, stepwise BIC... | /code/R/scGCNUtils/R/plot_redim_mtx.R | no_license | EliHei2/scGCN | R | false | false | 3,635 | r | # 2020-07-17 07:35
# elihei [<eheidari@student.ethz.ch>]
# /Volumes/Projects/scGCN/code/R/scGCNUtils/R/graph_const.R
#' construct and visualize Gaussian Graphical Models.
#'
#' @description
#' Fit a Gaussian Graphical Model to continuous-valued dataset employing a subset of methods from stepwise AIC, stepwise BIC... |
#' Read FARS data
#'
#' This function reads in a given file and turns into a table.
#'
#' @importFrom readr read_csv
#' @importFrom dplyr tbl_df
#'
#' @param filename A character string providing the filename for the function
#' to read in.
#'
#' @return A dplyr tbl_df
#'
#' @examples
#' \dontrun{
#' fars... | /R/fars_function.R | no_license | codyschulz/samplePackage2 | R | false | false | 4,520 | r | #' Read FARS data
#'
#' This function reads in a given file and turns into a table.
#'
#' @importFrom readr read_csv
#' @importFrom dplyr tbl_df
#'
#' @param filename A character string providing the filename for the function
#' to read in.
#'
#' @return A dplyr tbl_df
#'
#' @examples
#' \dontrun{
#' fars... |
##############################################################################
### Project: microsamplingDesign
### Description :
### statistic to be estimated population average curve ... | /R/schemeStatistics.R | no_license | cran/microsamplingDesign | R | false | false | 6,593 | r | ##############################################################################
### Project: microsamplingDesign
### Description :
### statistic to be estimated population average curve ... |
#plot2.R
#--------------------------
#Charles BUFFET alias Makina
#
#plot datas
source("GetData.R")
png( "plot2.png" )
with(Pwr, plot(DateTime , Global_active_power, type = "l",xlab="",main="",ylab="Global Active Power (kilowatts)"))
dev.off()
| /plot2.R | no_license | makina/ExData_Plotting1 | R | false | false | 247 | r | #plot2.R
#--------------------------
#Charles BUFFET alias Makina
#
#plot datas
source("GetData.R")
png( "plot2.png" )
with(Pwr, plot(DateTime , Global_active_power, type = "l",xlab="",main="",ylab="Global Active Power (kilowatts)"))
dev.off()
|
#' ---
#' title: "Regression and Other Stories"
#' author: "Andrew Gelman, Jennifer Hill, Aki Vehtari"
#' date: "Page updated: `r format(Sys.Date())`"
#' output:
#' html_document:
#' theme: readable
#' ---
#'
#' # {.tabset}
#'
#' Home page for the book Regression and Other Stories by Andrew Gelman, Jennifer Hi... | /index.R | no_license | anhnguyendepocen/ROS-Examples | R | false | false | 36,037 | r | #' ---
#' title: "Regression and Other Stories"
#' author: "Andrew Gelman, Jennifer Hill, Aki Vehtari"
#' date: "Page updated: `r format(Sys.Date())`"
#' output:
#' html_document:
#' theme: readable
#' ---
#'
#' # {.tabset}
#'
#' Home page for the book Regression and Other Stories by Andrew Gelman, Jennifer Hi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_bar_sd.R
\name{plot_bar_sd}
\alias{plot_bar_sd}
\title{Plot a bar graph indicating mean with error bars (SD) using two variables.}
\usage{
plot_bar_sd(
data,
xcol,
ycol,
bwid = 0.7,
ewid = 0.3,
fontsize = 20,
ColPal = "all_... | /man/plot_bar_sd.Rd | no_license | EpiSuRgeon/grafify | R | false | true | 2,231 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_bar_sd.R
\name{plot_bar_sd}
\alias{plot_bar_sd}
\title{Plot a bar graph indicating mean with error bars (SD) using two variables.}
\usage{
plot_bar_sd(
data,
xcol,
ycol,
bwid = 0.7,
ewid = 0.3,
fontsize = 20,
ColPal = "all_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.