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 |
|---|---|---|---|---|---|---|---|---|---|
if ( requireNamespace("tinytest", quietly=TRUE) ){
tinytest::test_package("netplot")
}
| /tests/tinytest.R | permissive | USCCANA/netplot | R | false | false | 91 | r |
if ( requireNamespace("tinytest", quietly=TRUE) ){
tinytest::test_package("netplot")
}
|
#' @title Differential Gene Expression Analysis
#' @description
#' Detect differentially expressed genes (DEGs) in a standard \code{ExpressionSet} object.
#' @param ExpressionSet a standard PhyloExpressionSet or DivergenceExpressionSet object.
#' @param nrep either a numeric value specifying the constant number of rep... | /R/DiffGenes.R | no_license | inambioinfo/myTAI | R | false | false | 22,501 | r | #' @title Differential Gene Expression Analysis
#' @description
#' Detect differentially expressed genes (DEGs) in a standard \code{ExpressionSet} object.
#' @param ExpressionSet a standard PhyloExpressionSet or DivergenceExpressionSet object.
#' @param nrep either a numeric value specifying the constant number of rep... |
/Lost/random.r | no_license | felipemaia02/IA_R | R | false | false | 1,443 | r | ||
\name{EBelasticNet.GaussianCV}
\alias{EBelasticNet.GaussianCV}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Cross Validation (CV) Function to Determine Hyperparameters of
the EBEN Algorithm for Gaussian Model}
\description{Hyperparameter controls degree of shrinkage, and is obtained v... | /man/EBelasticNet.GaussianCV.Rd | no_license | 13bzhang/EBEN | R | false | false | 1,870 | rd | \name{EBelasticNet.GaussianCV}
\alias{EBelasticNet.GaussianCV}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Cross Validation (CV) Function to Determine Hyperparameters of
the EBEN Algorithm for Gaussian Model}
\description{Hyperparameter controls degree of shrinkage, and is obtained v... |
stop()
rm(list=ls(all=T))
gc(reset=T)
library(data.table)
library(compiler)
N <- 1.5e9 # 3e9
Wild <- cmpfun(function(x){
10 * sin(0.3 * x) * sin(1.3 * x^2) +
0.00001 * x^4 + 0.2 * x + 80
})
# plot(Wild, -50, 50, n=1000)
out <- data.table(
x=seq(-50, 50, length=N)
)
gc(reset=T)
out[, y := 10 * sin(0.3 * x)]
g... | /data-science-scripts/zach/large_dataset.R | no_license | mcohenmcohen/DataRobot | R | false | false | 1,020 | r | stop()
rm(list=ls(all=T))
gc(reset=T)
library(data.table)
library(compiler)
N <- 1.5e9 # 3e9
Wild <- cmpfun(function(x){
10 * sin(0.3 * x) * sin(1.3 * x^2) +
0.00001 * x^4 + 0.2 * x + 80
})
# plot(Wild, -50, 50, n=1000)
out <- data.table(
x=seq(-50, 50, length=N)
)
gc(reset=T)
out[, y := 10 * sin(0.3 * x)]
g... |
library(pycno)
### Name: Pycnophylactic Interpolation
### Title: Perform Tobler's pycnophylactic algorithm.
### Aliases: pycno
### Keywords: smoothing spatial
### ** Examples
# Read in data for North Carolina as a SpatialPolygonsDataFrame
nc.sids <- readShapeSpatial(system.file("shapes/sids.shp", package="maptools"... | /data/genthat_extracted_code/pycno/examples/pycno.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 891 | r | library(pycno)
### Name: Pycnophylactic Interpolation
### Title: Perform Tobler's pycnophylactic algorithm.
### Aliases: pycno
### Keywords: smoothing spatial
### ** Examples
# Read in data for North Carolina as a SpatialPolygonsDataFrame
nc.sids <- readShapeSpatial(system.file("shapes/sids.shp", package="maptools"... |
#' Format conversion
#'
#' @title convert to graph format
#' @param mapping the mapping which convert to igraph object
#' @return igraph object
#' @importFrom AnnotationDbi toTable
#' @importFrom GO.db GOBPPARENTS
#' @author Li Zhaohong && Wu Zefeng
#' @export
#' @examples
#' library(GO.db)
#' GO2igraph(mapping = GOB... | /R/utilities.R | no_license | ShadowFiendSF/GSminer | R | false | false | 3,614 | r | #' Format conversion
#'
#' @title convert to graph format
#' @param mapping the mapping which convert to igraph object
#' @return igraph object
#' @importFrom AnnotationDbi toTable
#' @importFrom GO.db GOBPPARENTS
#' @author Li Zhaohong && Wu Zefeng
#' @export
#' @examples
#' library(GO.db)
#' GO2igraph(mapping = GOB... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_feature_transformation.R
\name{ft_count_vectorizer}
\alias{ft_count_vectorizer}
\title{Feature Tranformation -- CountVectorizer}
\usage{
ft_count_vectorizer(x, input.col = NULL, output.col = NULL, min.df = NULL,
min.tf = NULL, vocab.size... | /man/ft_count_vectorizer.Rd | permissive | sparkychen/sparklyr | R | false | true | 2,200 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_feature_transformation.R
\name{ft_count_vectorizer}
\alias{ft_count_vectorizer}
\title{Feature Tranformation -- CountVectorizer}
\usage{
ft_count_vectorizer(x, input.col = NULL, output.col = NULL, min.df = NULL,
min.tf = NULL, vocab.size... |
06c73be9ad56e0ab89c5d3509a893d23 trueque_nxquery_1344.qdimacs 71 89 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/trueque_nxquery_1344/trueque_nxquery_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 67 | r | 06c73be9ad56e0ab89c5d3509a893d23 trueque_nxquery_1344.qdimacs 71 89 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getParams.R
\name{getAllGroup}
\alias{getAllGroup}
\title{Get all possible values from GROUP field}
\usage{
getAllGroup(key)
}
\arguments{
\item{key:}{your USDA api key}
}
\description{
Get all possible values from GROUP field
}
\examples{
x ... | /man/getAllGroup.Rd | permissive | jcarlsoniv/tidyUSDA | R | false | true | 424 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getParams.R
\name{getAllGroup}
\alias{getAllGroup}
\title{Get all possible values from GROUP field}
\usage{
getAllGroup(key)
}
\arguments{
\item{key:}{your USDA api key}
}
\description{
Get all possible values from GROUP field
}
\examples{
x ... |
hr=read.csv('C:/Users/Administrator/Documents/HR Analytics.csv')
View(hr)
#job roles wise-
#total no of employees
#average monyhly income
#no of females
#no of males
#max monthly income
#min monthly income
#1.total no of employees accord to their jobroles
hr%>%group_by(JobRole)%>%summarise(no_of_employees... | /hr practice.R | no_license | HarzeetSingh/HR-analytics | R | false | false | 1,051 | r | hr=read.csv('C:/Users/Administrator/Documents/HR Analytics.csv')
View(hr)
#job roles wise-
#total no of employees
#average monyhly income
#no of females
#no of males
#max monthly income
#min monthly income
#1.total no of employees accord to their jobroles
hr%>%group_by(JobRole)%>%summarise(no_of_employees... |
library(SoilR)
### Name: bacwaveModel
### Title: Implementation of the microbial model Bacwave (bacterial waves)
### Aliases: bacwaveModel
### ** Examples
hours=seq(0,800,0.1)
#Run the model with default parameter values
bcmodel=bacwaveModel(t=hours)
Cpools=getC(bcmodel)
#Time solution
matplot(hours,Cpools,typ... | /data/genthat_extracted_code/SoilR/examples/109.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 684 | r | library(SoilR)
### Name: bacwaveModel
### Title: Implementation of the microbial model Bacwave (bacterial waves)
### Aliases: bacwaveModel
### ** Examples
hours=seq(0,800,0.1)
#Run the model with default parameter values
bcmodel=bacwaveModel(t=hours)
Cpools=getC(bcmodel)
#Time solution
matplot(hours,Cpools,typ... |
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044490L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... | /dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615939461-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 826 | r | testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044490L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... |
install.packages("XML")
install.packages("wordcloud")
install.packages("RColorBrewer")
install.packages("NLP")
install.packages("tm")
library(XML)
library(wordcloud)
library(NLP)
mlkLocation <-URLencode("http://www.analytictech.com/mb021/mlk.htm")
doc.html<- htmlTreeParse(mlkLocation, useInternal=TRUE)
mlk <- unlist(... | /ProgrammingWorkshops/R/ws8_wordcloud.R | no_license | kho7/SDS | R | false | false | 1,378 | r |
install.packages("XML")
install.packages("wordcloud")
install.packages("RColorBrewer")
install.packages("NLP")
install.packages("tm")
library(XML)
library(wordcloud)
library(NLP)
mlkLocation <-URLencode("http://www.analytictech.com/mb021/mlk.htm")
doc.html<- htmlTreeParse(mlkLocation, useInternal=TRUE)
mlk <- unlist(... |
library(testthat)
library(bcbioSmallRna)
test_check("bcbioSmallRna")
| /tests/testthat.R | permissive | lpantano/bcbioSmallRna | R | false | false | 70 | r | library(testthat)
library(bcbioSmallRna)
test_check("bcbioSmallRna")
|
library("aroma.seq")
fullTest <- (Sys.getenv("_R_CHECK_FULL_") != "")
fullTest <- fullTest && require("qrqc")
# Setup (writable) local data directory structure
setupExampleData()
dataSet <- "TopHat-example"
organism <- "Lambda_phage"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Setup FASTQ set
# ... | /tests/FastqDataSet,reports,qrqc,future.R | no_license | HenrikBengtsson/aroma.seq | R | false | false | 673 | r | library("aroma.seq")
fullTest <- (Sys.getenv("_R_CHECK_FULL_") != "")
fullTest <- fullTest && require("qrqc")
# Setup (writable) local data directory structure
setupExampleData()
dataSet <- "TopHat-example"
organism <- "Lambda_phage"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Setup FASTQ set
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pinpoint_operations.R
\name{pinpoint_get_apns_voip_channel}
\alias{pinpoint_get_apns_voip_channel}
\title{Retrieves information about the status and settings of the APNs VoIP
channel for an application}
\usage{
pinpoint_get_apns_voip_channel(... | /cran/paws.customer.engagement/man/pinpoint_get_apns_voip_channel.Rd | permissive | TWarczak/paws | R | false | true | 1,199 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pinpoint_operations.R
\name{pinpoint_get_apns_voip_channel}
\alias{pinpoint_get_apns_voip_channel}
\title{Retrieves information about the status and settings of the APNs VoIP
channel for an application}
\usage{
pinpoint_get_apns_voip_channel(... |
### SET ROOT DIRECTORY
### SET ROOT DIRECTORY
library(dplyr)
library(ggplot2)
library(ggpubr)
load("R_out_C6/runsim_female_RR065_discadj_no1pres.RData")
str(res.multiple.treatment.periods)
res.list <- vector("list",5)
res.list[[1]] <- res.multiple.treatment.periods
res.list[[2]] <- res.multiple.treatment.periods.... | /Chapter 6/code/4 analysis and figures/p2 res_female_RR065_discadj_no1pres.R | no_license | alexpate30/AlexPate-PhD | R | false | false | 12,164 | r | ### SET ROOT DIRECTORY
### SET ROOT DIRECTORY
library(dplyr)
library(ggplot2)
library(ggpubr)
load("R_out_C6/runsim_female_RR065_discadj_no1pres.RData")
str(res.multiple.treatment.periods)
res.list <- vector("list",5)
res.list[[1]] <- res.multiple.treatment.periods
res.list[[2]] <- res.multiple.treatment.periods.... |
# Plot 3
powerDT2 <- data.table::fread(input = "household_power_consumption.txt",
na.strings = "?")
# powerDT1[, Global_active_power := lapply(.SD, as.numeric), .SDcols = c("Global_active_power")]
# Change Date format to POSIXct date capable of being filtered by time of the day
powerDT2[, ... | /Course4/plot3.R | no_license | prashubarry/datasciencecoursera | R | false | false | 981 | r | # Plot 3
powerDT2 <- data.table::fread(input = "household_power_consumption.txt",
na.strings = "?")
# powerDT1[, Global_active_power := lapply(.SD, as.numeric), .SDcols = c("Global_active_power")]
# Change Date format to POSIXct date capable of being filtered by time of the day
powerDT2[, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary-SVC_mle.R
\name{print.summary.SVC_mle}
\alias{print.summary.SVC_mle}
\title{Printing Method for \code{summary.SVC_mle}}
\usage{
\method{print}{summary.SVC_mle}(x, digits = max(3L, getOption("digits") - 3L), ...)
}
\arguments{
\item{x}... | /R-pkg/man/print.summary.SVC_mle.Rd | no_license | jakobdambon/varycoef | R | false | true | 625 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary-SVC_mle.R
\name{print.summary.SVC_mle}
\alias{print.summary.SVC_mle}
\title{Printing Method for \code{summary.SVC_mle}}
\usage{
\method{print}{summary.SVC_mle}(x, digits = max(3L, getOption("digits") - 3L), ...)
}
\arguments{
\item{x}... |
###
# script to produce the raw data for each species with iso country code.
###
library(dplyr)
#library(countrycode)
countryCodes <- read.csv("path to location of country code csv")
data <- read.csv("path to species occurence data")
dim(data)
names(data)
# generate a list of all unique Taxon
CWR <- unique(data$Taxo... | /src/extrasDc/developRawData.r | no_license | dcarver1/cwrSDM | R | false | false | 2,585 | r | ###
# script to produce the raw data for each species with iso country code.
###
library(dplyr)
#library(countrycode)
countryCodes <- read.csv("path to location of country code csv")
data <- read.csv("path to species occurence data")
dim(data)
names(data)
# generate a list of all unique Taxon
CWR <- unique(data$Taxo... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% SnpPlm.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{SnpPlm}
\docType{class}
\al... | /man/SnpPlm.Rd | no_license | HenrikBengtsson/aroma.affymetrix | R | false | false | 4,495 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% SnpPlm.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{SnpPlm}
\docType{class}
\al... |
# create for flexdashboard
create_theme(
theme = "cosmo",
bs_vars_navbar(
default_bg = "#3f2d54",
default_color = "#FFFFFF",
default_link_color = "#FFFFFF",
default_link_active_color = "#FFFFFF",
default_link_hover_color = "#A4A4A4"
),
bs_vars_color(
gray_base = "#354e5c",
brand_p... | /inst/examples/flexdashboard/create-theme-flex.R | no_license | pythseq/fresh | R | false | false | 889 | r |
# create for flexdashboard
create_theme(
theme = "cosmo",
bs_vars_navbar(
default_bg = "#3f2d54",
default_color = "#FFFFFF",
default_link_color = "#FFFFFF",
default_link_active_color = "#FFFFFF",
default_link_hover_color = "#A4A4A4"
),
bs_vars_color(
gray_base = "#354e5c",
brand_p... |
Args=commandArgs()
dir_code=Args[6]
source(paste0(dir_code,"/write.table0.R"))
source(paste0(dir_code,"/extract_feature_from_FftAndBed.R"))
dir_fftwig=Args[7]
dir_candidatesites=Args[8]
prefix=Args[9]
chr=Args[10]
cat("fft wig file is from this directory: ",dir_fftwig,"\n")
cat("extracting fft 1-50 for all sites i... | /site_by_chrTofft1to50_by_chr.R | no_license | Akigaze/CISD | R | false | false | 779 | r |
Args=commandArgs()
dir_code=Args[6]
source(paste0(dir_code,"/write.table0.R"))
source(paste0(dir_code,"/extract_feature_from_FftAndBed.R"))
dir_fftwig=Args[7]
dir_candidatesites=Args[8]
prefix=Args[9]
chr=Args[10]
cat("fft wig file is from this directory: ",dir_fftwig,"\n")
cat("extracting fft 1-50 for all sites i... |
library(dplyr)
#zipdata <- read.csv("data/flights.csv")
# zipdata <- read.csv("data/dane.csv", sep=";", col.names = c("From", "To", "Year", "Month", "Day", "Time", "Price", "From_latitude", "From_longitude",
# "To_latitude", "To_longitude", "name", "To_city",... | /demo_v6/global.R | no_license | amasend/mpsis_project | R | false | false | 898 | r | library(dplyr)
#zipdata <- read.csv("data/flights.csv")
# zipdata <- read.csv("data/dane.csv", sep=";", col.names = c("From", "To", "Year", "Month", "Day", "Time", "Price", "From_latitude", "From_longitude",
# "To_latitude", "To_longitude", "name", "To_city",... |
#Reshape AUSPRICER data
AR5 <- as.tibble(AR5R)
AR5 <- AR5 %>% gather(`2020`,`2030`,`2040`, `2050`, key = "year", value ="price")
AR5$year <- as.numeric(AR5$year)
AR5a <-qplot(year, price, data=AR5, geom = "line", color = ModelScenario) +
labs(x = "Year", y = bquote('2016 AUD/t'~CO[2]~'-e')) +
scale_x_continuo... | /R-test/AR5 code.R | no_license | rmm31/R-repository-test | R | false | false | 2,289 | r | #Reshape AUSPRICER data
AR5 <- as.tibble(AR5R)
AR5 <- AR5 %>% gather(`2020`,`2030`,`2040`, `2050`, key = "year", value ="price")
AR5$year <- as.numeric(AR5$year)
AR5a <-qplot(year, price, data=AR5, geom = "line", color = ModelScenario) +
labs(x = "Year", y = bquote('2016 AUD/t'~CO[2]~'-e')) +
scale_x_continuo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pystr_rsplit.R
\name{pystr_rsplit}
\alias{pystr_rsplit}
\title{Right split a string.}
\usage{
pystr_rsplit(str, sep = " ", maxsplit = nchar(str) - 1)
}
\arguments{
\item{str}{A character vector.}
\item{sep}{A character string.}
\item{maxspl... | /man/pystr_rsplit.Rd | no_license | ChrisMuir/pystr | R | false | true | 969 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pystr_rsplit.R
\name{pystr_rsplit}
\alias{pystr_rsplit}
\title{Right split a string.}
\usage{
pystr_rsplit(str, sep = " ", maxsplit = nchar(str) - 1)
}
\arguments{
\item{str}{A character vector.}
\item{sep}{A character string.}
\item{maxspl... |
{###############################################################################
# compose.R
# This file is part of the R package dostats.
#
# Copyright 2012 Andrew Redd
# Date: 6/1/2012
#
# DESCRIPTION
# ===========
# Composition of functions.
#
# LICENSE
# ========
# dostats is free software: you can red... | /R/compose.R | no_license | halpo/dostats | R | false | false | 2,410 | r | {###############################################################################
# compose.R
# This file is part of the R package dostats.
#
# Copyright 2012 Andrew Redd
# Date: 6/1/2012
#
# DESCRIPTION
# ===========
# Composition of functions.
#
# LICENSE
# ========
# dostats is free software: you can red... |
#####################################
# USJudgeRatings database (Lawyers' Ratings of State Judges in the US Superior Court)
# additional information on the dataset can be found here: https://stat.ethz.ch/R-manual/R-devel/library/datasets/html/USJudgeRatings.html
#
# aim: develop a weighted index of Judge's performanc... | /analysis/USJudges/R_files/WeightedIndex_USJudgesRatings.R | no_license | fabianbohnenberger/repo1 | R | false | false | 1,273 | r | #####################################
# USJudgeRatings database (Lawyers' Ratings of State Judges in the US Superior Court)
# additional information on the dataset can be found here: https://stat.ethz.ch/R-manual/R-devel/library/datasets/html/USJudgeRatings.html
#
# aim: develop a weighted index of Judge's performanc... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/Math.R
\docType{methods}
\name{Math2,hyperSpec-method}
\alias{Math}
\alias{Math,hyperSpec-method}
\alias{Math2}
\alias{Math2,hyperSpec-method}
\alias{abs,hyperSpec-method}
\alias{acos,hyperSpec-method}
\alias{acosh,hyperSpec-method}
\... | /man/Math.Rd | no_license | sfornasaro/hyperSpec | R | false | false | 2,557 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/Math.R
\docType{methods}
\name{Math2,hyperSpec-method}
\alias{Math}
\alias{Math,hyperSpec-method}
\alias{Math2}
\alias{Math2,hyperSpec-method}
\alias{abs,hyperSpec-method}
\alias{acos,hyperSpec-method}
\alias{acosh,hyperSpec-method}
\... |
####################################################
#### AUTHOR: Arnost Komarek ####
#### (2004) ####
#### ####
#### FILE: bayessurvreg1.checkStore.R ####
#### ####
##... | /R/bayessurvreg1.checkStore.R | no_license | cran/bayesSurv | R | false | false | 1,465 | r | ####################################################
#### AUTHOR: Arnost Komarek ####
#### (2004) ####
#### ####
#### FILE: bayessurvreg1.checkStore.R ####
#### ####
##... |
testlist <- list(A = structure(c(1.38999171171726e-309, 3.81575932257023e-236, 3.81571422914747e-236), .Dim = c(1L, 3L)), 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/1613126509-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 226 | r | testlist <- list(A = structure(c(1.38999171171726e-309, 3.81575932257023e-236, 3.81571422914747e-236), .Dim = c(1L, 3L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
#' group_by_resolution
#'
#' Groups data frame by resolution, orders by date
#' @param data -The dataset that you want to get the resolution grouping of
#' @param resolution -The resolution you want to group the data by
#'
group_by_resolution <- function(data, resolution){
require(dplyr)
grouped_data <-... | /R/group_by_resolution.R | no_license | Keegan-Evans/pitDataR | R | false | false | 399 | r | #' group_by_resolution
#'
#' Groups data frame by resolution, orders by date
#' @param data -The dataset that you want to get the resolution grouping of
#' @param resolution -The resolution you want to group the data by
#'
group_by_resolution <- function(data, resolution){
require(dplyr)
grouped_data <-... |
library(sqldf)
library(datasets)
#reading data
mySql <- "SELECT * from file WHERE Date = '1/2/2007' OR Date = '2/2/2007'"
myFile <- "household_power_consumption.txt"
myData <- read.csv2.sql(myFile,mySql, header=TRUE, sep=";", na.strings=c("?"))
#plot1
hist(myData$Global_active_power, xlab="Global Active Power (kilowa... | /plot1.R | no_license | amolsharma99/ExData_Plotting1 | R | false | false | 449 | r | library(sqldf)
library(datasets)
#reading data
mySql <- "SELECT * from file WHERE Date = '1/2/2007' OR Date = '2/2/2007'"
myFile <- "household_power_consumption.txt"
myData <- read.csv2.sql(myFile,mySql, header=TRUE, sep=";", na.strings=c("?"))
#plot1
hist(myData$Global_active_power, xlab="Global Active Power (kilowa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_load_balancer_metric_data}
\alias{lightsail_get_load_balancer_metric_data}
\title{Returns information about health metrics for your Lightsail load
balancer}
\usage{
lightsail_get_load_balancer_metric... | /paws/man/lightsail_get_load_balancer_metric_data.Rd | permissive | sanchezvivi/paws | R | false | true | 7,995 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_load_balancer_metric_data}
\alias{lightsail_get_load_balancer_metric_data}
\title{Returns information about health metrics for your Lightsail load
balancer}
\usage{
lightsail_get_load_balancer_metric... |
*
* **** ***** **** ***** *** **** ***** *** * *****
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * *** **** * * * **** *** * * ***
* * * * * * ... | /DEBTOR.RD | no_license | pingleware/apac-accounting-code | R | false | false | 4,681 | rd | *
* **** ***** **** ***** *** **** ***** *** * *****
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * *** **** * * * **** *** * * ***
* * * * * * ... |
#[export]
gammareg <- function(y, x, tol = 1e-07, maxiters = 100) {
mod <- Rfast::gammacon(y)
.Call(Rfast2_gamma_reg, Y = y, X = x, mod = mod, tol = tol, maxiters = maxiters)
}
#[export]
gammaregs <- function(y, x, tol = 1e-07, logged = FALSE, parallel = FALSE, maxiters = 100) {
.Call(Rfast2_gamma_regs, Y = y,... | /R/gamma_regression.R | no_license | happylearning423/Rfast2 | R | false | false | 400 | r | #[export]
gammareg <- function(y, x, tol = 1e-07, maxiters = 100) {
mod <- Rfast::gammacon(y)
.Call(Rfast2_gamma_reg, Y = y, X = x, mod = mod, tol = tol, maxiters = maxiters)
}
#[export]
gammaregs <- function(y, x, tol = 1e-07, logged = FALSE, parallel = FALSE, maxiters = 100) {
.Call(Rfast2_gamma_regs, Y = y,... |
<html>
<head>
<meta name="TextLength" content="SENT_NUM:9, WORD_NUM:187">
</head>
<body bgcolor="white">
<a href="#0" id="0">Expansion of universal variables is another successful approach to QBF solving, in addition to backtracking search and Q-resolution.</a>
<a href="#1" id="1">Based on this observation, we ran the ... | /AI-Dataset/Summary_rnd/S0004370216300376.xml.A.R | no_license | Angela7126/SLNSumEval | R | false | false | 1,482 | r | <html>
<head>
<meta name="TextLength" content="SENT_NUM:9, WORD_NUM:187">
</head>
<body bgcolor="white">
<a href="#0" id="0">Expansion of universal variables is another successful approach to QBF solving, in addition to backtracking search and Q-resolution.</a>
<a href="#1" id="1">Based on this observation, we ran the ... |
tabItem(
tabName = "claims",
fluidRow(
column(
width = 9,
fluidRow(
box(
width = 12,
title = "Summary Stats",
collapsible = TRUE,
valueBoxOutput("ind_claim_cts"),
valueBoxOutput("ind_severity"),
valueBoxOutput("ind_severity_sd")
... | /wc-pm-dashboard/ui/02-ui-individual-claims.R | permissive | manniealfaro/shiny-insurance-examples | R | false | false | 3,361 | r | tabItem(
tabName = "claims",
fluidRow(
column(
width = 9,
fluidRow(
box(
width = 12,
title = "Summary Stats",
collapsible = TRUE,
valueBoxOutput("ind_claim_cts"),
valueBoxOutput("ind_severity"),
valueBoxOutput("ind_severity_sd")
... |
\name{sctMSE}
\alias{sctMSE}
\title{Plotting performance: Scatter plots against heterogeneity}
\usage{
sctMSE(res, ...)
}
\arguments{
\item{res}{The collected results from a computer
experiment.}
\item{...}{further arguments to scale_y_continuous}
}
\value{
A plot object.
}
\description{
Scatter plots of h... | /man/sctMSE.Rd | no_license | cran/metagen | R | false | false | 360 | rd | \name{sctMSE}
\alias{sctMSE}
\title{Plotting performance: Scatter plots against heterogeneity}
\usage{
sctMSE(res, ...)
}
\arguments{
\item{res}{The collected results from a computer
experiment.}
\item{...}{further arguments to scale_y_continuous}
}
\value{
A plot object.
}
\description{
Scatter plots of h... |
#' Converting Input data with different coding scheme to standard format
#'
#' @param input matrix input, the first column is ID, the rest of the columns each represent one symptom
#' @param yesLabel The value(s) coding "Yes" in the input matrix.
#' @param noLabel The value(s) coding "No" in the input matrix.
#' @param... | /openVA/R/ConvertData.r | no_license | mboyas-mitre/openVA | R | false | false | 41,555 | r | #' Converting Input data with different coding scheme to standard format
#'
#' @param input matrix input, the first column is ID, the rest of the columns each represent one symptom
#' @param yesLabel The value(s) coding "Yes" in the input matrix.
#' @param noLabel The value(s) coding "No" in the input matrix.
#' @param... |
library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/upper_aerodigestive_tract.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.85,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/upper_aerodig... | /Model/EN/AvgRank/upper_aerodigestive_tract/upper_aerodigestive_tract_086.R | no_license | leon1003/QSMART | R | false | false | 410 | r | library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/upper_aerodigestive_tract.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.85,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/upper_aerodig... |
library(testthat)
library(taspprepodin)
test_check("taspprepodin")
| /tests/testthat.R | no_license | Geidelberg/odin_tasp_prep | R | false | false | 68 | r | library(testthat)
library(taspprepodin)
test_check("taspprepodin")
|
# 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-expression.R | permissive | zeroviral/arrow | R | false | false | 2,627 | 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... |
testlist <- list(b = c(-1667457875L, -1667457892L, 67964173L, 67964173L, -1835882340L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613107290-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 155 | r | testlist <- list(b = c(-1667457875L, -1667457892L, 67964173L, 67964173L, -1835882340L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
library(ggplot2)
#construindo o data frame com os dados do exercício
países <- c('Áustria','Espanha','Dinamarca','Bulgária','Reino Unido','Itália')
deficit <- c(1.5,6.8,0.7,1.2,5.8,2.8)
gastos_edu <- c(5.6,4.5,7.9,3.5,6.1,4.2)
ex.df <- data.frame(países,deficit,gastos_edu)
ex.df
#padronizando os dados
dados.padro <-... | /centroidmethod.R | no_license | sgurab/CLUSTERS_FEA | R | false | false | 1,040 | r | library(ggplot2)
#construindo o data frame com os dados do exercício
países <- c('Áustria','Espanha','Dinamarca','Bulgária','Reino Unido','Itália')
deficit <- c(1.5,6.8,0.7,1.2,5.8,2.8)
gastos_edu <- c(5.6,4.5,7.9,3.5,6.1,4.2)
ex.df <- data.frame(países,deficit,gastos_edu)
ex.df
#padronizando os dados
dados.padro <-... |
context("test-variable_selection")
test_that("individual select functions", {
# d > e so that we can test the correct ordering for number
misses = c("a" = 0.05, "b" = 0.07, "c" = 0.08, "d" = 0.15, "e" = 0.11)
pct = select_pct(misses, c("pct" = 0.079))
number = select_number(misses, c("count" = 4))
all_resul... | /tests/testthat/test-variable_selection.R | permissive | esmarkowski/autumn | R | false | false | 1,595 | r | context("test-variable_selection")
test_that("individual select functions", {
# d > e so that we can test the correct ordering for number
misses = c("a" = 0.05, "b" = 0.07, "c" = 0.08, "d" = 0.15, "e" = 0.11)
pct = select_pct(misses, c("pct" = 0.079))
number = select_number(misses, c("count" = 4))
all_resul... |
#Prudential EDA
library(ggplot2)
library(gridExtra)
#Read in data
train <- read.table("../../data/train.csv", sep=",", header=TRUE)
test <- read.table("../../data/test.csv", sep=",", header=TRUE)
#Separate categorical, continous and discrete variables
cat.var.names <- c(paste("Product_Info_", c(1:3,5:7), sep=""), pa... | /prudential/scripts/eda/eda.R | no_license | kourouklides/kaggle | R | false | false | 6,836 | r | #Prudential EDA
library(ggplot2)
library(gridExtra)
#Read in data
train <- read.table("../../data/train.csv", sep=",", header=TRUE)
test <- read.table("../../data/test.csv", sep=",", header=TRUE)
#Separate categorical, continous and discrete variables
cat.var.names <- c(paste("Product_Info_", c(1:3,5:7), sep=""), pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gsDesign.R, R/gsMethods.R
\name{gsProbability}
\alias{gsProbability}
\alias{print.gsProbability}
\title{Boundary Crossing Probabilities}
\usage{
gsProbability(k = 0, theta, n.I, a, b, r = 18, d = NULL,
overrun = 0)
\method{print}{gsProbabi... | /man/gsProbability.Rd | no_license | danielwoodie/gsDesign | R | false | true | 4,884 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gsDesign.R, R/gsMethods.R
\name{gsProbability}
\alias{gsProbability}
\alias{print.gsProbability}
\title{Boundary Crossing Probabilities}
\usage{
gsProbability(k = 0, theta, n.I, a, b, r = 18, d = NULL,
overrun = 0)
\method{print}{gsProbabi... |
library(shiny)
source("PredictNextWord.R")
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
NextWords <- reactive({
inputtext <- input$txtin
totchars <- nchar(inputtext)
result <- character()
result[1] <- ""
result[2] <- ""
... | /server.R | no_license | Hansraj-B/Capstone | R | false | false | 1,233 | r | library(shiny)
source("PredictNextWord.R")
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
NextWords <- reactive({
inputtext <- input$txtin
totchars <- nchar(inputtext)
result <- character()
result[1] <- ""
result[2] <- ""
... |
library(threewords)
### Name: from_words
### Title: Resolve Three Identifying Words to a Position
### Aliases: from_words
### ** Examples
## Not run:
##D # Ask for a single lat/long pair from the what3words API (note: this requires an API key.
##D # Don't actually use 'ANAPIKEY'.)
##D results <- from_words(key = "... | /data/genthat_extracted_code/threewords/examples/from_words.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 387 | r | library(threewords)
### Name: from_words
### Title: Resolve Three Identifying Words to a Position
### Aliases: from_words
### ** Examples
## Not run:
##D # Ask for a single lat/long pair from the what3words API (note: this requires an API key.
##D # Don't actually use 'ANAPIKEY'.)
##D results <- from_words(key = "... |
## File Name: fit.logistic.R
## File Version: 2.15
#-- fit logistic model
fit.logistic <- function( freq.correct, wgt, scores, item.p,
conv=.0001, maxit=100, progress=TRUE )
{
sc.adj <- min( diff(scores) ) / 3
scores1 <- scores
freq.correct <- as.matrix(freq.correct)
RR <- nrow(freq.c... | /R/fit.logistic.R | no_license | cran/sirt | R | false | false | 3,398 | r | ## File Name: fit.logistic.R
## File Version: 2.15
#-- fit logistic model
fit.logistic <- function( freq.correct, wgt, scores, item.p,
conv=.0001, maxit=100, progress=TRUE )
{
sc.adj <- min( diff(scores) ) / 3
scores1 <- scores
freq.correct <- as.matrix(freq.correct)
RR <- nrow(freq.c... |
DS <- read.csv("./Data/ss06hid.csv")
agricultureLogical <- DS$ACR == 3 & DS$AGS == 6
which(agricultureLogical)[1:3]
########################################
library(dplyr)
EDS <- read.csv("./Data/EDSTATS_Country.csv")
GDP <- read.csv("./Data/GDP.csv")
#########################
GDP_CLEAR <- ... | /GCD_week_3.R | no_license | caveeagle/RStudio | R | false | false | 741 | r |
DS <- read.csv("./Data/ss06hid.csv")
agricultureLogical <- DS$ACR == 3 & DS$AGS == 6
which(agricultureLogical)[1:3]
########################################
library(dplyr)
EDS <- read.csv("./Data/EDSTATS_Country.csv")
GDP <- read.csv("./Data/GDP.csv")
#########################
GDP_CLEAR <- ... |
\name{plot.venn3D}
\alias{plot.venn3D}
\title{Plot a 3 way venn diagram}
\usage{
plot.venn3D(x, y = NULL, z = NULL, names = NULL,
mar = c(2, 2, 2, 2) + 0.2, population = NULL, ...)
}
\arguments{
\item{x}{vectors of numerics or characters}
\item{y}{vectors of numerics or characters}
\item{z}{vectors of num... | /man/plot.venn3D.Rd | no_license | drmjc/mjcgraphics | R | false | false | 955 | rd | \name{plot.venn3D}
\alias{plot.venn3D}
\title{Plot a 3 way venn diagram}
\usage{
plot.venn3D(x, y = NULL, z = NULL, names = NULL,
mar = c(2, 2, 2, 2) + 0.2, population = NULL, ...)
}
\arguments{
\item{x}{vectors of numerics or characters}
\item{y}{vectors of numerics or characters}
\item{z}{vectors of num... |
setwd("c:/R")
getwd()
if(!file.exists("myder")) {
dir.create("myder")
}
list.files("myder")
my_url <-"https://wiki.artezio.com/display/PMCARD/ART-QMS"
download.file(my_url, destfile = "./myder/proj.html", method="auto" )
list.files("myder")
install.packages("RCurl")
install.packages("xlsx")
install.packages("XM... | /week1.R | no_license | AndreyShagal/R-scripts | R | false | false | 2,927 | r | setwd("c:/R")
getwd()
if(!file.exists("myder")) {
dir.create("myder")
}
list.files("myder")
my_url <-"https://wiki.artezio.com/display/PMCARD/ART-QMS"
download.file(my_url, destfile = "./myder/proj.html", method="auto" )
list.files("myder")
install.packages("RCurl")
install.packages("xlsx")
install.packages("XM... |
##
## Copyright (c) Felix Andrews <felix@nfrac.org>
##
findThresh <-
function(x, thresh = NA, ## ignored
n, within = (n %/% 20) + 1,
mingap = 1, mindur = 1,
below = FALSE, ...,
trace = FALSE, optimize.tol = 0.1)
{
stopifnot(n > 0)
n <- round(n)
stopi... | /R/events.R | no_license | yanggis/hydromad | R | false | false | 10,291 | r | ##
## Copyright (c) Felix Andrews <felix@nfrac.org>
##
findThresh <-
function(x, thresh = NA, ## ignored
n, within = (n %/% 20) + 1,
mingap = 1, mindur = 1,
below = FALSE, ...,
trace = FALSE, optimize.tol = 0.1)
{
stopifnot(n > 0)
n <- round(n)
stopi... |
.run.session.class.name <- "runSession"
#' Create a running session.
#'
#' @param pace numeric vector giving pace by segment, in seconds
#' @param heart.rate numeric vector giving heart rate by segment, in beats per minute
#' @param profile runner'sprofile
#' @return Running session.
#' @export
#' @examples
#' runSess... | /R/runSession.R | permissive | michelcaradec/runR | R | false | false | 1,757 | r | .run.session.class.name <- "runSession"
#' Create a running session.
#'
#' @param pace numeric vector giving pace by segment, in seconds
#' @param heart.rate numeric vector giving heart rate by segment, in beats per minute
#' @param profile runner'sprofile
#' @return Running session.
#' @export
#' @examples
#' runSess... |
getLineCount <- function(path, header) {
file <- file(path, open = "r")
n <- 0L
while (length(readLines(file, n = 1L)) > 0L) {
n <- n + 1L
}
if (header) {
n <- n - 1L
}
close(file)
return(n)
}
getFileHeader <- function(path, sep = "") {
file <- file(path, open = "r"... | /R/utils.R | no_license | dnharry/BGData | R | false | false | 1,929 | r | getLineCount <- function(path, header) {
file <- file(path, open = "r")
n <- 0L
while (length(readLines(file, n = 1L)) > 0L) {
n <- n + 1L
}
if (header) {
n <- n - 1L
}
close(file)
return(n)
}
getFileHeader <- function(path, sep = "") {
file <- file(path, open = "r"... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/lgcpMethods.R
\name{grid2spoly}
\alias{grid2spoly}
\title{grid2spoly function}
\usage{
grid2spoly(xgrid, ygrid, proj4string = CRS(as.character(NA)))
}
\arguments{
\item{xgrid}{vector of x centroids (equally spaced)}
\item{ygrid}{vect... | /man/grid2spoly.Rd | no_license | bentaylor1/lgcp | R | false | false | 557 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/lgcpMethods.R
\name{grid2spoly}
\alias{grid2spoly}
\title{grid2spoly function}
\usage{
grid2spoly(xgrid, ygrid, proj4string = CRS(as.character(NA)))
}
\arguments{
\item{xgrid}{vector of x centroids (equally spaced)}
\item{ygrid}{vect... |
## Put comments here that give an overall description of what your
## functions do
## These functions written in partial fulfillment of Coursera Data Science: R Programming
## Write a short comment describing this function
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatr... | /cachematrix.R | no_license | avinash99n/ProgrammingAssignment2 | R | false | false | 1,893 | r | ## Put comments here that give an overall description of what your
## functions do
## These functions written in partial fulfillment of Coursera Data Science: R Programming
## Write a short comment describing this function
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatr... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/scale-continuous.r
\name{scale_x_continuous}
\alias{scale_x_continuous}
\alias{scale_x_log10}
\alias{scale_x_reverse}
\alias{scale_x_sqrt}
\alias{scale_y_continuous}
\alias{scale_y_log10}
\alias{scale_y_reverse}
\alias{scale_y_sqrt}
\... | /man/scale_continuous.Rd | no_license | larkery/ggplot2 | R | false | false | 5,615 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/scale-continuous.r
\name{scale_x_continuous}
\alias{scale_x_continuous}
\alias{scale_x_log10}
\alias{scale_x_reverse}
\alias{scale_x_sqrt}
\alias{scale_y_continuous}
\alias{scale_y_log10}
\alias{scale_y_reverse}
\alias{scale_y_sqrt}
\... |
library(data.table)
# Load test
test_data = read.table("./test/X_test.txt")
test_label = readLines("./test/y_test.txt")
test_subject = readLines("./test/subject_test.txt")
# Load train
train_data = read.table("./train/X_train.txt")
train_label = readLines("./train/y_train.txt")
train_subject = readLines("./train/subje... | /run_analysis.R | no_license | motogg/TIdyDataProject | R | false | false | 2,950 | r | library(data.table)
# Load test
test_data = read.table("./test/X_test.txt")
test_label = readLines("./test/y_test.txt")
test_subject = readLines("./test/subject_test.txt")
# Load train
train_data = read.table("./train/X_train.txt")
train_label = readLines("./train/y_train.txt")
train_subject = readLines("./train/subje... |
###################
######################### CONFOUDNING BIAS SIMULATIONS
######################### FOR STATS N CATS
######################### MARY RYAN
######################### CREATED: 9.22.2018
###################
#### LOAD PACKAGES ####
library(tidyverse)
library(MASS)
#### CREATE SIMULATED DATASET UNDER CONFOU... | /confoundingBiasSims.R | no_license | maryryan/statsBlogCode | R | false | false | 4,069 | r | ###################
######################### CONFOUDNING BIAS SIMULATIONS
######################### FOR STATS N CATS
######################### MARY RYAN
######################### CREATED: 9.22.2018
###################
#### LOAD PACKAGES ####
library(tidyverse)
library(MASS)
#### CREATE SIMULATED DATASET UNDER CONFOU... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/RestoreImage.R
\name{restoreImage}
\alias{restoreImage}
\title{Restore a network's image}
\usage{
restoreImage(cn, net, timeFrom)
}
\arguments{
\item{cn}{An open RODBC connection}
\item{net}{The network. The network must have a valid... | /man/restoreImage.Rd | permissive | mickash/Adaptive-Bayesian-Networks | R | false | false | 737 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/RestoreImage.R
\name{restoreImage}
\alias{restoreImage}
\title{Restore a network's image}
\usage{
restoreImage(cn, net, timeFrom)
}
\arguments{
\item{cn}{An open RODBC connection}
\item{net}{The network. The network must have a valid... |
#' Windowfunctions
#'
#' Some typical windowfunctions are defined below:
#'
#' \describe{
#' \item{\code{win.cos()}}{cosine window}
#' \item{\code{win.tukey()}}{Tukey window}
#' \item{\code{win.hann()}}{Hann window}
#' \item{\code{win.nutt()}}{Nutt window}
#' }
#'
#' A window function weights a given datase... | /R/windowfunctions.R | no_license | cran/spectral | R | false | false | 3,921 | r | #' Windowfunctions
#'
#' Some typical windowfunctions are defined below:
#'
#' \describe{
#' \item{\code{win.cos()}}{cosine window}
#' \item{\code{win.tukey()}}{Tukey window}
#' \item{\code{win.hann()}}{Hann window}
#' \item{\code{win.nutt()}}{Nutt window}
#' }
#'
#' A window function weights a given datase... |
library(mgpd)
### Name: mgpd-package
### Title: mgpd: Functions for multivariate generalized Pareto distribution
### (MGPD of Type II)
### Aliases: mgpd-package mgpd
### Keywords: dbgpd, dtgpd
### ** Examples
x=y=seq(-2,6,0.05)
z1=outer(x,y,pbgpd,model="log")
z2=outer(x,y,pbgpd,model="neglog")
image(z1-z2)
| /data/genthat_extracted_code/mgpd/examples/mgpd-package.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 317 | r | library(mgpd)
### Name: mgpd-package
### Title: mgpd: Functions for multivariate generalized Pareto distribution
### (MGPD of Type II)
### Aliases: mgpd-package mgpd
### Keywords: dbgpd, dtgpd
### ** Examples
x=y=seq(-2,6,0.05)
z1=outer(x,y,pbgpd,model="log")
z2=outer(x,y,pbgpd,model="neglog")
image(z1-z2)
|
library(readr)
library(arm)
library(pROC)
data <- read_csv(file = "../train.csv") # Import training file with default settings
#training <- read_csv(file = "../input/train.csv") # Import training file (kaggle directory)
data <- data.frame(data)
# clean variables for machine readability
summary(data) # print summarie... | /r/kernels/noahbjohnson-r-logistic-regression-titanic/script/r-logistic-regression-titanic.r | no_license | helenaK/trustworthy-titanic | R | false | false | 2,120 | r |
library(readr)
library(arm)
library(pROC)
data <- read_csv(file = "../train.csv") # Import training file with default settings
#training <- read_csv(file = "../input/train.csv") # Import training file (kaggle directory)
data <- data.frame(data)
# clean variables for machine readability
summary(data) # print summarie... |
\name{transfo_newdata}
\alias{transfo_newdata}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Transform variables based on the output of \code{\link{transfo}}.
}
\description{
Based on the output of \code{\link{transfo}}, transform the variables using Yeo-Johnson and/or Box-Cox transform... | /man/transfo_newdata.Rd | no_license | cran/cellWise | R | false | false | 1,887 | rd | \name{transfo_newdata}
\alias{transfo_newdata}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Transform variables based on the output of \code{\link{transfo}}.
}
\description{
Based on the output of \code{\link{transfo}}, transform the variables using Yeo-Johnson and/or Box-Cox transform... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xmu.R
\name{xmu_safe_run_summary}
\alias{xmu_safe_run_summary}
\title{Safely run and summarize a model}
\usage{
xmu_safe_run_summary(
model1,
model2 = NULL,
autoRun = TRUE,
tryHard = c("no", "yes", "ordinal", "search"),
summary = !u... | /man/xmu_safe_run_summary.Rd | no_license | tbates/umx | R | false | true | 5,641 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xmu.R
\name{xmu_safe_run_summary}
\alias{xmu_safe_run_summary}
\title{Safely run and summarize a model}
\usage{
xmu_safe_run_summary(
model1,
model2 = NULL,
autoRun = TRUE,
tryHard = c("no", "yes", "ordinal", "search"),
summary = !u... |
N<-100 #total number of datapoints (per condition) you are willing to collect
Looks<-200 #set number of looks at the data
nSim<-50000 #number of simulated studies
alpha<-0.0158 #set alpha
D<-0 #True effect size (must be 0 when simulating Type 1 errors)
#Take care of some settings
options(scipen=100, digits=4) #disabl... | /32_OptionalStoppingSim.R | no_license | elenary/lakens_courses | R | false | false | 2,158 | r | N<-100 #total number of datapoints (per condition) you are willing to collect
Looks<-200 #set number of looks at the data
nSim<-50000 #number of simulated studies
alpha<-0.0158 #set alpha
D<-0 #True effect size (must be 0 when simulating Type 1 errors)
#Take care of some settings
options(scipen=100, digits=4) #disabl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ds-plots.R
\name{ds_plot_box_single}
\alias{ds_plot_box_single}
\title{Generate box plots}
\usage{
ds_plot_box_single(data, ..., print_plot = TRUE)
}
\arguments{
\item{data}{A \code{data.frame} or \code{tibble}.}
\item{...}{Column... | /man/ds_plot_box_single.Rd | no_license | cran/descriptr | R | false | true | 632 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ds-plots.R
\name{ds_plot_box_single}
\alias{ds_plot_box_single}
\title{Generate box plots}
\usage{
ds_plot_box_single(data, ..., print_plot = TRUE)
}
\arguments{
\item{data}{A \code{data.frame} or \code{tibble}.}
\item{...}{Column... |
\name{flip}
\docType{methods}
\alias{flip}
\alias{flip,RasterLayer-method}
\alias{flip,RasterStackBrick-method}
\title{Flip}
\description{
Flip the values of a Raster* object by inverting the order of the rows (direction=y) or the columns direction='x'.
}
\usage{
\S4method{flip}{RasterLayer}(x, di... | /man/flip.Rd | no_license | cran/raster | R | false | false | 1,038 | rd | \name{flip}
\docType{methods}
\alias{flip}
\alias{flip,RasterLayer-method}
\alias{flip,RasterStackBrick-method}
\title{Flip}
\description{
Flip the values of a Raster* object by inverting the order of the rows (direction=y) or the columns direction='x'.
}
\usage{
\S4method{flip}{RasterLayer}(x, di... |
\name{pgfhypergeometric}
\alias{pgfhypergeometric}
\title{
Function pgfhypergeometric
}
\description{
This function calculates value of the pgf of the hypergeometric distribution.
}
\usage{
pgfhypergeometric(s, params)
}
\arguments{
\item{s}{
Value of the parameter of the pgf. It should be from interva... | /man/pgfhypergeometric.Rd | no_license | cran/Compounding | R | false | false | 1,957 | rd | \name{pgfhypergeometric}
\alias{pgfhypergeometric}
\title{
Function pgfhypergeometric
}
\description{
This function calculates value of the pgf of the hypergeometric distribution.
}
\usage{
pgfhypergeometric(s, params)
}
\arguments{
\item{s}{
Value of the parameter of the pgf. It should be from interva... |
write.csv(titanic3, "titanic_original.csv")
write.csv(t,"titanic_clean.csv") | /export_data.R | no_license | tomriddle1403/Data2-Titanic | R | false | false | 76 | r | write.csv(titanic3, "titanic_original.csv")
write.csv(t,"titanic_clean.csv") |
testlist <- list(phi = c(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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912... | /dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609866829-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 831 | r | testlist <- list(phi = c(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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912... |
#' Difference of estimated K functions
#'
#' \code{kd} determines the difference in estimated K functions for a set of cases and controls.
#'
#'
#' @param x A \code{ppp} object from the \code{spatstat} package with marks for the case and control groups.
#' @param case The position of the name of the "case" group in ... | /smacpod/R/kd.R | no_license | ingted/R-Examples | R | false | false | 2,441 | r | #' Difference of estimated K functions
#'
#' \code{kd} determines the difference in estimated K functions for a set of cases and controls.
#'
#'
#' @param x A \code{ppp} object from the \code{spatstat} package with marks for the case and control groups.
#' @param case The position of the name of the "case" group in ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knit.R
\name{knit_report}
\alias{knit_report}
\title{Knit report using working environment}
\usage{
knit_report(input_filename, output_filename, ...)
}
\arguments{
\item{input_filename}{Rmd file.}
\item{output_filename}{Markdown or HTML outp... | /man/knit_report.Rd | permissive | simonmfr/TwoSampleMR | R | false | true | 1,115 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knit.R
\name{knit_report}
\alias{knit_report}
\title{Knit report using working environment}
\usage{
knit_report(input_filename, output_filename, ...)
}
\arguments{
\item{input_filename}{Rmd file.}
\item{output_filename}{Markdown or HTML outp... |
## Download the file and put the file in the data folder
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/Dataset.zip",method="curl")
## Unzip the file
unzip(zipfile="./data/Datase... | /R script | no_license | Sejongyoo/Getting-and-cleaning-data | R | false | false | 3,502 | ## Download the file and put the file in the data folder
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/Dataset.zip",method="curl")
## Unzip the file
unzip(zipfile="./data/Datase... | |
%% BEGIN doc for: lpx_get_row_ub
\name{lpx_get_row_ub}
\alias{lpx_get_row_ub}
\title{
Low-level interface to the GLPK function
}
\description{
This function is a low-level interface to the GNU Linear Programming
Kit (GLPK) function \code{lpx_get_row_ub}. The parameter
names, associated types, and retur... | /man/lpx_get_row_ub.Rd | no_license | cran/glpk | R | false | false | 1,475 | rd | %% BEGIN doc for: lpx_get_row_ub
\name{lpx_get_row_ub}
\alias{lpx_get_row_ub}
\title{
Low-level interface to the GLPK function
}
\description{
This function is a low-level interface to the GNU Linear Programming
Kit (GLPK) function \code{lpx_get_row_ub}. The parameter
names, associated types, and retur... |
##### Loading in Requirements
# Install all needed libraries if it is not present
if(!require(tidyverse)) install.packages("tidyverse")
if(!require(kableExtra)) install.packages("kableExtra")
if(!require(tidyr)) install.packages("tidyr")
if(!require(tidyverse)) install.packages("tidyverse")
if(!require(stringr)) insta... | /MovieLens_Capstone.R | no_license | wht10/HarvardX-PH125.9x_Movielens_Capstone | R | false | false | 7,527 | r | ##### Loading in Requirements
# Install all needed libraries if it is not present
if(!require(tidyverse)) install.packages("tidyverse")
if(!require(kableExtra)) install.packages("kableExtra")
if(!require(tidyr)) install.packages("tidyr")
if(!require(tidyverse)) install.packages("tidyverse")
if(!require(stringr)) insta... |
mergedData<- merge(dfStates,arrests, by.x = "StateName" , by.y = "stateNames" )
mergedData
| /merge.R | no_license | fall2018-wallace/snehab_dataviz | R | false | false | 93 | r |
mergedData<- merge(dfStates,arrests, by.x = "StateName" , by.y = "stateNames" )
mergedData
|
library(data.table)
library(scales)
library(ggplot2)
library(ggrepel)
library(pheatmap)
library(scales)
library(ggrepel)
##### Input files ###############
new_SUPPA_WT_vs_SMN_dpsi_file = "G:\\Shared drives\\Salzman Lab Team Drive\\Members\\Roozbeh\\Projects\\Lu_data\\SUPPA_files\\SUPPA_DE_files\\union_scall... | /SUPPA_DE_analysis.R | no_license | roozbehdn/TGS1_SMN | R | false | false | 30,420 | r | library(data.table)
library(scales)
library(ggplot2)
library(ggrepel)
library(pheatmap)
library(scales)
library(ggrepel)
##### Input files ###############
new_SUPPA_WT_vs_SMN_dpsi_file = "G:\\Shared drives\\Salzman Lab Team Drive\\Members\\Roozbeh\\Projects\\Lu_data\\SUPPA_files\\SUPPA_DE_files\\union_scall... |
plot3 <- function(){
input1 <- read.table("household_power_consumption.txt",na.strings=c("?", "NA"),header=TRUE,sep=";",col.names=c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3"))
df <- data.frame(input1)
df ... | /plot3.R | no_license | THNielsen/ExpData_Project1 | R | false | false | 1,196 | r | plot3 <- function(){
input1 <- read.table("household_power_consumption.txt",na.strings=c("?", "NA"),header=TRUE,sep=";",col.names=c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3"))
df <- data.frame(input1)
df ... |
##Read in data and subset to the two days
datafile<-"household_power_consumption.txt"
data<-read.table(datafile, header = TRUE, sep =";",na.strings="?", stringsAsFactors=FALSE)
##use lubridate library to read the dates more easily
library(lubridate)
data$Date <- dmy(data$Date)
##put the data and time together
dateTime<... | /plot3.R | no_license | jjvornov/ExData_Plotting1 | R | false | false | 1,085 | r | ##Read in data and subset to the two days
datafile<-"household_power_consumption.txt"
data<-read.table(datafile, header = TRUE, sep =";",na.strings="?", stringsAsFactors=FALSE)
##use lubridate library to read the dates more easily
library(lubridate)
data$Date <- dmy(data$Date)
##put the data and time together
dateTime<... |
## Test of date and datetime types, based on earlier version in inst/devTests
##
## Dirk Eddelbuettel, 21 Oct 2008
dbTypeTests <- function(con, dateclass="timestamp without time zone") {
cat("\n\n**** Trying with ", dateclass, "\n")
if (dbExistsTable(con, "tempostgrestable"))
dbRemoveTable(con, "temp... | /tests/datetimeTests.R | no_license | jcdny/RPostgreSQL | R | false | false | 2,064 | r |
## Test of date and datetime types, based on earlier version in inst/devTests
##
## Dirk Eddelbuettel, 21 Oct 2008
dbTypeTests <- function(con, dateclass="timestamp without time zone") {
cat("\n\n**** Trying with ", dateclass, "\n")
if (dbExistsTable(con, "tempostgrestable"))
dbRemoveTable(con, "temp... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{decorateWithExons}
\alias{decorateWithExons}
\title{decorateWithExons}
\usage{
decorateWithExons(x, exonsInRegion, xlim, ylim, chromosome)
}
\arguments{
\item{x}{\code{ASEset} object}
\item{exonsInRegion}{\code{GRanges} object with generegions. Can be obtained... | /man/decorateWithExons.Rd | no_license | jimhester/AllelicImbalance | R | false | false | 1,212 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{decorateWithExons}
\alias{decorateWithExons}
\title{decorateWithExons}
\usage{
decorateWithExons(x, exonsInRegion, xlim, ylim, chromosome)
}
\arguments{
\item{x}{\code{ASEset} object}
\item{exonsInRegion}{\code{GRanges} object with generegions. Can be obtained... |
library(maxstat)
### Name: hohnloser
### Title: Left ventricular ejection fraction of patients with malignant
### ventricular tachyarrhythmias.
### Aliases: hohnloser
### Keywords: datasets
### ** Examples
set.seed(29)
library("survival")
# limiting distribution
maxstat.test(Surv(month, cens) ~ EF, data=hohnl... | /data/genthat_extracted_code/maxstat/examples/hohnloser.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,233 | r | library(maxstat)
### Name: hohnloser
### Title: Left ventricular ejection fraction of patients with malignant
### ventricular tachyarrhythmias.
### Aliases: hohnloser
### Keywords: datasets
### ** Examples
set.seed(29)
library("survival")
# limiting distribution
maxstat.test(Surv(month, cens) ~ EF, data=hohnl... |
#Author: Dave Moore
#date 10/12/2015
#purpose: Estimate time & genotype effects on photosyntyhesis and isoprene
#loading dat_Iso1.Rda - isoprene unit conversions completed using 00_ReadIsoprene_UnitConversions
library(devtools)
library (plantecophys)
library(dplyr)
library(ggplot2)
library(grid) #required for 'unit'
... | /05ANOVATime_Genotype.R | no_license | davidjpmoore/Isoprene2015_B2Pop | R | false | false | 6,001 | r | #Author: Dave Moore
#date 10/12/2015
#purpose: Estimate time & genotype effects on photosyntyhesis and isoprene
#loading dat_Iso1.Rda - isoprene unit conversions completed using 00_ReadIsoprene_UnitConversions
library(devtools)
library (plantecophys)
library(dplyr)
library(ggplot2)
library(grid) #required for 'unit'
... |
library(glmnet)
mydata = read.table("./TrainingSet/Correlation/soft_tissue.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.65,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/soft_tissue/soft_ti... | /Model/EN/Correlation/soft_tissue/soft_tissue_070.R | no_license | leon1003/QSMART | R | false | false | 376 | r | library(glmnet)
mydata = read.table("./TrainingSet/Correlation/soft_tissue.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.65,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/soft_tissue/soft_ti... |
\name{peakReader}
\alias{peakReader}
\title{Retrieves the missing low ion counts from the preprocessed data for a given scan range, m/z and LC-MS dataset}
\description{
It scans the given netCDF/mzxml file with provided scan and m/z range for the retrieval of very low ion counts. The standard preprocessing steps th... | /man/peakReader.Rd | no_license | vanbug/LCMStats | R | false | false | 2,709 | rd | \name{peakReader}
\alias{peakReader}
\title{Retrieves the missing low ion counts from the preprocessed data for a given scan range, m/z and LC-MS dataset}
\description{
It scans the given netCDF/mzxml file with provided scan and m/z range for the retrieval of very low ion counts. The standard preprocessing steps th... |
#' process open orders at time \emph{t}, generating transactions or new orders
#'
#' The ruleOrderProc function is effectively the default fill simulator for quantstrat.
#' This function is meant to be sufficient for backtesting most strategies,
#' but would need to be replaced for production use. It provides the i... | /R/ruleOrderProc.R | no_license | sa-ccr/quantstrat | R | false | false | 23,185 | r | #' process open orders at time \emph{t}, generating transactions or new orders
#'
#' The ruleOrderProc function is effectively the default fill simulator for quantstrat.
#' This function is meant to be sufficient for backtesting most strategies,
#' but would need to be replaced for production use. It provides the i... |
a <- TRUE
if (a == TRUE){
print ("a is TRUE")
} else {
print ("a is FALSE")
}
z <- runif(1) ## Generate a uniformly distributed random number
if (z <= 0.5) {print ("Less than a half")}
for (i in 1:10){
j <- i * i
print(paste(i, " squared is", j ))
}
for(species in c('Heliodoxa rubinoides',
... | /week3/code/control_flow.R | no_license | ICEBERGTDK/CMEECourseWork | R | false | false | 547 | r | a <- TRUE
if (a == TRUE){
print ("a is TRUE")
} else {
print ("a is FALSE")
}
z <- runif(1) ## Generate a uniformly distributed random number
if (z <= 0.5) {print ("Less than a half")}
for (i in 1:10){
j <- i * i
print(paste(i, " squared is", j ))
}
for(species in c('Heliodoxa rubinoides',
... |
##### R SETTINGS#####
rm(list=ls())
starting_pops <- F
# library(tictoc)
# seed <- as.numeric(format(Sys.time(), "%H%M%S"))
# set.seed(42)
# libraries for simulations
library(dplyr)
library(fields)
library(stringi)
library(readr)
library(plyr)
# libraries for selection tests
library(scales)
library(qvalue)
library(Sup... | /AOD_main.R | no_license | mijangos81/AOD | R | false | false | 6,463 | r | ##### R SETTINGS#####
rm(list=ls())
starting_pops <- F
# library(tictoc)
# seed <- as.numeric(format(Sys.time(), "%H%M%S"))
# set.seed(42)
# libraries for simulations
library(dplyr)
library(fields)
library(stringi)
library(readr)
library(plyr)
# libraries for selection tests
library(scales)
library(qvalue)
library(Sup... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{read.transfac}
\alias{read.jaspar}
\alias{read.transfac}
\alias{read.transfac.dir}
\title{read a transfac matrix}
\usage{
read.transfac(file)
}
\arguments{
\item{file}{transfac matrix / jaspar file for all matrices}
\item{dir}{directory of transfac matrices}
}... | /man/read.transfac.Rd | no_license | matthiasheinig/tRap | R | false | false | 820 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{read.transfac}
\alias{read.jaspar}
\alias{read.transfac}
\alias{read.transfac.dir}
\title{read a transfac matrix}
\usage{
read.transfac(file)
}
\arguments{
\item{file}{transfac matrix / jaspar file for all matrices}
\item{dir}{directory of transfac matrices}
}... |
i = 52
library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/")
bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed"
setwd("/lustre/scr/w/e/weisun/TCGA/bam/")
cmd = "ls *_asCounts_hetSNP_EA_hap1.bam"
ffs = system(cmd, intern=TRUE)
length(ffs)
head(ffs)
sams = gsub("... | /data_preparation/R_batch3/_step3/step3_countReads_EA.51.R | no_license | jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples | R | false | false | 650 | r | i = 52
library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/")
bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed"
setwd("/lustre/scr/w/e/weisun/TCGA/bam/")
cmd = "ls *_asCounts_hetSNP_EA_hap1.bam"
ffs = system(cmd, intern=TRUE)
length(ffs)
head(ffs)
sams = gsub("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregateSoilDepth.R
\name{aggregateSoilDepth}
\alias{aggregateSoilDepth}
\title{Probabalistic Estimation of Soil Depth within Groups}
\usage{
aggregateSoilDepth(
x,
groups,
crit.prob = 0.9,
name = hzdesgnname(x),
p = "Cr|R|Cd",
.... | /man/aggregateSoilDepth.Rd | no_license | moquedace/aqp | R | false | true | 2,018 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregateSoilDepth.R
\name{aggregateSoilDepth}
\alias{aggregateSoilDepth}
\title{Probabalistic Estimation of Soil Depth within Groups}
\usage{
aggregateSoilDepth(
x,
groups,
crit.prob = 0.9,
name = hzdesgnname(x),
p = "Cr|R|Cd",
.... |
l <- c("Python", "C", "R")
l <- l[programmer$Languages[l]==TRUE]
programmer <- list(Title = "Senior Programmer", Salary = 150000, Languages = list(Python = TRUE, C = FALSE, R = TRUE))
print(paste("Title: ", programmer$Title))
print(paste("Salary: ", programmer$Salary))
print(paste("Programming Languages: ", l[1], ",",l... | /question2.R | no_license | mybatete/my-files | R | false | false | 325 | r | l <- c("Python", "C", "R")
l <- l[programmer$Languages[l]==TRUE]
programmer <- list(Title = "Senior Programmer", Salary = 150000, Languages = list(Python = TRUE, C = FALSE, R = TRUE))
print(paste("Title: ", programmer$Title))
print(paste("Salary: ", programmer$Salary))
print(paste("Programming Languages: ", l[1], ",",l... |
#' Un-pivot complex and irregular data layouts.
#'
#' 'Unpivotr' provides tools for converting data from complex or irregular
#' layouts to a columnar structure. For example, tables with multi-level column
#' or row headers, or spreadsheets. Header and data cells are selected by their
#' contents, position and format... | /R/unpivotr.R | no_license | guhjy/unpivotr | R | false | false | 1,481 | r | #' Un-pivot complex and irregular data layouts.
#'
#' 'Unpivotr' provides tools for converting data from complex or irregular
#' layouts to a columnar structure. For example, tables with multi-level column
#' or row headers, or spreadsheets. Header and data cells are selected by their
#' contents, position and format... |
context("properties")
test_that("properties captured correctly", {
f <- '{
"type": "Feature",
"properties": { "id" : 1, "name" : "foo" },
"geometry": {"type": "LineString", "coordinates": [[101.0, 0.0], [102.0, 1.0]]}
}'
sf <- geojson_sf(f)
wkt <- geojson_wkt(f)
expect_true(
all(names(sf) == c("geomet... | /tests/testthat/test-geojson_properties.R | no_license | techisdead/geojsonsf | R | false | false | 2,871 | r | context("properties")
test_that("properties captured correctly", {
f <- '{
"type": "Feature",
"properties": { "id" : 1, "name" : "foo" },
"geometry": {"type": "LineString", "coordinates": [[101.0, 0.0], [102.0, 1.0]]}
}'
sf <- geojson_sf(f)
wkt <- geojson_wkt(f)
expect_true(
all(names(sf) == c("geomet... |
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
# Compilation of deprecated function that will be removed from
# the package one day or another
# Damien G. - 26/06/2013
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
setGeneric("getModelsPrediction",
function(obj,.... | /R/deprecated_functions.R | no_license | fbreiner/biomod2-1 | R | false | false | 15,015 | r | # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
# Compilation of deprecated function that will be removed from
# the package one day or another
# Damien G. - 26/06/2013
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
setGeneric("getModelsPrediction",
function(obj,.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.