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 |
|---|---|---|---|---|---|---|---|---|---|
library(partycalls)
set.seed(1634538933, kind = "L'Ecuyer")
# load party calls data
load("test_data/house_party_calls_lm.RData")
names(house_party_calls) <- paste0("hou", 93:112)
# use LEP data from website to build baseline dataset
lep_data_93_110 <-
readstata13::read.dta13("inst/extdata/LEPData93to110Congresses.d... | /old/dev/make_new_whoheeds13_lm.R | no_license | Hershberger/partycalls | R | false | false | 11,531 | r | library(partycalls)
set.seed(1634538933, kind = "L'Ecuyer")
# load party calls data
load("test_data/house_party_calls_lm.RData")
names(house_party_calls) <- paste0("hou", 93:112)
# use LEP data from website to build baseline dataset
lep_data_93_110 <-
readstata13::read.dta13("inst/extdata/LEPData93to110Congresses.d... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/fsRankCoxAUC_fct.R
\name{fsRankCoxAUC_fct}
\alias{fsRankCoxAUC_fct}
\title{Wrapper function using the univariate Cox models as ranking method}
\usage{
fsRankCoxAUC_fct(data, fold, ncl, cv.out, cv.in, nr.var, t = 1, sd1 = 0.9,
... | /man/fsRankCoxAUC_fct.Rd | no_license | krumsieklab/SurvRank | R | false | false | 635 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/fsRankCoxAUC_fct.R
\name{fsRankCoxAUC_fct}
\alias{fsRankCoxAUC_fct}
\title{Wrapper function using the univariate Cox models as ranking method}
\usage{
fsRankCoxAUC_fct(data, fold, ncl, cv.out, cv.in, nr.var, t = 1, sd1 = 0.9,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nn-loss.R
\name{nn_bce_with_logits_loss}
\alias{nn_bce_with_logits_loss}
\title{BCE with logits loss}
\usage{
nn_bce_with_logits_loss(weight = NULL, reduction = "mean", pos_weight = NULL)
}
\arguments{
\item{weight}{(Tensor, optional): a manu... | /man/nn_bce_with_logits_loss.Rd | permissive | krzjoa/torch | R | false | true | 3,845 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nn-loss.R
\name{nn_bce_with_logits_loss}
\alias{nn_bce_with_logits_loss}
\title{BCE with logits loss}
\usage{
nn_bce_with_logits_loss(weight = NULL, reduction = "mean", pos_weight = NULL)
}
\arguments{
\item{weight}{(Tensor, optional): a manu... |
## Put comments here that give an overall description of what your
### The following function creates a special "matrix" object (a list) containing the following functions:
# set the value of the matrix
# get the value of the matrix
# set the value of its inverse
# get the value of its inverse
makeCacheMatrix <- func... | /cachematrix.R | no_license | costa-11/ProgrammingAssignment2 | R | false | false | 1,011 | r | ## Put comments here that give an overall description of what your
### The following function creates a special "matrix" object (a list) containing the following functions:
# set the value of the matrix
# get the value of the matrix
# set the value of its inverse
# get the value of its inverse
makeCacheMatrix <- func... |
#!/usr/bin/Rscript
# Plots descriptive statistics from the biomass survey data.
library(ggplot2)
DPI <- 300
#WIDTH <- 8.33
#HEIGHT <- 5.53
WIDTH <- 6.5
HEIGHT <- 4
trees <- read.csv("Data/Trees.csv", skip=1)
canopy <- read.csv("Data/Canopy.csv", skip=1)
trees$ID.Plot <- factor(trees$ID.Plot)
trees$ID.Strata <- fact... | /Biomass_Prediction/1_plot_biomass_data.R | no_license | azvoleff/Biomass_Mapping | R | false | false | 2,606 | r | #!/usr/bin/Rscript
# Plots descriptive statistics from the biomass survey data.
library(ggplot2)
DPI <- 300
#WIDTH <- 8.33
#HEIGHT <- 5.53
WIDTH <- 6.5
HEIGHT <- 4
trees <- read.csv("Data/Trees.csv", skip=1)
canopy <- read.csv("Data/Canopy.csv", skip=1)
trees$ID.Plot <- factor(trees$ID.Plot)
trees$ID.Strata <- fact... |
# Data handling
# Data analysis with autompg.txt
# 2.Read txt file with variable name
# http://archive.ics.uci.edu/ml/datasets/Auto+MPG
# 1. Data reading in R
car<-read.table(file="autompg.txt", na=" ", header=TRUE)
#car<-read.csv(file="autompg.csv")
head(car)
dim(car)
# 2. Data checking : numeric factor integer v... | /lec3_3.R | no_license | wjdtpghk96/R-start | R | false | false | 1,446 | r | # Data handling
# Data analysis with autompg.txt
# 2.Read txt file with variable name
# http://archive.ics.uci.edu/ml/datasets/Auto+MPG
# 1. Data reading in R
car<-read.table(file="autompg.txt", na=" ", header=TRUE)
#car<-read.csv(file="autompg.csv")
head(car)
dim(car)
# 2. Data checking : numeric factor integer v... |
# Dev quadratic approximation v2 blocks, like in H&Y 2009
library(devtools)
load_all(".")
set.seed(20)
source("tests/0-make-test-set-1.R")
verb <- 1
lmin <- 0.001
eps <- 1e-3
t0 <- system.time( f0 <- glbin_lcd(X, y, eps=eps, nlambda=100, index = index, verb=verb, lambda.min = lmin) )
| /tests/1-quadratic-with-blocks-r.R | no_license | jeliason/glbinc | R | false | false | 291 | r | # Dev quadratic approximation v2 blocks, like in H&Y 2009
library(devtools)
load_all(".")
set.seed(20)
source("tests/0-make-test-set-1.R")
verb <- 1
lmin <- 0.001
eps <- 1e-3
t0 <- system.time( f0 <- glbin_lcd(X, y, eps=eps, nlambda=100, index = index, verb=verb, lambda.min = lmin) )
|
#########################################################
##
## N-folds based cross validation data split mechanism
## Parameters:
## cvIdx: From 1 to combn(totalFold, TrainingFold).index of one specific data split in cross validatoin
## testPer: percentage of test dataset, e.g. testPer = 20
##
## Return:
## Lis... | /CvDataSplit.R | no_license | Zhenshan-Jin/Machine_Learning_Tool_Box | R | false | false | 2,094 | r | #########################################################
##
## N-folds based cross validation data split mechanism
## Parameters:
## cvIdx: From 1 to combn(totalFold, TrainingFold).index of one specific data split in cross validatoin
## testPer: percentage of test dataset, e.g. testPer = 20
##
## Return:
## Lis... |
library(glmnet)
mydata = read.table("./TrainingSet/RF/lung_other.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.6,family="gaussian",standardize=TRUE)
sink('./Model/EN/Classifier/lung_other/lung_other_065.txt',a... | /Model/EN/Classifier/lung_other/lung_other_065.R | no_license | leon1003/QSMART | R | false | false | 361 | r | library(glmnet)
mydata = read.table("./TrainingSet/RF/lung_other.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.6,family="gaussian",standardize=TRUE)
sink('./Model/EN/Classifier/lung_other/lung_other_065.txt',a... |
library(httr)
library(XML)
library(magrittr)
library(rvest)
library(tidyverse)
#retrives links to list of agencys and schools
agency_links <- read_html("http://transparentcalifornia.com/agencies/salaries/") %>% html_nodes("td:nth-child(1) a") %>% html_attr("href")
school_dis_links <- read_html("http://transparentcal... | /scripts/core_scrape.R | no_license | brettkobo/open-state-salaries | R | false | false | 1,825 | r | library(httr)
library(XML)
library(magrittr)
library(rvest)
library(tidyverse)
#retrives links to list of agencys and schools
agency_links <- read_html("http://transparentcalifornia.com/agencies/salaries/") %>% html_nodes("td:nth-child(1) a") %>% html_attr("href")
school_dis_links <- read_html("http://transparentcal... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wflow_start.R
\name{wflow_start}
\alias{wflow_start}
\title{Start a new workflowr project}
\usage{
wflow_start(directory, name = NULL, git = TRUE, existing = FALSE,
overwrite = FALSE, change_wd = TRUE, user.name = NULL,
user.email = NULL)... | /man/wflow_start.Rd | permissive | pcarbo/workflowr | R | false | true | 3,502 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wflow_start.R
\name{wflow_start}
\alias{wflow_start}
\title{Start a new workflowr project}
\usage{
wflow_start(directory, name = NULL, git = TRUE, existing = FALSE,
overwrite = FALSE, change_wd = TRUE, user.name = NULL,
user.email = NULL)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/acmpca_operations.R
\name{acmpca_import_certificate_authority_certificate}
\alias{acmpca_import_certificate_authority_certificate}
\title{Imports a signed private CA certificate into Amazon Web Services Private
CA}
\usage{
acmpca_import_certi... | /cran/paws.security.identity/man/acmpca_import_certificate_authority_certificate.Rd | permissive | paws-r/paws | R | false | true | 1,798 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/acmpca_operations.R
\name{acmpca_import_certificate_authority_certificate}
\alias{acmpca_import_certificate_authority_certificate}
\title{Imports a signed private CA certificate into Amazon Web Services Private
CA}
\usage{
acmpca_import_certi... |
### nohup R CMD BATCH --vanilla /home/gmatthews1/shapeAnalysis/R/simulation_script2.R &
### tail -f /home/gmatthews1/shapeAnalysis/R/simulation_script2.Rout
### nohup R CMD BATCH --vanilla /home/gmatthews1/shapeAnalysis/R/simulation_script1.R &
### tail -f /home/gmatthews1/shapeAnalysis/R/simulation_script1.Rout
##... | /R/classify_unknown_tooth.R | no_license | gjm112/shapeanalysis | R | false | false | 21,734 | r |
### nohup R CMD BATCH --vanilla /home/gmatthews1/shapeAnalysis/R/simulation_script2.R &
### tail -f /home/gmatthews1/shapeAnalysis/R/simulation_script2.Rout
### nohup R CMD BATCH --vanilla /home/gmatthews1/shapeAnalysis/R/simulation_script1.R &
### tail -f /home/gmatthews1/shapeAnalysis/R/simulation_script1.Rout
##... |
#Pipeline Part I: This part takes in the raw data and outputs the quality profile. The user should
#use this information to decide on filtering parameters. Filtering is the first step of Part II.
library(optparse)
library(dada2)
####This is the flag function####
option_list = list(
make_option(c("-f", "--file"), ty... | /Pipeline/part1.R | no_license | cprintzis/hot_METS | R | false | false | 2,260 | r | #Pipeline Part I: This part takes in the raw data and outputs the quality profile. The user should
#use this information to decide on filtering parameters. Filtering is the first step of Part II.
library(optparse)
library(dada2)
####This is the flag function####
option_list = list(
make_option(c("-f", "--file"), ty... |
#' Helper for creating small images for each rule
library(dynbenchmark)
library(esfiji)
experiment("02-metrics/02-metric_conformity")
svg_location <- raw_file("perturbations.svg")
folder <- result_file("images")
dir.create(folder)
svg_groups_split(svg_location, folder = folder)
| /scripts/02-metrics/02-metric_conformity/helper-create_perturbation_images.R | permissive | dynverse/dynbenchmark | R | false | false | 283 | r | #' Helper for creating small images for each rule
library(dynbenchmark)
library(esfiji)
experiment("02-metrics/02-metric_conformity")
svg_location <- raw_file("perturbations.svg")
folder <- result_file("images")
dir.create(folder)
svg_groups_split(svg_location, folder = folder)
|
compute_single_loading = function(X, c, k, V_init, U_result, orth, tolerance, max_iter) {
v_old = V_init[, k, drop = TRUE]
diff = tolerance * 10
iter = 1
while((iter < max_iter) & (diff > tolerance)) {
if (orth & (k > 1)) {
u_new = update_orthogonal_u(X, v_old, U_result[, 1:(k - 1), drop = FALSE])... | /R/compute_single_loading.R | no_license | keshav-motwani/sparsePCA | R | false | false | 572 | r | compute_single_loading = function(X, c, k, V_init, U_result, orth, tolerance, max_iter) {
v_old = V_init[, k, drop = TRUE]
diff = tolerance * 10
iter = 1
while((iter < max_iter) & (diff > tolerance)) {
if (orth & (k > 1)) {
u_new = update_orthogonal_u(X, v_old, U_result[, 1:(k - 1), drop = FALSE])... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testStatistics.R
\name{A4TempStatistic}
\alias{A4TempStatistic}
\title{generate the randomization statistic based on A4}
\usage{
A4TempStatistic(theData, S)
}
\arguments{
\item{theData}{the data}
}
\value{
ranStat a function of random group t... | /man/A4TempStatistic.Rd | no_license | kfeng123/randomizationTest | R | false | true | 401 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testStatistics.R
\name{A4TempStatistic}
\alias{A4TempStatistic}
\title{generate the randomization statistic based on A4}
\usage{
A4TempStatistic(theData, S)
}
\arguments{
\item{theData}{the data}
}
\value{
ranStat a function of random group t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_tags_queries.R
\name{query_tag_samples}
\alias{query_tag_samples}
\title{Tag Samples}
\usage{
query_tag_samples(
datasets,
parent_tags,
tags = NA,
features = NA,
feature_classes = NA,
samples = NA,
...
)
}
\arguments{
\item{... | /man/query_tag_samples.Rd | permissive | jaybee84/iatlas.api.client | R | false | true | 631 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_tags_queries.R
\name{query_tag_samples}
\alias{query_tag_samples}
\title{Tag Samples}
\usage{
query_tag_samples(
datasets,
parent_tags,
tags = NA,
features = NA,
feature_classes = NA,
samples = NA,
...
)
}
\arguments{
\item{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/big.municipios.R
\docType{data}
\name{big.municipios}
\alias{big.municipios}
\title{Big Municipios not part of a Metro Area}
\format{
A data frame with 66 observations on the following 4 variables.
}
\usage{
big.municipios
}
\description{
Thi... | /man/big.municipios.Rd | permissive | diegovalle/mxmortalitydb | R | false | true | 785 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/big.municipios.R
\docType{data}
\name{big.municipios}
\alias{big.municipios}
\title{Big Municipios not part of a Metro Area}
\format{
A data frame with 66 observations on the following 4 variables.
}
\usage{
big.municipios
}
\description{
Thi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/writeDABOM.R
\name{writeDABOM}
\alias{writeDABOM}
\title{Write DABOM JAGS model}
\usage{
writeDABOM(
file_name = NULL,
parent_child = NULL,
configuration = NULL,
time_varying = FALSE
)
}
\arguments{
\item{file_name}{name (with file pa... | /man/writeDABOM.Rd | permissive | KevinSee/DABOM | R | false | true | 1,020 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/writeDABOM.R
\name{writeDABOM}
\alias{writeDABOM}
\title{Write DABOM JAGS model}
\usage{
writeDABOM(
file_name = NULL,
parent_child = NULL,
configuration = NULL,
time_varying = FALSE
)
}
\arguments{
\item{file_name}{name (with file pa... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/autonomic_ganglia.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.5,family="gaussian",standardize=FALSE)
sink('./autonomic_ganglia_058... | /Model/EN/ReliefF/autonomic_ganglia/autonomic_ganglia_058.R | no_license | esbgkannan/QSMART | R | false | false | 368 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/autonomic_ganglia.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.5,family="gaussian",standardize=FALSE)
sink('./autonomic_ganglia_058... |
## Chandler Lutz
## Questions/comments: cl.eco@cbs.dk
## $Revisions: 1.0.0 $Date: 2019-08-06
##Clear the workspace
##Delete all objects and detach packages
rm(list = ls())
R.files <- list.files("R", full.names = TRUE)
R.files <- R.files[grepl("\\.R$", x = R.files)]
f_run <- function(file) {
p... | /CFPL_Border/_RunAll_.R | no_license | Allisterh/Replication_CFPLCode | R | false | false | 410 | r | ## Chandler Lutz
## Questions/comments: cl.eco@cbs.dk
## $Revisions: 1.0.0 $Date: 2019-08-06
##Clear the workspace
##Delete all objects and detach packages
rm(list = ls())
R.files <- list.files("R", full.names = TRUE)
R.files <- R.files[grepl("\\.R$", x = R.files)]
f_run <- function(file) {
p... |
#Get data from particular source which is mentioned in project
data <- read.csv("G:/Data Scientist/Coursera/4. Exploratory Data analysis/project 1/household_power_consumption.txt", sep=";")
#convert date column into character format in order to transform into date formate
data$Date <- as.character(data$Date)
data$Dat... | /plot1.r | no_license | Jineshpanchal/ExData_Plotting1 | R | false | false | 864 | r | #Get data from particular source which is mentioned in project
data <- read.csv("G:/Data Scientist/Coursera/4. Exploratory Data analysis/project 1/household_power_consumption.txt", sep=";")
#convert date column into character format in order to transform into date formate
data$Date <- as.character(data$Date)
data$Dat... |
dir <- "/home/julesy/workspace/ttp-results/";
file <- "IEEE.csv";
csv <- read.csv(paste0(dir, file), sep = ",")
csv$result <- round(csv$result, 4)
csv$problem <- factor(csv$problem, levels(csv$problem)[unique(csv$problem)] )
df_min <- aggregate(csv$result, by=list(csv$problem), FUN=min)
colnames(df_min) <- c("probl... | /scripts/pivot_table.R | no_license | blankjul/ttp-java | R | false | false | 1,449 | r |
dir <- "/home/julesy/workspace/ttp-results/";
file <- "IEEE.csv";
csv <- read.csv(paste0(dir, file), sep = ",")
csv$result <- round(csv$result, 4)
csv$problem <- factor(csv$problem, levels(csv$problem)[unique(csv$problem)] )
df_min <- aggregate(csv$result, by=list(csv$problem), FUN=min)
colnames(df_min) <- c("probl... |
test_that("geo_rect class works", {
rect <- geo_rect(xmin = 0, ymin = 0, xmax = 1, ymax = 1)
expect_output(print(rect), "geovctrs_rect")
expect_output(print(tibble(rect)), "rect")
expect_is(rect, "geovctrs_rect")
expect_true(is_geovctrs_rect(rect))
expect_true(vec_is(rect))
})
test_that("geo_rect c() wor... | /tests/testthat/test-geo-rect.R | no_license | mdsumner/geovctrs | R | false | false | 1,275 | r |
test_that("geo_rect class works", {
rect <- geo_rect(xmin = 0, ymin = 0, xmax = 1, ymax = 1)
expect_output(print(rect), "geovctrs_rect")
expect_output(print(tibble(rect)), "rect")
expect_is(rect, "geovctrs_rect")
expect_true(is_geovctrs_rect(rect))
expect_true(vec_is(rect))
})
test_that("geo_rect c() wor... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.interface.ranger.r
\name{model.interface.ranger-class (ranger)}
\alias{model.interface.ranger-class (ranger)}
\alias{model.interface.ranger.class}
\title{(Internal) model.interface class for ranger}
\description{
This reference class co... | /man/model.interface.ranger-class-open-paren-ranger-close-paren.Rd | permissive | Marchen/model.adapter | R | false | true | 4,957 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.interface.ranger.r
\name{model.interface.ranger-class (ranger)}
\alias{model.interface.ranger-class (ranger)}
\alias{model.interface.ranger.class}
\title{(Internal) model.interface class for ranger}
\description{
This reference class co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/check-GSC.R
\docType{methods}
\name{check}
\alias{check}
\alias{check,GeneSetCollection-method}
\alias{geneIdType,GeneSetCollection-method}
\alias{collectionType,GeneSetCollection-method}
\title{Checks a GeneSetCollection}
\u... | /man/check.Rd | no_license | llrs/GSEAdv | R | false | true | 1,605 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/check-GSC.R
\docType{methods}
\name{check}
\alias{check}
\alias{check,GeneSetCollection-method}
\alias{geneIdType,GeneSetCollection-method}
\alias{collectionType,GeneSetCollection-method}
\title{Checks a GeneSetCollection}
\u... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/waterfall_palette_names.R
\name{waterfall_palette_names}
\alias{waterfall_palette_names}
\title{waterfall_palette_names}
\usage{
waterfall_palette_names(palette, file_type, data_frame)
}
\arguments{
\item{palette}{Named colour vector as input... | /man/waterfall_palette_names.Rd | permissive | pradyumnasagar/GenVisR | R | false | true | 564 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/waterfall_palette_names.R
\name{waterfall_palette_names}
\alias{waterfall_palette_names}
\title{waterfall_palette_names}
\usage{
waterfall_palette_names(palette, file_type, data_frame)
}
\arguments{
\item{palette}{Named colour vector as input... |
a <- 5
b <- 3
a+b
a*b
56677*888888909
| /Suma.R | no_license | JimmyReyesVelasco/Seminario | R | false | false | 38 | r | a <- 5
b <- 3
a+b
a*b
56677*888888909
|
library(ggplot2)
populationBoxPlot <- ggplot(mergedData, aes(y= mergedData$population)) +
geom_boxplot()
murderBoxPlot <- ggplot(mergedData, aes(y= mergedData$Murder)) +
geom_boxplot()
populationBoxPlot
murderBoxPlot
| /boxplot.R | no_license | fall2018-wallace/snehab_dataviz | R | false | false | 231 | r |
library(ggplot2)
populationBoxPlot <- ggplot(mergedData, aes(y= mergedData$population)) +
geom_boxplot()
murderBoxPlot <- ggplot(mergedData, aes(y= mergedData$Murder)) +
geom_boxplot()
populationBoxPlot
murderBoxPlot
|
#library(sqldf)
# Reading the dataset
# keep in mind to set the path before running the code
watt <- read.csv("household_power_consumption.txt",sep=";", stringsAsFactor=FALSE)
watt1 <- subset(watt,watt[,1]=='1/2/2007' )
watt2 <- subset(watt,watt[,1]=='2/2/2007')
watt1$newd <- as.POSIXct(paste(watt1$Date, watt1$Time... | /plot1.R | no_license | kanudutta/ExData_Plotting1 | R | false | false | 655 | r | #library(sqldf)
# Reading the dataset
# keep in mind to set the path before running the code
watt <- read.csv("household_power_consumption.txt",sep=";", stringsAsFactor=FALSE)
watt1 <- subset(watt,watt[,1]=='1/2/2007' )
watt2 <- subset(watt,watt[,1]=='2/2/2007')
watt1$newd <- as.POSIXct(paste(watt1$Date, watt1$Time... |
gbmCV <- function(x, y, folds, tree_inc, dist="adaboost", id=1, bf=.5, sh=.001, singlefold=F) {
getDev <- function(p, y) -mean(ifelse(y==1, log(p), log(1-p)), na.rm=TRUE)
getDevmod <- function(p, y) getDev(pmin(pmax(p, .001), .999), y)
getMse <- function(p, y) mean((y-p)^2, na.rm=TRUE)
getMisclass <- functio... | /gbmcv.R | permissive | fboehm/stat998-project2 | R | false | false | 1,721 | r | gbmCV <- function(x, y, folds, tree_inc, dist="adaboost", id=1, bf=.5, sh=.001, singlefold=F) {
getDev <- function(p, y) -mean(ifelse(y==1, log(p), log(1-p)), na.rm=TRUE)
getDevmod <- function(p, y) getDev(pmin(pmax(p, .001), .999), y)
getMse <- function(p, y) mean((y-p)^2, na.rm=TRUE)
getMisclass <- functio... |
library(readr)
marBasketData <- read_csv("D:/z_kaushal/ISIDMBA/DataSets/Mar_Basket.csv")
View(marBasketData)
target = factor(marBasketData$items)
ident = marBasketData$Id
library(arules)
transactions=as(split(target,ident),)
transactions = as(split(target,ident), "transactions")
rules = apriori(transactions, para... | /code/tutorial/Day6-multRsMBA.R | no_license | kd303/ML-Training | R | false | false | 575 | r |
library(readr)
marBasketData <- read_csv("D:/z_kaushal/ISIDMBA/DataSets/Mar_Basket.csv")
View(marBasketData)
target = factor(marBasketData$items)
ident = marBasketData$Id
library(arules)
transactions=as(split(target,ident),)
transactions = as(split(target,ident), "transactions")
rules = apriori(transactions, para... |
library(dplyr)
library(readxl)
library(tidyr)
library(stringr)
xlsx <- "F:/Data/Medals PD WOW.xlsx"
country_code_map <- read_excel(xlsx, sheet = 'Country Codes')
finalA <- read_excel(xlsx, sheet = 'Medallists', col_types = c("text",
"text", "text", "te... | /2020/2020W31/preppindataw31.R | no_license | ArseneXie/Preppindata | R | false | false | 2,867 | r | library(dplyr)
library(readxl)
library(tidyr)
library(stringr)
xlsx <- "F:/Data/Medals PD WOW.xlsx"
country_code_map <- read_excel(xlsx, sheet = 'Country Codes')
finalA <- read_excel(xlsx, sheet = 'Medallists', col_types = c("text",
"text", "text", "te... |
#package
library(dplyr)
#introduce dataset
filename <- "UCI HAR Dataset"
# Checking if folder exists
if (!file.exists("UCI HAR Dataset")) {
unzip(filename)
}
#assign dataframes
features <- read.table("UCI HAR Dataset/features.txt", col.names = c("n","functions"))
activities <- read.table("UCI HAR Dataset/activit... | /run_analysis.R | no_license | neptunelaw/GACD-WK-4 | R | false | false | 2,445 | r | #package
library(dplyr)
#introduce dataset
filename <- "UCI HAR Dataset"
# Checking if folder exists
if (!file.exists("UCI HAR Dataset")) {
unzip(filename)
}
#assign dataframes
features <- read.table("UCI HAR Dataset/features.txt", col.names = c("n","functions"))
activities <- read.table("UCI HAR Dataset/activit... |
subset = list(lat = -90:10)
levels = c(50, 200, 500)
years <- seq(1979, 2018)
uv <- data.table::rbindlist(lapply(years, function(y) {
cat("Processing year ", y, "\r")
ufile <- paste0("datos/NCEP Reanalysis/daily/uwnd.", y, ".nc")
vfile <- paste0("datos/NCEP Reanalysis/daily/vwnd.", y, ".nc")
wnd <- metR::R... | /analysis/scripts/01-compute_uv.R | no_license | YTHsieh/shceof | R | false | false | 772 | r | subset = list(lat = -90:10)
levels = c(50, 200, 500)
years <- seq(1979, 2018)
uv <- data.table::rbindlist(lapply(years, function(y) {
cat("Processing year ", y, "\r")
ufile <- paste0("datos/NCEP Reanalysis/daily/uwnd.", y, ".nc")
vfile <- paste0("datos/NCEP Reanalysis/daily/vwnd.", y, ".nc")
wnd <- metR::R... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-spatial.R
\name{get_rastervalue}
\alias{get_rastervalue}
\title{Function to extract directly the raster value of provided points}
\usage{
get_rastervalue(coords, env, ngb_fill = TRUE, rm.na = FALSE)
}
\arguments{
\item{coords}{A \code{\... | /man/get_rastervalue.Rd | permissive | iiasa/ibis.iSDM | R | false | true | 1,284 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-spatial.R
\name{get_rastervalue}
\alias{get_rastervalue}
\title{Function to extract directly the raster value of provided points}
\usage{
get_rastervalue(coords, env, ngb_fill = TRUE, rm.na = FALSE)
}
\arguments{
\item{coords}{A \code{\... |
library(tidyr)
library(dplyr)
library(repurrrsive)
# there are 30 rows. And a named list for each one.
# each list has 18 elements.
# there is only one column
chars <- tibble(char = got_chars)
# now we have 30 rows by 18 columns.
# some columns are simple types while some are simple types.
chars2 <- chars %>% unnes... | /rectangularising_game_thrones.r | no_license | thefactmachine/tidy_json | R | false | false | 911 | r |
library(tidyr)
library(dplyr)
library(repurrrsive)
# there are 30 rows. And a named list for each one.
# each list has 18 elements.
# there is only one column
chars <- tibble(char = got_chars)
# now we have 30 rows by 18 columns.
# some columns are simple types while some are simple types.
chars2 <- chars %>% unnes... |
DFMClass<-function(id,parameters) {
if (!is.numeric(id) || !all(is.finite(id)))
stop("invalid arguments")
## Check to determine whether the DFM object already exists
st<-paste("DFM",id,sep="")
found=0
if(exists(st,where=1)) {
data<-get(st)
found<-1
if(AreParametersEqual(parame... | /FLIC/FLIC R Code Files/DFM.R | no_license | jpinzonc/Sleep_in_Drosophila | R | false | false | 30,319 | r |
DFMClass<-function(id,parameters) {
if (!is.numeric(id) || !all(is.finite(id)))
stop("invalid arguments")
## Check to determine whether the DFM object already exists
st<-paste("DFM",id,sep="")
found=0
if(exists(st,where=1)) {
data<-get(st)
found<-1
if(AreParametersEqual(parame... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 7.0657915712477e-304, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.295541... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615837405-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,047 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 7.0657915712477e-304, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.295541... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## @x: a square invertible matrix
## return: functions with following input
## fix the matrix retrieve the matrix fix... | /cachematrix.R | no_license | gaganarora1/ProgrammingAssignment2 | R | false | false | 1,370 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## @x: a square invertible matrix
## return: functions with following input
## fix the matrix retrieve the matrix fix... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# Initializes the inverse to null
# Defines setters and getters function
# Returns the setters and getters
makeCacheMatrix <- function(m = matrix()) {
inverse <- NULL
# setters ... | /cachematrix.R | no_license | jbdelmundo/ProgrammingAssignment2 | R | false | false | 1,564 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# Initializes the inverse to null
# Defines setters and getters function
# Returns the setters and getters
makeCacheMatrix <- function(m = matrix()) {
inverse <- NULL
# setters ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{county_points}
\alias{county_points}
\title{Eastern U.S. county latitude and longitudes}
\format{
A dataframe with 2,396 rows and 3 variables:
\describe{
\item{fips}{A character vector giving the county's five-d... | /man/county_points.Rd | no_license | geanders/stormwindmodel | R | false | true | 1,326 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{county_points}
\alias{county_points}
\title{Eastern U.S. county latitude and longitudes}
\format{
A dataframe with 2,396 rows and 3 variables:
\describe{
\item{fips}{A character vector giving the county's five-d... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.45429485869326e+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_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615771481-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.45429485869326e+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_... |
library(ape)
testtree <- read.tree("1238_9.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1238_9_unrooted.txt") | /codeml_files/newick_trees_processed_and_cleaned/1238_9/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("1238_9.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1238_9_unrooted.txt") |
library(oilabs)
library(readr)
setwd("~/GitHub/A-DA460/R")
# read data set
run <- read_csv("run10.csv")
# remove the NA in divTot
run <- run[!is.na(run$divTot), ]
run$gender <- as.factor(run$gender)
inference(y = run$divTot, x = run$gender, est = "mean", type = "ci", null = 0,
alternative = "twosided", me... | /R/final.R | no_license | mnblanco/DA460 | R | false | false | 573 | r | library(oilabs)
library(readr)
setwd("~/GitHub/A-DA460/R")
# read data set
run <- read_csv("run10.csv")
# remove the NA in divTot
run <- run[!is.na(run$divTot), ]
run$gender <- as.factor(run$gender)
inference(y = run$divTot, x = run$gender, est = "mean", type = "ci", null = 0,
alternative = "twosided", me... |
##
## Begin shankarz code
##
## The original consturct is not shankarz's
## Shankarz only made incremental changes
.onAttach <- function(libname, pkgname) {
# For debugging purpose
# packageStartupMessage("shankarz.TexST package from Natarajan Shankar attached")
}
# .onLoad borrowed as-is from documentation
# ... | /shankarz.TexST/R/zzz.R | no_license | shankar2016/Stanford-Data-Mining | R | false | false | 874 | r | ##
## Begin shankarz code
##
## The original consturct is not shankarz's
## Shankarz only made incremental changes
.onAttach <- function(libname, pkgname) {
# For debugging purpose
# packageStartupMessage("shankarz.TexST package from Natarajan Shankar attached")
}
# .onLoad borrowed as-is from documentation
# ... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% SnpInformation.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{SnpInformation}
\do... | /man/SnpInformation.Rd | no_license | microarray/aroma.affymetrix | R | false | false | 3,552 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% SnpInformation.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{SnpInformation}
\do... |
#' Basic arithmetic
#'
#' @param x,y numeric vectors.
add <- function(x, y) x + y
#' @rdname add
times <- function(x, y) x * y
| /R/basic.R | no_license | kang-yu/visar | R | false | false | 128 | r | #' Basic arithmetic
#'
#' @param x,y numeric vectors.
add <- function(x, y) x + y
#' @rdname add
times <- function(x, y) x * y
|
library(readxl)
library(tidyverse)
library(stringi)
library(readr)
library(sqldf)
# help match --------------
# program_cohort__c
program_cohort <- data.frame(
"year" = 2006:2008,
"PROGRAM_COHORT__C" = c(
"a2C39000002zYsyEAE",
"a2C39000002zYt3EAE",
"a2C39000002zYt8EAE"
),
"RECORDTYPEID" = "0123900... | /yr06_08.R | no_license | Starryz/VW-Summer-Internship | R | false | false | 36,021 | r | library(readxl)
library(tidyverse)
library(stringi)
library(readr)
library(sqldf)
# help match --------------
# program_cohort__c
program_cohort <- data.frame(
"year" = 2006:2008,
"PROGRAM_COHORT__C" = c(
"a2C39000002zYsyEAE",
"a2C39000002zYt3EAE",
"a2C39000002zYt8EAE"
),
"RECORDTYPEID" = "0123900... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimate_confidence.R
\name{estimate_confidence}
\alias{estimate_confidence}
\title{estimate_confidence
estimate confidence intervals for choc analysis}
\usage{
estimate_confidence(
mychoc,
method = "perm",
conf = 0.95,
nb_replicates ... | /man/estimate_confidence.Rd | permissive | Irstea/chocR | R | false | true | 1,824 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimate_confidence.R
\name{estimate_confidence}
\alias{estimate_confidence}
\title{estimate_confidence
estimate confidence intervals for choc analysis}
\usage{
estimate_confidence(
mychoc,
method = "perm",
conf = 0.95,
nb_replicates ... |
library(IDSpatialStats)
### Name: est.transdist
### Title: Estimate transmission distance
### Aliases: est.transdist
### ** Examples
set.seed(123)
# Exponentially distributed transmission kernel with mean and standard deviation = 100
dist.func <- alist(n=1, a=1/100, rexp(n, a))
# Simulate epidemic
a <- sim.epide... | /data/genthat_extracted_code/IDSpatialStats/examples/est.transdist.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 803 | r | library(IDSpatialStats)
### Name: est.transdist
### Title: Estimate transmission distance
### Aliases: est.transdist
### ** Examples
set.seed(123)
# Exponentially distributed transmission kernel with mean and standard deviation = 100
dist.func <- alist(n=1, a=1/100, rexp(n, a))
# Simulate epidemic
a <- sim.epide... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_map_countryUI.R
\name{mod_map_countryUI}
\alias{mod_map_countryUI}
\alias{mod_map_country}
\title{mod_map_countryUI and mod_map_country}
\usage{
mod_map_countryUI(id)
mod_map_country(input, output, session, dataframe)
}
\arguments{
\item... | /package/findyourdreamcar/man/mod_map_countryUI.Rd | permissive | ludmilaexbrayat/findyourcar | R | false | true | 729 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_map_countryUI.R
\name{mod_map_countryUI}
\alias{mod_map_countryUI}
\alias{mod_map_country}
\title{mod_map_countryUI and mod_map_country}
\usage{
mod_map_countryUI(id)
mod_map_country(input, output, session, dataframe)
}
\arguments{
\item... |
## Download the dataset
# setwd("./Project1")
# dataurl <- "https://github.com/rdpeng/ExData_Plotting1"
# datafile <- file.path(getwd(), "household_power_consumption.zip")
# download.file(dataurl, datafile, method = "curl")
##--unzip(datafile, exdir = "./Data")
## This file is for loading the large dataset.
## Ge... | /plot2.R | no_license | bwrightprojects/ExData_Plotting1 | R | false | false | 1,102 | r |
## Download the dataset
# setwd("./Project1")
# dataurl <- "https://github.com/rdpeng/ExData_Plotting1"
# datafile <- file.path(getwd(), "household_power_consumption.zip")
# download.file(dataurl, datafile, method = "curl")
##--unzip(datafile, exdir = "./Data")
## This file is for loading the large dataset.
## Ge... |
library(ggplot2)
# load data
message('loading summarySCC_PM25.rds')
NEI <- readRDS("summarySCC_PM25.rds")
message('loading summarySCC_PM25.rds')
SCC <- readRDS("Source_Classification_Code.rds")
NEI$type<- as.factor(NEI$type)
# create a logical vector of the entries in SCC that are coal combustion related
# (includin... | /plot4.R | no_license | petethegreat/ExploratoryDataAnalysisProject | R | false | false | 1,391 | r |
library(ggplot2)
# load data
message('loading summarySCC_PM25.rds')
NEI <- readRDS("summarySCC_PM25.rds")
message('loading summarySCC_PM25.rds')
SCC <- readRDS("Source_Classification_Code.rds")
NEI$type<- as.factor(NEI$type)
# create a logical vector of the entries in SCC that are coal combustion related
# (includin... |
#Apply BUSseq to the hematopoietic study.
rm(list=ls())
library(BUSseq)
###########################
# Load Hematopoietic Data #
###########################
# Working directory
# setwd("G:/scRNA/Journal/Github_reproduce/Mouse_Hematopoietic")
# Loading hematopoietic count data
load("./RawCountData/hemat_co... | /Hematopoietic/run_BUSseq.R | no_license | songfd2018/BUSseq-0.99.0_implementation | R | false | false | 4,801 | r | #Apply BUSseq to the hematopoietic study.
rm(list=ls())
library(BUSseq)
###########################
# Load Hematopoietic Data #
###########################
# Working directory
# setwd("G:/scRNA/Journal/Github_reproduce/Mouse_Hematopoietic")
# Loading hematopoietic count data
load("./RawCountData/hemat_co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tb_cl.R
\name{cl_table}
\alias{cl_table}
\title{Generate a larval control table}
\usage{
cl_table(x, jur = NULL, mun)
}
\arguments{
\item{x}{is the dataset of control larvario.}
\item{jur}{is the Jurisdiccion.}
\item{mun}{is the municipio.}... | /man/cl_table.Rd | permissive | fdzul/boldenr | R | false | true | 563 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tb_cl.R
\name{cl_table}
\alias{cl_table}
\title{Generate a larval control table}
\usage{
cl_table(x, jur = NULL, mun)
}
\arguments{
\item{x}{is the dataset of control larvario.}
\item{jur}{is the Jurisdiccion.}
\item{mun}{is the municipio.}... |
## Assignment for Coursera's "R Programming" course
## The functions can be used to count and cache the inverse
## of an inversible square matrix
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL #initi... | /cachematrix.R | no_license | dcsilla/ProgrammingAssignment2 | R | false | false | 1,619 | r | ## Assignment for Coursera's "R Programming" course
## The functions can be used to count and cache the inverse
## of an inversible square matrix
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL #initi... |
#Set work dirrectory
setwd("/home/kun/Dropbox/Study/Coursera - Data Science/03 - Getting and Cleaning Data/Week4")
#Download and unzip Data
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl, file.path(getwd(), "Dataset.zip"))
unzip(zipfile="./Da... | /run_analysis_R V2.R | no_license | HKFORWARD/Assignment---Getting-and-Cleaning-Data | R | false | false | 3,700 | r |
#Set work dirrectory
setwd("/home/kun/Dropbox/Study/Coursera - Data Science/03 - Getting and Cleaning Data/Week4")
#Download and unzip Data
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl, file.path(getwd(), "Dataset.zip"))
unzip(zipfile="./Da... |
#---------------------------------------------------------------------------
#
# This file holds the S4 class definitions for the class that defines the
# minimal bounding grid at given resolution for an InclusionZone object.
# These objects may be used later in generating a sampling surface by
# "piling" or "h... | /sampSurf/R/InclusionZoneGridClass.R | no_license | ingted/R-Examples | R | false | false | 5,636 | r | #---------------------------------------------------------------------------
#
# This file holds the S4 class definitions for the class that defines the
# minimal bounding grid at given resolution for an InclusionZone object.
# These objects may be used later in generating a sampling surface by
# "piling" or "h... |
system("R CMD Rd2pdf --pdf ../PCAmixdata")
system("R CMD build ../PCAmixdata")
system("R CMD check --as-cran ../PCAmixdata")
library(PCAmixdata)
devtools::check(,cran=TRUE)
#http://xmpalantir.wu.ac.at/cransubmit/
dir <- "~/Seafile/R"
tools::check_packages_in_dir(dir,reverse = list())
| /inst/test_package.R | no_license | cran/PCAmixdata | R | false | false | 286 | r | system("R CMD Rd2pdf --pdf ../PCAmixdata")
system("R CMD build ../PCAmixdata")
system("R CMD check --as-cran ../PCAmixdata")
library(PCAmixdata)
devtools::check(,cran=TRUE)
#http://xmpalantir.wu.ac.at/cransubmit/
dir <- "~/Seafile/R"
tools::check_packages_in_dir(dir,reverse = list())
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_create_job}
\alias{iot_create_job}
\title{Creates a job}
\usage{
iot_create_job(jobId, targets, documentSource, document, description,
presignedUrlConfig, targetSelection, jobExecutionsRolloutConfig,
abortConfig... | /cran/paws.internet.of.things/man/iot_create_job.Rd | permissive | peoplecure/paws | R | false | true | 3,224 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_create_job}
\alias{iot_create_job}
\title{Creates a job}
\usage{
iot_create_job(jobId, targets, documentSource, document, description,
presignedUrlConfig, targetSelection, jobExecutionsRolloutConfig,
abortConfig... |
# Create data directory if not exist
if(!file.exists("data")){
dir.create("data")
}
#download, save, and extract the data file
if (!file.exists("./data/household_power_consumption.txt")) {
fileUrl ="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUr... | /plot4.R | no_license | mesbah/ExData_Plotting1 | R | false | false | 2,401 | r | # Create data directory if not exist
if(!file.exists("data")){
dir.create("data")
}
#download, save, and extract the data file
if (!file.exists("./data/household_power_consumption.txt")) {
fileUrl ="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comprehend_operations.R
\name{comprehend_start_targeted_sentiment_detection_job}
\alias{comprehend_start_targeted_sentiment_detection_job}
\title{Starts an asynchronous targeted sentiment detection job for a collection
of documents}
\usage{
c... | /cran/paws.machine.learning/man/comprehend_start_targeted_sentiment_detection_job.Rd | permissive | paws-r/paws | R | false | true | 2,330 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comprehend_operations.R
\name{comprehend_start_targeted_sentiment_detection_job}
\alias{comprehend_start_targeted_sentiment_detection_job}
\title{Starts an asynchronous targeted sentiment detection job for a collection
of documents}
\usage{
c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GSE8671.R
\docType{data}
\name{GSE8671}
\alias{GSE8671}
\title{GSE8671}
\format{A Summarized Experiment object with 12482 genes and 64 samples (32 cases and 32 controls).
The column outcome in the colData corresponds to the outcome that was u... | /man/GSE8671.Rd | no_license | szymczak-lab/DataPathwayGuidedRF | R | false | true | 887 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GSE8671.R
\docType{data}
\name{GSE8671}
\alias{GSE8671}
\title{GSE8671}
\format{A Summarized Experiment object with 12482 genes and 64 samples (32 cases and 32 controls).
The column outcome in the colData corresponds to the outcome that was u... |
\name{Cluster_Example_3}
\docType{data}
\alias{Cluster_Example_3}
\title{An image file}
\description{
This is an \code{Image} object obtained using \code{EBImage::readImage}.
}
\usage{data(Cluster_Example_3,package="i2d")}
\keyword{datasets}
| /man/Cluster_Example_3.Rd | no_license | XiaoyuLiang/i2d | R | false | false | 253 | rd | \name{Cluster_Example_3}
\docType{data}
\alias{Cluster_Example_3}
\title{An image file}
\description{
This is an \code{Image} object obtained using \code{EBImage::readImage}.
}
\usage{data(Cluster_Example_3,package="i2d")}
\keyword{datasets}
|
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Vector logSumExpArma
#'
#' This function computes the sum(e^x) of a vector x without leaving log space
#'
#' @param x A numeric vector
NULL
#' Vector logSumExp
#'
#' This funct... | /R/RcppExports.R | no_license | ndukler/epiAllele | R | false | false | 3,281 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Vector logSumExpArma
#'
#' This function computes the sum(e^x) of a vector x without leaving log space
#'
#' @param x A numeric vector
NULL
#' Vector logSumExp
#'
#' This funct... |
library(shiny)
library(shinyBS)
library(leaflet)
load("appData.RData")
| /jfsp-archive/other_example_apps/older_app_versions/jfsp-v02/global.R | no_license | ua-snap/snap-r-tools | R | false | false | 72 | r | library(shiny)
library(shinyBS)
library(leaflet)
load("appData.RData")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmi_smallfunctions.R
\name{extract_varnames}
\alias{extract_varnames}
\title{Function to extract the different elements of a formula}
\usage{
extract_varnames(
model_formula = NULL,
constant_variables,
variable_names_in_data = colnames(... | /man/extract_varnames.Rd | no_license | cran/hmi | R | false | true | 1,421 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmi_smallfunctions.R
\name{extract_varnames}
\alias{extract_varnames}
\title{Function to extract the different elements of a formula}
\usage{
extract_varnames(
model_formula = NULL,
constant_variables,
variable_names_in_data = colnames(... |
\name{layerplotargs}
\alias{layerplotargs}
\alias{layerplotargs<-}
\title{
Extract or Replace the Plot Arguments of a Layered Object
}
\description{
Extracts or replaces the plot arguments of a layered object.
}
\usage{
layerplotargs(L)
layerplotargs(L) <- value
}
\arguments{
\item{L}{
An object of class \co... | /man/layerplotargs.Rd | no_license | rubak/spatstat | R | false | false | 1,742 | rd | \name{layerplotargs}
\alias{layerplotargs}
\alias{layerplotargs<-}
\title{
Extract or Replace the Plot Arguments of a Layered Object
}
\description{
Extracts or replaces the plot arguments of a layered object.
}
\usage{
layerplotargs(L)
layerplotargs(L) <- value
}
\arguments{
\item{L}{
An object of class \co... |
##載入套件
library(rvest)
##一開始到綜藝大熱門的頁面使用過去學的方法爬,但是都跑不了,也不知道為什麼
##推測是youtube本身的限制,就像FB、TWITTER那樣
##花了很多時間研究都還是沒辦法,在網路上找到的大部分方也也都是用Python
##正當開始研究如何用Python爬時,看到一篇python的教學是從youtube的搜尋頁面上搜尋然後爬下來
##就改用R試試看這個方法,結果竟然可以,=
##於是用FOR迴圈開始搜尋爬,因為有些日子是重播加上六日沒有播,就分開一個月一個月處理
##不過這也造成一個悲劇,爬幾個月後就會被YOUTUBE擋下來,說流量異常,然後就不能爬了
##換了三個IP才爬完XD
... | /final/youtubeview.R | no_license | nalol831123/R | R | false | false | 11,136 | r | ##載入套件
library(rvest)
##一開始到綜藝大熱門的頁面使用過去學的方法爬,但是都跑不了,也不知道為什麼
##推測是youtube本身的限制,就像FB、TWITTER那樣
##花了很多時間研究都還是沒辦法,在網路上找到的大部分方也也都是用Python
##正當開始研究如何用Python爬時,看到一篇python的教學是從youtube的搜尋頁面上搜尋然後爬下來
##就改用R試試看這個方法,結果竟然可以,=
##於是用FOR迴圈開始搜尋爬,因為有些日子是重播加上六日沒有播,就分開一個月一個月處理
##不過這也造成一個悲劇,爬幾個月後就會被YOUTUBE擋下來,說流量異常,然後就不能爬了
##換了三個IP才爬完XD
... |
#Script for HTML - oppdatering av nettsida
#første jobb er å konvertere til html
#http://stackoverflow.com/questions/17748566/how-can-i-turn-an-r-data-frame-into-a-simple-unstyled-html-table
#pakker
library(dplyr)
library(xtable)
#datainnlesning
df_2016 <- read.csv("~/Indikatorprosjektet/Indikatorer og datagrunnlag/... | /scripts/tabeller_til_HTML.R | no_license | gardenberg/imdikator-munch | R | false | false | 3,038 | r | #Script for HTML - oppdatering av nettsida
#første jobb er å konvertere til html
#http://stackoverflow.com/questions/17748566/how-can-i-turn-an-r-data-frame-into-a-simple-unstyled-html-table
#pakker
library(dplyr)
library(xtable)
#datainnlesning
df_2016 <- read.csv("~/Indikatorprosjektet/Indikatorer og datagrunnlag/... |
library(dplyr)
library(readr)
setwd("~/Desktop/world-development-indicators-2")
indicators <- read_csv("Indicators.csv")
#The dataset includes regional data, which is not of interest here since we're curious about specific countries
not_countries <- list("Arab World", "Caribbean small states", "Central Europe and th... | /indicators.R | no_license | bkossmann/BDB | R | false | false | 3,964 | r | library(dplyr)
library(readr)
setwd("~/Desktop/world-development-indicators-2")
indicators <- read_csv("Indicators.csv")
#The dataset includes regional data, which is not of interest here since we're curious about specific countries
not_countries <- list("Arab World", "Caribbean small states", "Central Europe and th... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 18114
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 18114
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/ltl2aig-comp/load_full_2_comp2_REAL.unsat.qdim... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/ltl2aig-comp/load_full_2_comp2_REAL.unsat/load_full_2_comp2_REAL.unsat.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 664 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 18114
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 18114
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/ltl2aig-comp/load_full_2_comp2_REAL.unsat.qdim... |
#' 71996 Water Use, Secondary (Codes)
#'
#' A table containing the USGS Water Use, Secondary (Codes) parameter codes.
#'
#' @format A data frame with 131 rows and 3 variables:
#' \describe{
#' \item{Parameter Code}{USGS Parameter Code}
#' \item{Fixed Value}{Fixed Value}
#' \item{Fixed Text}{Fixed Text}
#' }
#'
#'
#' @r... | /R/pmcode_71996.R | permissive | cran/ie2miscdata | R | false | false | 560 | r | #' 71996 Water Use, Secondary (Codes)
#'
#' A table containing the USGS Water Use, Secondary (Codes) parameter codes.
#'
#' @format A data frame with 131 rows and 3 variables:
#' \describe{
#' \item{Parameter Code}{USGS Parameter Code}
#' \item{Fixed Value}{Fixed Value}
#' \item{Fixed Text}{Fixed Text}
#' }
#'
#'
#' @r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_get_behavior_model_training_summaries}
\alias{iot_get_behavior_model_training_summaries}
\title{Returns a Device Defender's ML Detect Security Profile training model's
status}
\usage{
iot_get_behavior_model_training... | /cran/paws.internet.of.things/man/iot_get_behavior_model_training_summaries.Rd | permissive | paws-r/paws | R | false | true | 1,341 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_get_behavior_model_training_summaries}
\alias{iot_get_behavior_model_training_summaries}
\title{Returns a Device Defender's ML Detect Security Profile training model's
status}
\usage{
iot_get_behavior_model_training... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qpcr_analyser.R
\docType{methods}
\name{qpcr_analyser}
\alias{qpcr_analyser}
\alias{qpcr_analyser-methods}
\alias{qpcr_analyser,adpcr-method}
\alias{qpcr_analyser,data.frame-method}
\alias{qpcr_analyser,modlist-method}
\title{qPCR Analyser}
\... | /man/qpcr_analyser.Rd | no_license | michbur/dpcR | R | false | true | 4,823 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qpcr_analyser.R
\docType{methods}
\name{qpcr_analyser}
\alias{qpcr_analyser}
\alias{qpcr_analyser-methods}
\alias{qpcr_analyser,adpcr-method}
\alias{qpcr_analyser,data.frame-method}
\alias{qpcr_analyser,modlist-method}
\title{qPCR Analyser}
\... |
utils::globalVariables(c('public','support','value'))
| /R/globals.R | permissive | adsoncostanzifilho/CSGo | R | false | false | 54 | r | utils::globalVariables(c('public','support','value'))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PropEdge2D.R
\name{PEdom.num}
\alias{PEdom.num}
\title{The domination number of Proportional Edge Proximity Catch Digraph
(PE-PCD) - multiple triangle case}
\usage{
PEdom.num(Xp, Yp, r, M = c(1, 1, 1))
}
\arguments{
\item{Xp}{A set of 2D poin... | /man/PEdom.num.Rd | no_license | elvanceyhan/pcds | R | false | true | 3,536 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PropEdge2D.R
\name{PEdom.num}
\alias{PEdom.num}
\title{The domination number of Proportional Edge Proximity Catch Digraph
(PE-PCD) - multiple triangle case}
\usage{
PEdom.num(Xp, Yp, r, M = c(1, 1, 1))
}
\arguments{
\item{Xp}{A set of 2D poin... |
require(ggplot2)
require(tidyr)
require(dplyr)
early <- read.csv("bacteria_order_april_early.csv")
head(early)
early <- subset(early, select=-c(X, total))
head(early)
early_filt <- subset(early, rel_abund >=1)
head(early_filt)
early$Taxonomy<-ifelse(early$rel_abund <= 1, "other", early$Taxonomy)
early <- subset(ear... | /Filtration_Fig1_stackbar.R | no_license | lnmquigley/visualizations_JGI_GrovesCreek | R | false | false | 2,400 | r | require(ggplot2)
require(tidyr)
require(dplyr)
early <- read.csv("bacteria_order_april_early.csv")
head(early)
early <- subset(early, select=-c(X, total))
head(early)
early_filt <- subset(early, rel_abund >=1)
head(early_filt)
early$Taxonomy<-ifelse(early$rel_abund <= 1, "other", early$Taxonomy)
early <- subset(ear... |
plot1 <- function(){
#read the entire data
fileIn <- "C:\\Users\\monicabm\\Documents\\machine_learning_class\\data_science\\data\\household_power_consumption.txt"
tableAll <- read.csv(fileIn, header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
... | /plot1.R | no_license | monicabm/ExData_Plotting1 | R | false | false | 881 | r | plot1 <- function(){
#read the entire data
fileIn <- "C:\\Users\\monicabm\\Documents\\machine_learning_class\\data_science\\data\\household_power_consumption.txt"
tableAll <- read.csv(fileIn, header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
... |
# Verifica si se requiere instalar los paquetes ----------------------
if(!require("DT")) install.packages("DT")
if(!require("shiny")) install.packages("shiny")
if(!require("leaflet")) install.packages("leaflet")
if(!require("tidyverse")) install.packages("tidyverse")
if(!require("geosphere")) install.packages("geosph... | /proyectos/RespuestaDesastre/equipo_JMM/shiny/global.R | no_license | mhnk77/Estadistica-Computacional-fall2021 | R | false | false | 2,774 | r | # Verifica si se requiere instalar los paquetes ----------------------
if(!require("DT")) install.packages("DT")
if(!require("shiny")) install.packages("shiny")
if(!require("leaflet")) install.packages("leaflet")
if(!require("tidyverse")) install.packages("tidyverse")
if(!require("geosphere")) install.packages("geosph... |
library(data.table)
data("MOD13A1")
## test common used data
dt <- tidy_MOD13.gee(MOD13A1$dt)
st <- MOD13A1$st
sitename <- dt$site[1]
d <- dt[site == sitename, ] # get the first site data
sp <- st[site == sitename, ] # station point
# global parameter
IsPlot = T
print = F
nptperyear = 23
ypeak_min = 0.05
... | /tests/testthat/helper_MOD13A1.R | permissive | hgbzzw/phenofit | R | false | false | 516 | r | library(data.table)
data("MOD13A1")
## test common used data
dt <- tidy_MOD13.gee(MOD13A1$dt)
st <- MOD13A1$st
sitename <- dt$site[1]
d <- dt[site == sitename, ] # get the first site data
sp <- st[site == sitename, ] # station point
# global parameter
IsPlot = T
print = F
nptperyear = 23
ypeak_min = 0.05
... |
#' Classification statistics and table
#'
#' Produces a classification table and statistics given a binary response model.
#' @param model The regression model that was stored prior
#' @param dep.var The observed dependent variable (with data frame as prefix, "df$dep.var")
#' @param prob_cut cut-off point at which... | /R/estatclass.R | no_license | nader-hotait/estatclass | R | false | false | 6,292 | r | #' Classification statistics and table
#'
#' Produces a classification table and statistics given a binary response model.
#' @param model The regression model that was stored prior
#' @param dep.var The observed dependent variable (with data frame as prefix, "df$dep.var")
#' @param prob_cut cut-off point at which... |
# @file MethodEvaluation.R
#
# Copyright 2017 Observational Health Data Sciences and Informatics
#
# This file is part of MethodEvaluation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Licens... | /R/MethodEvaluation.R | permissive | solie/MethodEvaluation | R | false | false | 4,251 | r | # @file MethodEvaluation.R
#
# Copyright 2017 Observational Health Data Sciences and Informatics
#
# This file is part of MethodEvaluation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Licens... |
# 法学セミナー「法律家のための実証分析入門」第23回 Rソースコード
# (C) 2013 MORITA Hatsuru
rm(list=ls())
library(foreign)
library(sampleSelection)
mroz <- read.dta("../csv/mroz.dta")
result.ols <- lm(lwage~educ+exper+expersq, data=mroz)
result.heckit <- heckit(inlf~educ+exper+expersq+nwifeinc+age+kidslt6+kidsge6,
lwage~educ+exper+expersq, m... | /R/IntEmpR23.r | no_license | Prunus1350/Empirical_Analysis | R | false | false | 591 | r | # 法学セミナー「法律家のための実証分析入門」第23回 Rソースコード
# (C) 2013 MORITA Hatsuru
rm(list=ls())
library(foreign)
library(sampleSelection)
mroz <- read.dta("../csv/mroz.dta")
result.ols <- lm(lwage~educ+exper+expersq, data=mroz)
result.heckit <- heckit(inlf~educ+exper+expersq+nwifeinc+age+kidslt6+kidsge6,
lwage~educ+exper+expersq, m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cgBase.R
\name{cgBase}
\alias{cgBase}
\title{create CGDS object}
\usage{
cgBase(address = "https://www.cbioportal.org/")
}
\arguments{
\item{address}{string, web address}
}
\value{
cdgs object, and prints the first 2 columns of the cdgs objec... | /man/cgBase.Rd | no_license | ilwookkim/cgNetwork | R | false | true | 495 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cgBase.R
\name{cgBase}
\alias{cgBase}
\title{create CGDS object}
\usage{
cgBase(address = "https://www.cbioportal.org/")
}
\arguments{
\item{address}{string, web address}
}
\value{
cdgs object, and prints the first 2 columns of the cdgs objec... |
# Quick R script to
# Input: h, d
# Output: Exact p-value, write bounds, write correlation matrix ('newbounds/newsig.txt')
# Correlation matrix is random ~0.3
# Call it with Rscript test_iSample.R H D
library(mvtnorm)
# Inputs
args <- commandArgs(trailingOnly=TRUE)
h <- as.numeric(args[1])
d <- as.numeric(args[2])... | /test_iSample.R | no_license | ryanrsun/GOF_pvalue_iSample | R | false | false | 1,163 | r | # Quick R script to
# Input: h, d
# Output: Exact p-value, write bounds, write correlation matrix ('newbounds/newsig.txt')
# Correlation matrix is random ~0.3
# Call it with Rscript test_iSample.R H D
library(mvtnorm)
# Inputs
args <- commandArgs(trailingOnly=TRUE)
h <- as.numeric(args[1])
d <- as.numeric(args[2])... |
#download file
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, destfile = "dataset.zip", method = "curl")
unzip("dataset.zip")
#load data
data <- read.table("household_power_consumption.txt",header=TRUE, sep = ";")
#convert date and time
data$D... | /plot2.r | no_license | slam17/course4_week1 | R | false | false | 1,084 | r | #download file
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, destfile = "dataset.zip", method = "curl")
unzip("dataset.zip")
#load data
data <- read.table("household_power_consumption.txt",header=TRUE, sep = ";")
#convert date and time
data$D... |
rm(list = ls())
# Set working directory
dir <- dirname(rstudioapi::getActiveDocumentContext()$path)
setwd(dir);
# Load required packages
require(tidyverse)
# Load the data
reserving_daily <- readRDS("data/reserving_data_daily.rds")
reserving_yearly <- readRDS("data/reserving_data_yearly.rds")
# Inspect the data
he... | /scripts/day2/day2_reserving_complete.R | no_license | katrienantonio/workshop-loss-reserv-fraud | R | false | false | 12,663 | r | rm(list = ls())
# Set working directory
dir <- dirname(rstudioapi::getActiveDocumentContext()$path)
setwd(dir);
# Load required packages
require(tidyverse)
# Load the data
reserving_daily <- readRDS("data/reserving_data_daily.rds")
reserving_yearly <- readRDS("data/reserving_data_yearly.rds")
# Inspect the data
he... |
\name{laest}
\alias{laest}
\title{An example function from the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R}
\description{An example function from Chapter 2 of the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms... | /man/laest.Rd | no_license | 42n4/dmr.stats | R | false | false | 811 | rd | \name{laest}
\alias{laest}
\title{An example function from the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R}
\description{An example function from Chapter 2 of the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms... |
with(ae88cdfeda52d4c65889e358cb0183765, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as... | /80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/aadAqhrZJcCBr.R | no_license | ayanmanna8/test | R | false | false | 850 | r | with(ae88cdfeda52d4c65889e358cb0183765, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as... |
library(patentsview)
library(tidyverse)
library(shiny)
library(data.table)
# query of patent database
project_query <- qry_funs$and(
qry_funs$gte(patent_date = "2016-01-01"),
qry_funs$lte(patent_date = "2016-03-31")
)
# original dataframe
project_result = search_pv(
query = project_query,
fields = c("patent_... | /app.r | no_license | cbarlow6/shiny-team-project | R | false | false | 8,423 | r | library(patentsview)
library(tidyverse)
library(shiny)
library(data.table)
# query of patent database
project_query <- qry_funs$and(
qry_funs$gte(patent_date = "2016-01-01"),
qry_funs$lte(patent_date = "2016-03-31")
)
# original dataframe
project_result = search_pv(
query = project_query,
fields = c("patent_... |
#' Cancels a SLURM job
#' @param x character vector - the SLURM ids
cancelJob <- function(x) {
x <- as.character(x)
if(length(x) > 1)
x <- paste0(x, collapse = " ")
systemSubmit(paste("scancel", x), wait = rSubmitterOpts$TIME_WAIT_FAILED_CMD, ignore.stdout = T)
}
| /R/cancelJob.R | no_license | pablo-gar/rSubmitter | R | false | false | 296 | r | #' Cancels a SLURM job
#' @param x character vector - the SLURM ids
cancelJob <- function(x) {
x <- as.character(x)
if(length(x) > 1)
x <- paste0(x, collapse = " ")
systemSubmit(paste("scancel", x), wait = rSubmitterOpts$TIME_WAIT_FAILED_CMD, ignore.stdout = T)
}
|
library(tidyverse)
library(glue)
library(cowplot)
theme_set(theme_cowplot(14))
vals_traits <- c("bmi", "weight", "waist", "hip", "height", "whr")
# vals_traits <- "height"
ntop1 <- 500
ntop2 <- 1000
vals_chr <- 1:22
vals_est <- c("mean", "median")
vals_filt <- paste0("f", 0:3)
thr2 <- c(1e-3, 1e-5, 5e-8)[3]
thr1_lm... | /scripts/extra/07-fig-mult.R | permissive | variani/paper-neff | R | false | false | 3,613 | r | library(tidyverse)
library(glue)
library(cowplot)
theme_set(theme_cowplot(14))
vals_traits <- c("bmi", "weight", "waist", "hip", "height", "whr")
# vals_traits <- "height"
ntop1 <- 500
ntop2 <- 1000
vals_chr <- 1:22
vals_est <- c("mean", "median")
vals_filt <- paste0("f", 0:3)
thr2 <- c(1e-3, 1e-5, 5e-8)[3]
thr1_lm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/regressionNetworkViz.R
\name{regressionNetworkViz}
\alias{regressionNetworkViz}
\title{Visualize a regression result by a d3 network visualization.}
\usage{
regressionNetworkViz(mylm, sigthresh = 0.05, whichviz = "Sankey",
outfile = "temp.h... | /man/regressionNetworkViz.Rd | permissive | alainlompo/ANTsR | R | false | true | 1,369 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/regressionNetworkViz.R
\name{regressionNetworkViz}
\alias{regressionNetworkViz}
\title{Visualize a regression result by a d3 network visualization.}
\usage{
regressionNetworkViz(mylm, sigthresh = 0.05, whichviz = "Sankey",
outfile = "temp.h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sanapiwrapper.R
\name{availableSince}
\alias{availableSince}
\title{Get the earliest date for which the Santiment metric is available.}
\usage{
availableSince(metric, slug)
}
\arguments{
\item{metric}{metric}
\item{slug}{project}
}
\value{
e... | /man/availableSince.Rd | no_license | josefansinger/sanapiwrapper | R | false | true | 485 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sanapiwrapper.R
\name{availableSince}
\alias{availableSince}
\title{Get the earliest date for which the Santiment metric is available.}
\usage{
availableSince(metric, slug)
}
\arguments{
\item{metric}{metric}
\item{slug}{project}
}
\value{
e... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170334e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613109943-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 257 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170334e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
mydata<-read.csv("household_power_consumption.txt", header=TRUE, sep=";")
data_f<-mydata[which(mydata$Date=="1/2/2007" | mydata$Date=="2/2/2007") ,]
par(mar=c(4,4,1,1))
data_f$datetime<-paste(data_f$Date, data_f$Time)
data_f$datetime<-strptime(data_f$datetime,"%d/%m/%Y %H:%M:%S")
plot(data_f$datetime, as.numeric(as.ch... | /plot2.R | no_license | linmapitt/Explore_Data_Project_1 | R | false | false | 458 | r | mydata<-read.csv("household_power_consumption.txt", header=TRUE, sep=";")
data_f<-mydata[which(mydata$Date=="1/2/2007" | mydata$Date=="2/2/2007") ,]
par(mar=c(4,4,1,1))
data_f$datetime<-paste(data_f$Date, data_f$Time)
data_f$datetime<-strptime(data_f$datetime,"%d/%m/%Y %H:%M:%S")
plot(data_f$datetime, as.numeric(as.ch... |
library(eaf)
### Name: eaf-package
### Title: Plots of the Empirical Attainment Function
### Aliases: eaf-package _PACKAGE eaf
### Keywords: graphs package
### ** Examples
data(gcp2x2)
tabucol<-subset(gcp2x2, alg!="TSinN1")
tabucol$alg<-tabucol$alg[drop=TRUE]
eafplot(time+best~run,data=tabucol,subset=tabucol$inst==... | /data/genthat_extracted_code/eaf/examples/eaf-package.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 910 | r | library(eaf)
### Name: eaf-package
### Title: Plots of the Empirical Attainment Function
### Aliases: eaf-package _PACKAGE eaf
### Keywords: graphs package
### ** Examples
data(gcp2x2)
tabucol<-subset(gcp2x2, alg!="TSinN1")
tabucol$alg<-tabucol$alg[drop=TRUE]
eafplot(time+best~run,data=tabucol,subset=tabucol$inst==... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.