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 |
|---|---|---|---|---|---|---|---|---|---|
myData <-read.csv(file="/Users/ArvindhS/Classes/Intro to Data Mining/dataset2.csv", header=TRUE, sep=",")
str(myData)
wss <- (nrow(myData)-1)*sum(apply(myData,2,var)) #Used to find the number of clusters for the dataset
for (i in 2:15) wss[i] <- sum(kmeans(myData,
centers=i)$withins... | /indiproj3_part3.R | no_license | arvindhseshadhri/Data-Mining-Clustering | R | false | false | 724 | r | myData <-read.csv(file="/Users/ArvindhS/Classes/Intro to Data Mining/dataset2.csv", header=TRUE, sep=",")
str(myData)
wss <- (nrow(myData)-1)*sum(apply(myData,2,var)) #Used to find the number of clusters for the dataset
for (i in 2:15) wss[i] <- sum(kmeans(myData,
centers=i)$withins... |
#' geom_pointJ
#'
geom_histline <- function (
mapping = NULL, data = NULL, stat = "binJ",
position = "identity",
...,
na.rm = FALSE,
show.legend = NA, inherit.aes = TRUE) {
layer(
data = data,
mapping = mapping,
stat = stat,
geom = GeomLine,
position = position,
show.legend = show.... | /R/geom-histline.R | no_license | joker8phoenix/statds | R | false | false | 421 | r | #' geom_pointJ
#'
geom_histline <- function (
mapping = NULL, data = NULL, stat = "binJ",
position = "identity",
...,
na.rm = FALSE,
show.legend = NA, inherit.aes = TRUE) {
layer(
data = data,
mapping = mapping,
stat = stat,
geom = GeomLine,
position = position,
show.legend = show.... |
% Part of the dcemri package for R
% Distributed under the BSD license: see dcemri/COPYING
% Time-stamp: <2009-08-05 17:07:17 (bjw34032)>
\name{Apparent Diffusion Coefficient}
\alias{adc.lm}
\alias{ADC.fast}
\title{Estimate the Apparent Diffusion Coefficient (ADC)}
\description{
Estimation of apparent diffusion coef... | /pkg/dcemri/man/dwi.Rd | permissive | bjw34032/dcemri | R | false | false | 3,506 | rd | % Part of the dcemri package for R
% Distributed under the BSD license: see dcemri/COPYING
% Time-stamp: <2009-08-05 17:07:17 (bjw34032)>
\name{Apparent Diffusion Coefficient}
\alias{adc.lm}
\alias{ADC.fast}
\title{Estimate the Apparent Diffusion Coefficient (ADC)}
\description{
Estimation of apparent diffusion coef... |
#' Convert a DCT object to YAML
#'
#' @param dctObject The DCT object
#'
#' @return A character vector.
#'
#' @export
dct_object_to_yaml <- function(dctObject) {
if (!inherits(dctObject, "psyverse_dct")) {
stop("Object dctObject must have class `psyverse_dct`, but has class ",
vecTxtQ(class(d... | /R/dct_object_to_yaml.R | no_license | cran/psyverse | R | false | false | 434 | r | #' Convert a DCT object to YAML
#'
#' @param dctObject The DCT object
#'
#' @return A character vector.
#'
#' @export
dct_object_to_yaml <- function(dctObject) {
if (!inherits(dctObject, "psyverse_dct")) {
stop("Object dctObject must have class `psyverse_dct`, but has class ",
vecTxtQ(class(d... |
#' @title Identify the file path where a target will be stored.
#' @export
#' @family utilities
#' @description Identify the file path where a target will be stored
#' after the target finishes running in the pipeline.
#' @details `tar_path(name = your_target)` just returns
#' `_targets/objects/your_target`, the fi... | /R/tar_path.R | permissive | jmbuhr/targets | R | false | false | 2,017 | r | #' @title Identify the file path where a target will be stored.
#' @export
#' @family utilities
#' @description Identify the file path where a target will be stored
#' after the target finishes running in the pipeline.
#' @details `tar_path(name = your_target)` just returns
#' `_targets/objects/your_target`, the fi... |
\name{imagetimesPlot}
\alias{imagetimesPlot}
\title{Plots the position of a time within an interval against the interval for each cart}
\description{Uses \code{ggplot} to produce a plot of the time position within an interval
against the interval. For example, one might plot the hour of the day carts
... | /man/imagetimesPlot.Rd | no_license | cran/imageData | R | false | false | 3,057 | rd | \name{imagetimesPlot}
\alias{imagetimesPlot}
\title{Plots the position of a time within an interval against the interval for each cart}
\description{Uses \code{ggplot} to produce a plot of the time position within an interval
against the interval. For example, one might plot the hour of the day carts
... |
## The functions presented below creates a special matrix with the capability to have its
## inverse cached and have it retrieved if such has been previously processed / calculated.
## Retrieval of cached data rather than having to recompute it again promotes effeciency.
## This function creates a special "matrix" obj... | /cachematrix.R | no_license | Dcroix/ProgrammingAssignment2 | R | false | false | 2,534 | r | ## The functions presented below creates a special matrix with the capability to have its
## inverse cached and have it retrieved if such has been previously processed / calculated.
## Retrieval of cached data rather than having to recompute it again promotes effeciency.
## This function creates a special "matrix" obj... |
#' @name UnbiasedGradients
#' @aliases UnbiasedGradients
#' @docType package
#' @title UnbiasedGradients package
#' @author Insert
#' @description Insert
#' @details Insert
#' @keywords package
#' @useDynLib UnbiasedGradients
#' @importFrom Rcpp evalCpp
NULL | /R/UnbiasedGradients.R | no_license | fangyuan-ksgk/UnbiasedGradients | R | false | false | 258 | r | #' @name UnbiasedGradients
#' @aliases UnbiasedGradients
#' @docType package
#' @title UnbiasedGradients package
#' @author Insert
#' @description Insert
#' @details Insert
#' @keywords package
#' @useDynLib UnbiasedGradients
#' @importFrom Rcpp evalCpp
NULL |
#!/usr/bin/env Rscript
##########################################################################################
# MSKCC CMO
# Annotate low-confidence mutation calls
##########################################################################################
annotate_maf <- function(maf) {
# Add TAG to MAF
if... | /filter_low_conf.R | no_license | wangdi2014/ngs-filters | R | false | false | 2,045 | r | #!/usr/bin/env Rscript
##########################################################################################
# MSKCC CMO
# Annotate low-confidence mutation calls
##########################################################################################
annotate_maf <- function(maf) {
# Add TAG to MAF
if... |
#' @method myglance penAFT.cv
#' @export
myglance.penAFT.cv <- function(x){
ffit <- x$full.fit
ret <- with(x,
tibble::tibble(
alpha = ffit$alpha,
n_lambda = length(ffit$lambda),
lambda_min = x$lambda.min,
n_colx = length(ffit$X.mean)
))
return(ret)
}
#'... | /R/penAFTcv-mytidy.R | no_license | agalecki/utilsag | R | false | false | 654 | r | #' @method myglance penAFT.cv
#' @export
myglance.penAFT.cv <- function(x){
ffit <- x$full.fit
ret <- with(x,
tibble::tibble(
alpha = ffit$alpha,
n_lambda = length(ffit$lambda),
lambda_min = x$lambda.min,
n_colx = length(ffit$X.mean)
))
return(ret)
}
#'... |
\name{MSE}
\alias{MSE}
\alias{MSEmix.betaMix}
\alias{MSEmix.normMix}
\alias{MSEuni.betaMix}
\alias{MSEuni.normMix}
\alias{MSEpp.betaMix}
\alias{MSEpp.normMix}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Compute frequentist MSE
}
\description{
Compute frequentist MSE for use as ar... | /man/MSE.Rd | no_license | DKFZ-biostats/ESS | R | false | false | 1,666 | rd | \name{MSE}
\alias{MSE}
\alias{MSEmix.betaMix}
\alias{MSEmix.normMix}
\alias{MSEuni.betaMix}
\alias{MSEuni.normMix}
\alias{MSEpp.betaMix}
\alias{MSEpp.normMix}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Compute frequentist MSE
}
\description{
Compute frequentist MSE for use as ar... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(1.41284333010679e-303, 3.60992500704706e+294, 2.9204094392907e-308, 8.02503367590771e-310, 2.41372518172032e-251, 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, ... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615772558-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 545 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(1.41284333010679e-303, 3.60992500704706e+294, 2.9204094392907e-308, 8.02503367590771e-310, 2.41372518172032e-251, 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, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package-geofacet.R
\docType{data}
\name{aus_grid1}
\alias{aus_grid1}
\title{aus_grid1}
\usage{
aus_grid1
}
\description{
A data frame containing a grid layout for the Australian States and Territories, thanks to \url{https://github.com/jonoca... | /man/aus_grid1.Rd | no_license | YTLogos/geofacet | R | false | true | 345 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package-geofacet.R
\docType{data}
\name{aus_grid1}
\alias{aus_grid1}
\title{aus_grid1}
\usage{
aus_grid1
}
\description{
A data frame containing a grid layout for the Australian States and Territories, thanks to \url{https://github.com/jonoca... |
library(randomForest)
# read in data
df <- read.csv("crime.csv")
# sample data
# Year Month Day DayOfWeek Location is.Violent is.Property DayID
# 2014 1 1 3 1 FALSE FALSE 1
# 2014 1 2 4 1 FALSE FALSE 2
# 2014 1 3 5 1 FA... | /Random Forest.R | no_license | vijendranp/numsense | R | false | false | 2,277 | r |
library(randomForest)
# read in data
df <- read.csv("crime.csv")
# sample data
# Year Month Day DayOfWeek Location is.Violent is.Property DayID
# 2014 1 1 3 1 FALSE FALSE 1
# 2014 1 2 4 1 FALSE FALSE 2
# 2014 1 3 5 1 FA... |
# @ https://stackoverflow.com/questions/48410130/is-r-creating-too-many-threads-on-startup
library(RhpcBLASctl)
n <- 20e3
p <- 1e3
mat <- matrix(runif(n*p), n, p)
# by default: using all cores, as `elapsed` < `user`
system.time(crossprod(mat))
#> user system elapsed
#> 0.605 0.001 0.176
# check #cores
get_n... | /parallel/07-cores-blas.R | no_license | anhnguyendepocen/rexamples | R | false | false | 499 | r | # @ https://stackoverflow.com/questions/48410130/is-r-creating-too-many-threads-on-startup
library(RhpcBLASctl)
n <- 20e3
p <- 1e3
mat <- matrix(runif(n*p), n, p)
# by default: using all cores, as `elapsed` < `user`
system.time(crossprod(mat))
#> user system elapsed
#> 0.605 0.001 0.176
# check #cores
get_n... |
#' wbanalysis: Analysis of "The World Bank" data
#'
#' Easy way to quickly analyze World Bank datasets and generate a tidy dataframe.
#'
#' @author Sergio Picascia \email{sergio.picascia@studenti.unimi.it}
#'
#' @docType package
#' @name wbanalysis
"_PACKAGE"
| /R/wbanalysis.R | no_license | sergiopicascia/wbanalysis | R | false | false | 260 | r | #' wbanalysis: Analysis of "The World Bank" data
#'
#' Easy way to quickly analyze World Bank datasets and generate a tidy dataframe.
#'
#' @author Sergio Picascia \email{sergio.picascia@studenti.unimi.it}
#'
#' @docType package
#' @name wbanalysis
"_PACKAGE"
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gr_viz.R
\name{initializeGrPlot}
\alias{initializeGrPlot}
\title{GR Viz: Initializes the parameters for GRanges visualization and Cytoband tracks}
\usage{
initializeGrPlot(cytoband.gr, target.chr = NULL, plot.chrom = TRUE, ...)
}
\arguments{
... | /PLTK/man/initializeGrPlot.Rd | no_license | cyang3/PLTK | R | false | true | 831 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gr_viz.R
\name{initializeGrPlot}
\alias{initializeGrPlot}
\title{GR Viz: Initializes the parameters for GRanges visualization and Cytoband tracks}
\usage{
initializeGrPlot(cytoband.gr, target.chr = NULL, plot.chrom = TRUE, ...)
}
\arguments{
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/measEq.R
\name{measEq.syntax}
\alias{measEq.syntax}
\title{Syntax for measurement equivalence}
\usage{
measEq.syntax(configural.model, ..., ID.fac = "std.lv",
ID.cat = "Wu.Estabrook.2016", ID.thr = c(1L, 2L), group = NULL,
group.equal = "... | /semTools/man/measEq.syntax.Rd | no_license | Bandarj76/semTools | R | false | true | 26,857 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/measEq.R
\name{measEq.syntax}
\alias{measEq.syntax}
\title{Syntax for measurement equivalence}
\usage{
measEq.syntax(configural.model, ..., ID.fac = "std.lv",
ID.cat = "Wu.Estabrook.2016", ID.thr = c(1L, 2L), group = NULL,
group.equal = "... |
# txt -----------------------
#' Imports coordinates from a .txt file
#'
#' A wrapper around \link{read.table} that can be used to import outline/landmark coordinates.
#'
#' By default, it works with the default arguments of \link{read.table}, e.g. assumes that the
#' columns are not named in the \code{.txt} files. You... | /R/babel-import.R | no_license | Alexis-D/Momocs | R | false | false | 42,322 | r | # txt -----------------------
#' Imports coordinates from a .txt file
#'
#' A wrapper around \link{read.table} that can be used to import outline/landmark coordinates.
#'
#' By default, it works with the default arguments of \link{read.table}, e.g. assumes that the
#' columns are not named in the \code{.txt} files. You... |
\name{rface.train}
\alias{rface.train}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Builds an RF-ACE predictor object.
}
\description{
Builds an RF-ACE predictor object.
}
\usage{
predictorObj <- rface.train(trainData, target, featureWeights = vector(length=0), nTrees = 100, mTry = 10, node... | /man/rface.train.Rd | no_license | IlyaLab/rf-ace | R | false | false | 2,365 | rd | \name{rface.train}
\alias{rface.train}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Builds an RF-ACE predictor object.
}
\description{
Builds an RF-ACE predictor object.
}
\usage{
predictorObj <- rface.train(trainData, target, featureWeights = vector(length=0), nTrees = 100, mTry = 10, node... |
files <- read.delim("output/extract_files/part-m-00000", header=F)
pdf(file="output/extract_files/plot.pdf")
plot(files$V12)
| /r/examples/extract_files.r | no_license | RIPE-NCC/packetpig | R | false | false | 127 | r | files <- read.delim("output/extract_files/part-m-00000", header=F)
pdf(file="output/extract_files/plot.pdf")
plot(files$V12)
|
test_that("Expanding a normal URI returns it unchanged", {
uri_paths <- c("Al/Fi/ADLM", "Al/Bu/ADLM", "Co/Fi/ADLM", "Co/Bu/ADLM", "Co/Bu/DeltaT", "Co/Bu/AccessDB", "Ro/Fi/ADLM")
test_struct <- .createDummyLevel2ObjectStructure(uri_paths)
uri <- Level2URI("Al/Fi/ADLM")
expect_equal(expandURIPlaceholder(... | /tests/testthat/test-expandURIPlaceholder.R | no_license | Sumpfohreule/S4Level2 | R | false | false | 4,348 | r | test_that("Expanding a normal URI returns it unchanged", {
uri_paths <- c("Al/Fi/ADLM", "Al/Bu/ADLM", "Co/Fi/ADLM", "Co/Bu/ADLM", "Co/Bu/DeltaT", "Co/Bu/AccessDB", "Ro/Fi/ADLM")
test_struct <- .createDummyLevel2ObjectStructure(uri_paths)
uri <- Level2URI("Al/Fi/ADLM")
expect_equal(expandURIPlaceholder(... |
% Copyright 2001 by Roger S. Bivand
\name{plot.nb}
\alias{plot.nb}
\title{Plot a neighbours list}
\description{
A function to plot a neighbours list given point coordinates to represent the region in two dimensions.
}
\usage{
plot.nb(x, coords, col="black", points=TRUE, add=FALSE, ...)
}
\arguments{
\item{x}{an obje... | /man/plot.nb.Rd | no_license | cran/spweights | R | false | false | 901 | rd | % Copyright 2001 by Roger S. Bivand
\name{plot.nb}
\alias{plot.nb}
\title{Plot a neighbours list}
\description{
A function to plot a neighbours list given point coordinates to represent the region in two dimensions.
}
\usage{
plot.nb(x, coords, col="black", points=TRUE, add=FALSE, ...)
}
\arguments{
\item{x}{an obje... |
#!/usr/bin/Rscript
# Author - Jacob Griffiths, jacob.griffiths18@imperial.ac.uk
# Date - Nov 2018
rm(list=ls())
graphics.off()
#1 - measure species richness based on input vector
species_richness <- function(community){
return(length(unique(community)))
}
#2 - function to define max possible species in community
initia... | /Week4/Code/.Rhistory | no_license | jgnotts23/CMEECourseWork | R | false | false | 13,475 | rhistory | #!/usr/bin/Rscript
# Author - Jacob Griffiths, jacob.griffiths18@imperial.ac.uk
# Date - Nov 2018
rm(list=ls())
graphics.off()
#1 - measure species richness based on input vector
species_richness <- function(community){
return(length(unique(community)))
}
#2 - function to define max possible species in community
initia... |
# Load required libraries
library(shiny)
library(MBmca)
library(ggplot2)
library(dplyr)
library(reshape2)
library(mclust)
library(plotly)
library(xtable)
library(shinyjs)
library(tidyverse)
library(factoextra)
library(cluster)
library(dbscan)
# Define UI for application that draws a histogram
ui <- fluidPage(
# ... | /app.R | permissive | pavlohrab/hrmR | R | false | false | 25,762 | r | # Load required libraries
library(shiny)
library(MBmca)
library(ggplot2)
library(dplyr)
library(reshape2)
library(mclust)
library(plotly)
library(xtable)
library(shinyjs)
library(tidyverse)
library(factoextra)
library(cluster)
library(dbscan)
# Define UI for application that draws a histogram
ui <- fluidPage(
# ... |
required_fuel <- function(mass) {
sum(floor(mass / 3) - 2)
}
input <- read.csv("day-1/input_part-1.txt", header = FALSE)
required_fuel(input)
| /day-1/part-1.R | no_license | RLesur/adventofcode2019 | R | false | false | 146 | r | required_fuel <- function(mass) {
sum(floor(mass / 3) - 2)
}
input <- read.csv("day-1/input_part-1.txt", header = FALSE)
required_fuel(input)
|
library(datasets)
library(googleVis)
data(quakes)
near.quake <- function(ilat, ilong)
{
dist <- mapply(earth.dist, quakes$long, quakes$lat, ilong, ilat, SIMPLIFY = TRUE)
min_dist <- c(min(dist), which.min(dist))
}
# Calculate distance in kilometers between two points
earth.dist <- function (long1, lat1, lon... | /fiji_quakes.R | no_license | rishabhgit/shinyfiji | R | false | false | 621 | r | library(datasets)
library(googleVis)
data(quakes)
near.quake <- function(ilat, ilong)
{
dist <- mapply(earth.dist, quakes$long, quakes$lat, ilong, ilat, SIMPLIFY = TRUE)
min_dist <- c(min(dist), which.min(dist))
}
# Calculate distance in kilometers between two points
earth.dist <- function (long1, lat1, lon... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/area_square.R
\name{area_square}
\alias{area_square}
\title{Calculate the area of a square}
\usage{
area_square(s)
}
\arguments{
\item{s}{length of a side.}
}
\value{
The area of the square
}
\description{
Calculate the area of a square
}
\ex... | /man/area_square.Rd | no_license | katiesocolow/Week_2_Project_Package | R | false | true | 361 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/area_square.R
\name{area_square}
\alias{area_square}
\title{Calculate the area of a square}
\usage{
area_square(s)
}
\arguments{
\item{s}{length of a side.}
}
\value{
The area of the square
}
\description{
Calculate the area of a square
}
\ex... |
#' Termvectors
#'
#' @export
#' @param conn an Elasticsearch connection object, see [connect()]
#' @param index (character) The index in which the document resides.
#' @param type (character) The type of the document. optional
#' @param id (character) The id of the document, when not specified a doc
#' param should be ... | /R/termvectors.R | permissive | nuest/elastic | R | false | false | 4,450 | r | #' Termvectors
#'
#' @export
#' @param conn an Elasticsearch connection object, see [connect()]
#' @param index (character) The index in which the document resides.
#' @param type (character) The type of the document. optional
#' @param id (character) The id of the document, when not specified a doc
#' param should be ... |
library(dplyr)
library(ggplot2)
library(viridis)
data <- read.table("Z:/ml_paper_figs/boxplotsdf.txt",header=T,stringsAsFactors = F)
#rearrange pop and ML order
data <- mutate(data,pop=factor(pop,levels=c("ALL","AFA","HIS","CAU")),model=factor(model,levels=c("EN","RF","SVR","KNN")))
fig <- ggplot(data,aes(x=pop,y=cvR... | /Paper_plots/figS4_cvR2_boxplots.R | no_license | WheelerLab/ML-PredictDB | R | false | false | 755 | r | library(dplyr)
library(ggplot2)
library(viridis)
data <- read.table("Z:/ml_paper_figs/boxplotsdf.txt",header=T,stringsAsFactors = F)
#rearrange pop and ML order
data <- mutate(data,pop=factor(pop,levels=c("ALL","AFA","HIS","CAU")),model=factor(model,levels=c("EN","RF","SVR","KNN")))
fig <- ggplot(data,aes(x=pop,y=cvR... |
library(IncucyteDRC)
### Name: exportDRCDataToPRISM
### Title: exportDRCDataToPRISM
### Aliases: exportDRCDataToPRISM
### ** Examples
pm_file <- system.file(file='extdata/example.PlateMap', package='IncucyteDRC')
test_pm <- importPlatemapXML(pm_file)
data_file <- system.file(file='extdata/example_data.txt', package... | /data/genthat_extracted_code/IncucyteDRC/examples/exportDRCDataToPRISM.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 856 | r | library(IncucyteDRC)
### Name: exportDRCDataToPRISM
### Title: exportDRCDataToPRISM
### Aliases: exportDRCDataToPRISM
### ** Examples
pm_file <- system.file(file='extdata/example.PlateMap', package='IncucyteDRC')
test_pm <- importPlatemapXML(pm_file)
data_file <- system.file(file='extdata/example_data.txt', package... |
# Data Mining Project Code1
#### Parts of the code are taken from the book Machine Learning for Hackers
# Calculating the top 100 words that can be used a spam for prediction
#-----------------------------------------------------------------------
# List of Libraries used
library(tm)
library(stringr)
library(plyr)
... | /ProjCod_spmwrd.R | no_license | prateek47/Email-Spam-Filter | R | false | false | 10,634 | r | # Data Mining Project Code1
#### Parts of the code are taken from the book Machine Learning for Hackers
# Calculating the top 100 words that can be used a spam for prediction
#-----------------------------------------------------------------------
# List of Libraries used
library(tm)
library(stringr)
library(plyr)
... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinverse <- function(inverse) inv <<- i... | /cachematrix.R | no_license | yx357/ProgrammingAssignment2 | R | false | false | 705 | 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()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinverse <- function(inverse) inv <<- i... |
rm(list=ls())
setwd("D:/R/Codes")
#Loading necessary packages
x = c("corrplot","fastDummies","randomForest")
install.packages(x)
#Reading the data
df = read.csv("day.csv", header = T)
#Printing top 5 rows
head(df,5)
#Analysing the data types and structure of the data
str(df)
#Removing instant variables as its just... | /Bike_Renting_Final_R.R | no_license | ujwalkumar1995/Bike-Renting-Project | R | false | false | 4,188 | r | rm(list=ls())
setwd("D:/R/Codes")
#Loading necessary packages
x = c("corrplot","fastDummies","randomForest")
install.packages(x)
#Reading the data
df = read.csv("day.csv", header = T)
#Printing top 5 rows
head(df,5)
#Analysing the data types and structure of the data
str(df)
#Removing instant variables as its just... |
context("test-main_functions")
## Data and Model -----------------------------------------------------
# Prepare training and testing data
x_train = sine_data_train[c("x1", "x2", "x3")]
y_train = factor(sine_data_train$y)
x_test = sine_data_test[1:5, c("x1", "x2", "x3")]
y_test = factor(sine_data_test$y)[1:5]
# Fit ... | /tests/testthat/test-main.R | no_license | goodekat/limeaid | R | false | false | 4,460 | r | context("test-main_functions")
## Data and Model -----------------------------------------------------
# Prepare training and testing data
x_train = sine_data_train[c("x1", "x2", "x3")]
y_train = factor(sine_data_train$y)
x_test = sine_data_test[1:5, c("x1", "x2", "x3")]
y_test = factor(sine_data_test$y)[1:5]
# Fit ... |
context('mod')
test_that('moderation works', {
set.seed(1234)
X <- rnorm(100)
M <- rnorm(100)
X_M <- X*M
Y <- 0.7*X + 0.1*M + 4.2*X_M + rnorm(100)
data <- data.frame(X=X, M=M, Y=Y)
r <- medmod::mod(data, dep = "Y", pred = "X", mod = "M", simpleSlopeEst = TRUE)
mod <- r$mo... | /tests/testthat/testmod.R | no_license | cran/medmod | R | false | false | 770 | r | context('mod')
test_that('moderation works', {
set.seed(1234)
X <- rnorm(100)
M <- rnorm(100)
X_M <- X*M
Y <- 0.7*X + 0.1*M + 4.2*X_M + rnorm(100)
data <- data.frame(X=X, M=M, Y=Y)
r <- medmod::mod(data, dep = "Y", pred = "X", mod = "M", simpleSlopeEst = TRUE)
mod <- r$mo... |
##
## q3regression.r
##
## Differentially private regression
##
## JH 2019/03/10
##
### PART (A)
# optimal upper bound found in previous part
b.optimal <- 15
# data generating process
dgp <- function (n, lambda=10) {
rpois(n, lambda)
}
# sign function
sgn <- function(x) {
return(ifelse(x < 0, -1, 1))
}
# cla... | /hw2/q3.R | no_license | TurboFreeze/cs208hw | R | false | false | 6,222 | r | ##
## q3regression.r
##
## Differentially private regression
##
## JH 2019/03/10
##
### PART (A)
# optimal upper bound found in previous part
b.optimal <- 15
# data generating process
dgp <- function (n, lambda=10) {
rpois(n, lambda)
}
# sign function
sgn <- function(x) {
return(ifelse(x < 0, -1, 1))
}
# cla... |
print ("This file was created within RStudio")
print("And now it lives on GitHub")
#Datos para determinar el Minimal Detectable Flux - f. detect - app Dr. Hüppi
#para cinco minutos riego 1 y 2
# tiempo: 0; 0.006; 0.012; 0.018; 0.024; 0.030; 0.036; 0.042; 0.048; 0.054; 0.061; 0.067; 0.073; 0.079; 0.085; 0.091
# cámara... | /Script/Script CO2_riego1y2_18oct.R | no_license | CarlaHudler/Ranalisis_CO2 | R | false | false | 1,402 | r | print ("This file was created within RStudio")
print("And now it lives on GitHub")
#Datos para determinar el Minimal Detectable Flux - f. detect - app Dr. Hüppi
#para cinco minutos riego 1 y 2
# tiempo: 0; 0.006; 0.012; 0.018; 0.024; 0.030; 0.036; 0.042; 0.048; 0.054; 0.061; 0.067; 0.073; 0.079; 0.085; 0.091
# cámara... |
# The following two functions are used to cache the inverse of a matrix.
# makeCacheMatrix returns a list of attributes
# 1. sets the value of the matrix
# 2. gets the value of the matrix
# 3. sets the value of inverse of the matrix
# 4. gets the value of inverse of the matrix
makeCacheMatrix <- function(x = matrix(... | /cachematrix.R | no_license | murali-munna/ProgrammingAssignment2 | R | false | false | 1,387 | r | # The following two functions are used to cache the inverse of a matrix.
# makeCacheMatrix returns a list of attributes
# 1. sets the value of the matrix
# 2. gets the value of the matrix
# 3. sets the value of inverse of the matrix
# 4. gets the value of inverse of the matrix
makeCacheMatrix <- function(x = matrix(... |
# Sample_Measures_Script.R
# This script will process a list of measure specifications across the Years in a Scenario Datastore
# and generate a .csv file that contains the measures.
# Default/Example measures in Test-Spec.R will work with output from the sample VE_RSPM. Adjust the
# Test-Spec.R file for your own MAre... | /sources/tools/Queries/Sample-Query-Script.R | permissive | sid-marain/VisionEval | R | false | false | 17,362 | r | # Sample_Measures_Script.R
# This script will process a list of measure specifications across the Years in a Scenario Datastore
# and generate a .csv file that contains the measures.
# Default/Example measures in Test-Spec.R will work with output from the sample VE_RSPM. Adjust the
# Test-Spec.R file for your own MAre... |
## These functions check to see if the inverse of a matrix has already
## been cached, and the inverse has not been cached, it calculates
## the inverse of the matrix and caches it so that the repetitive and
## potentially costly computation is not repeated unnecessarily
# first function creates a function to cache ma... | /cachematrix.R | no_license | Feltovich/ProgrammingAssignment2 | R | false | false | 1,335 | r | ## These functions check to see if the inverse of a matrix has already
## been cached, and the inverse has not been cached, it calculates
## the inverse of the matrix and caches it so that the repetitive and
## potentially costly computation is not repeated unnecessarily
# first function creates a function to cache ma... |
#mpg.R
# summarize city mpg
# author: Dylan Scott
summarize(mpg$city)
| /R Code/mpg.R | no_license | scottdyl/Unit-1 | R | false | false | 71 | r | #mpg.R
# summarize city mpg
# author: Dylan Scott
summarize(mpg$city)
|
# R script for Peak Model
# -- generated by MACS
p <- c(0.0429802181072,0.0501678998342,0.0574042056465,0.0647568619481,0.0719306510795,0.0719375973773,0.0722414979094,0.0724759354627,0.0724047359095,0.072406472484,0.0719862214625,0.0719619094199,0.0717934616964,0.0717986714198,0.0717726228028,0.0719323876539,0.071774... | /SLX-8047_dmhs/peaks/SLX-8047.D704_D506.C81G5ANXX.s_1.r_1.fq.gz_model.r | no_license | andrewholding/BrundleDevelopment | R | false | false | 78,222 | r | # R script for Peak Model
# -- generated by MACS
p <- c(0.0429802181072,0.0501678998342,0.0574042056465,0.0647568619481,0.0719306510795,0.0719375973773,0.0722414979094,0.0724759354627,0.0724047359095,0.072406472484,0.0719862214625,0.0719619094199,0.0717934616964,0.0717986714198,0.0717726228028,0.0719323876539,0.071774... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_create_thing_group}
\alias{iot_create_thing_group}
\title{Create a thing group}
\usage{
iot_create_thing_group(thingGroupName, parentGroupName,
thingGroupProperties, tags)
}
\arguments{
\item{thingGroupName}{[requ... | /paws/man/iot_create_thing_group.Rd | permissive | sanchezvivi/paws | R | false | true | 1,196 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_create_thing_group}
\alias{iot_create_thing_group}
\title{Create a thing group}
\usage{
iot_create_thing_group(thingGroupName, parentGroupName,
thingGroupProperties, tags)
}
\arguments{
\item{thingGroupName}{[requ... |
setup_MarkdownReports(OutDir = '~/GitHub/TheCorvinas/Biology/Sequencing/mm10/Gene.Duplication.Multicopy.genes.Amplicons.chrX/')
Multicopy.GeneFamilies.chrX.mm10 = c( 'EG668965', 'Gmcl1', 'Ssxb', 'Fthl17', 'Zfp161', 'Slx', 'E330016L19Rik', 'Rhox', 'Cxx1', '4930527E24Rik', 'Magea', '4930567H17Rik', 'Xlr', 'Sstx', 'EG4... | /Biology/Sequencing/mm10/Gene.Duplication.Multicopy.genes.Amplicons.chrX/Multicopy.Chr.X.ampliconic.R | no_license | vertesy/TheCorvinas | R | false | false | 1,735 | r |
setup_MarkdownReports(OutDir = '~/GitHub/TheCorvinas/Biology/Sequencing/mm10/Gene.Duplication.Multicopy.genes.Amplicons.chrX/')
Multicopy.GeneFamilies.chrX.mm10 = c( 'EG668965', 'Gmcl1', 'Ssxb', 'Fthl17', 'Zfp161', 'Slx', 'E330016L19Rik', 'Rhox', 'Cxx1', '4930527E24Rik', 'Magea', '4930567H17Rik', 'Xlr', 'Sstx', 'EG4... |
\name{targets}
\alias{targets}
\docType{data}
\title{List containing definitions of several circular target types from the shooting federations ISSF, NRA, DSB, BDS, BDMP, DSU}
\description{
List containing definitions of several circular german (DSB, BDS, BDMP, DSU), ISSF, and NRA target types.
}
\usage{data(tar... | /man/targets.Rd | no_license | cran/shotGroups | R | false | false | 5,603 | rd | \name{targets}
\alias{targets}
\docType{data}
\title{List containing definitions of several circular target types from the shooting federations ISSF, NRA, DSB, BDS, BDMP, DSU}
\description{
List containing definitions of several circular german (DSB, BDS, BDMP, DSU), ISSF, and NRA target types.
}
\usage{data(tar... |
shinyUI(fluidPage(
titlePanel("USA region Geographic vs. Economic Cost impact on Selective Disease"),
fluidRow(
h5("Author : Sarabjeet Singh, Date : June 21, 2015"),
h5("Pitch for this project is available in the slides at RPubs link "),
a(href="http://rpubs.com/sjsingh21/87709", "http://rpubs... | /ui.R | no_license | sjsingh21/09-Developing-Data-Products | R | false | false | 2,535 | r | shinyUI(fluidPage(
titlePanel("USA region Geographic vs. Economic Cost impact on Selective Disease"),
fluidRow(
h5("Author : Sarabjeet Singh, Date : June 21, 2015"),
h5("Pitch for this project is available in the slides at RPubs link "),
a(href="http://rpubs.com/sjsingh21/87709", "http://rpubs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shared_annotation_enrichment.R
\name{shared_annotation_enrichment}
\alias{shared_annotation_enrichment}
\title{Calculate a Z score for enrichment for shared annotations}
\usage{
shared_annotation_enrichment(network, shared, bootstraps = 100, ... | /man/shared_annotation_enrichment.Rd | permissive | skinnider/flavin | R | false | true | 1,244 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shared_annotation_enrichment.R
\name{shared_annotation_enrichment}
\alias{shared_annotation_enrichment}
\title{Calculate a Z score for enrichment for shared annotations}
\usage{
shared_annotation_enrichment(network, shared, bootstraps = 100, ... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1792
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1708
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1708
c
c Input Parameter (command line, fil... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Rintanen/Sorting_networks/sortnetsort8.v.stepl.003/sortnetsort8.v.stepl.003.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 910 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1792
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1708
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1708
c
c Input Parameter (command line, fil... |
#' Vintage British Rail Palettes
#'
#'A collection of colour palettes inspired by vintage British Rail posters
#'
#'
#' Available palletes:
#'
#' aberdeen
#' cornwall
#' harrogate
#' penzance
#' somerset
#' wales
#' yorkshirecoast
#'
#'@examples
#'
#' # devtools::install_github("petermacp/pmthemes")
#'
#' # Make a p... | /R/colours.R | no_license | petermacp/pmthemes | R | false | false | 780 | r | #' Vintage British Rail Palettes
#'
#'A collection of colour palettes inspired by vintage British Rail posters
#'
#'
#' Available palletes:
#'
#' aberdeen
#' cornwall
#' harrogate
#' penzance
#' somerset
#' wales
#' yorkshirecoast
#'
#'@examples
#'
#' # devtools::install_github("petermacp/pmthemes")
#'
#' # Make a p... |
getairq <- function(city, variables)
{
#getairq(attributes,lat,lon, since, to): Function is for getting airquality data related to
#location defined by user
#This function returns air quality data related to user defined variables.
drv <- dbDriver("PostgreSQL")
#connectiong server
#connecting server
con <-... | /airqualitr/R/getairq.R | permissive | olgnaydn/airqualitr | R | false | false | 857 | r | getairq <- function(city, variables)
{
#getairq(attributes,lat,lon, since, to): Function is for getting airquality data related to
#location defined by user
#This function returns air quality data related to user defined variables.
drv <- dbDriver("PostgreSQL")
#connectiong server
#connecting server
con <-... |
all_binders_table <- read.csv("../ExpressionAnalysis/aws_MiHAIP-v1.4.5_analysis/All_BinderOut_trimed_tau_mata.txt", header = T)
colnames(all_binders_table) <- c("GroupID", "HetHom", "CHROM", "POS",
"DonorNT", "DonorNTfreq", "RecipientNT", "RecipientNTfreq",
... | /test/Expression_binder_analysis.R | permissive | hhuang2018/WGS_analysis | R | false | false | 8,912 | r | all_binders_table <- read.csv("../ExpressionAnalysis/aws_MiHAIP-v1.4.5_analysis/All_BinderOut_trimed_tau_mata.txt", header = T)
colnames(all_binders_table) <- c("GroupID", "HetHom", "CHROM", "POS",
"DonorNT", "DonorNTfreq", "RecipientNT", "RecipientNTfreq",
... |
# TFM, Master en Metodos Computacionales UNAV
#Autor: Ane Martinez Larrinaga
#Tutores: Silvestre Vicent Cambra y Mikel Hernaez
#Fecha: 19-07-2021
#OBJETIVO:Trabajo con los factores de transcripcion
#######################################################################################################################... | /17_FactoresTranscripcion/1_AnalisisFactoresdeTranscripcion-MacBook Pro de Ane.R | no_license | anemartinezlarrinaga2898/TFM_ANE_MARTINEZ | R | false | false | 8,867 | r | # TFM, Master en Metodos Computacionales UNAV
#Autor: Ane Martinez Larrinaga
#Tutores: Silvestre Vicent Cambra y Mikel Hernaez
#Fecha: 19-07-2021
#OBJETIVO:Trabajo con los factores de transcripcion
#######################################################################################################################... |
userprofile <- read.csv("C:/Users/GALAXY AUTOMATION/Desktop/data sci/Datasets/userprofile.csv")
plot_missing(userprofile)
library(tidyverse)
userprofile1<-userprofile[ ,c(-1,-2,-3)]
Zomato.Chennai.Listing.2020 <- read.csv("C:/Users/GALAXY AUTOMATION/Desktop/data sci/Datasets/Zomato Chennai Listing 2020.csv")
sum(i... | /main code.R | no_license | RahulGogawale/Data-science | R | false | false | 7,428 | r | userprofile <- read.csv("C:/Users/GALAXY AUTOMATION/Desktop/data sci/Datasets/userprofile.csv")
plot_missing(userprofile)
library(tidyverse)
userprofile1<-userprofile[ ,c(-1,-2,-3)]
Zomato.Chennai.Listing.2020 <- read.csv("C:/Users/GALAXY AUTOMATION/Desktop/data sci/Datasets/Zomato Chennai Listing 2020.csv")
sum(i... |
data <- read.csv("hw1_data.csv")
names(data) # names of the columns
data[1:2,] # first two rows
nrow(data) #number of rows
data [152:153,]
data [47,]
# Ozone values with NA excluded
data2 <- na.omit(data$Ozone)
# number of rows with missing Ozone value
nrow(data) - length(data2)
# What is the mean of the Ozone col... | /Week 1/Week1.R | no_license | AleksanderKufel/R_Programming_Course | R | false | false | 895 | r | data <- read.csv("hw1_data.csv")
names(data) # names of the columns
data[1:2,] # first two rows
nrow(data) #number of rows
data [152:153,]
data [47,]
# Ozone values with NA excluded
data2 <- na.omit(data$Ozone)
# number of rows with missing Ozone value
nrow(data) - length(data2)
# What is the mean of the Ozone col... |
#' \code{chart_Seasonal}
#' @description Seasonal plot
#' @param x A univariate xts object to plot. The colnames() will be included in the chart title.
#' @param start_year A numeric YYYY start year from the xts object.
#' @param end_year A numeric YYYY end year from the xts object.
#' @param output "chart" for tre... | /R/chart_Seasonal.R | no_license | gordone90/RTL | R | false | false | 3,417 | r | #' \code{chart_Seasonal}
#' @description Seasonal plot
#' @param x A univariate xts object to plot. The colnames() will be included in the chart title.
#' @param start_year A numeric YYYY start year from the xts object.
#' @param end_year A numeric YYYY end year from the xts object.
#' @param output "chart" for tre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/webscrapping.R
\name{align_dataWithEndNoteIdcorpus}
\alias{align_dataWithEndNoteIdcorpus}
\title{Align databases based on shared ID}
\usage{
align_dataWithEndNoteIdcorpus(data, EndNoteIdcorpus, EndNoteIdLDA)
}
\arguments{
\item{EndNoteIdcorpu... | /man/align_dataWithEndNoteIdcorpus.Rd | permissive | hrvg/wateReview | R | false | true | 537 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/webscrapping.R
\name{align_dataWithEndNoteIdcorpus}
\alias{align_dataWithEndNoteIdcorpus}
\title{Align databases based on shared ID}
\usage{
align_dataWithEndNoteIdcorpus(data, EndNoteIdcorpus, EndNoteIdLDA)
}
\arguments{
\item{EndNoteIdcorpu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forest_variable_importance.R
\name{varImpCoeff}
\alias{varImpCoeff}
\title{Random Forest Variable Importance based on spline coefficients}
\usage{
varImpCoeff(forest, removeIntercept = TRUE, method = "oob")
}
\arguments{
\item{forest}{a rando... | /man/varImpCoeff.Rd | no_license | anna-neufeld/splinetree | R | false | true | 975 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forest_variable_importance.R
\name{varImpCoeff}
\alias{varImpCoeff}
\title{Random Forest Variable Importance based on spline coefficients}
\usage{
varImpCoeff(forest, removeIntercept = TRUE, method = "oob")
}
\arguments{
\item{forest}{a rando... |
#' Pruned Exact Linear Time
#' @param data = sequence of data
#' @param measure = a function measuring error of fiting (higher value = worse fitting)
#' @param beta = penalty
#' @param K = pruning penalty
#' @param markov = whether we are modelling the data in markov, if yes, we return the trans prob of segments a... | /R/PELT.R | no_license | OxWaSP2018/mcchangepoints | R | false | false | 2,013 | r | #' Pruned Exact Linear Time
#' @param data = sequence of data
#' @param measure = a function measuring error of fiting (higher value = worse fitting)
#' @param beta = penalty
#' @param K = pruning penalty
#' @param markov = whether we are modelling the data in markov, if yes, we return the trans prob of segments a... |
#' @rdname ukbabynames
#' @aliases ukbabynames ukbabynames-package
#' @title UK baby names
#' @description Full baby name 1996-2017 for the United Kingdom from the Office of National Statistics
#'
#' @format
#' A data frame with 254889 observations on 5 variables.
#' \tabular{rll}{
#' [, 1] \tab year \tab A y... | /R/data.R | no_license | pa0/ukbabynames | R | false | false | 2,373 | r | #' @rdname ukbabynames
#' @aliases ukbabynames ukbabynames-package
#' @title UK baby names
#' @description Full baby name 1996-2017 for the United Kingdom from the Office of National Statistics
#'
#' @format
#' A data frame with 254889 observations on 5 variables.
#' \tabular{rll}{
#' [, 1] \tab year \tab A y... |
#library(rcommon)
#' @export
get_mus = function(out, a=.05) {
mus_0 = sapply(out, function(o) o$mus_0)
mus_1 = sapply(out, function(o) o$mus_1)
mus = rbind(mus_0, mus_1)
ci_mus = apply(mus, 1, quantile, c(a/2, 1-a/2))
L0 = NROW(mus_0)
L1 = NROW(mus_1)
list(mus=mus, ci_mus=ci_mus, L0=L0, L1=L1)
}
#' @ex... | /cytof/src/model3/cytof3/R/plot_mus.R | no_license | luiarthur/ucsc_litreview | R | false | false | 626 | r | #library(rcommon)
#' @export
get_mus = function(out, a=.05) {
mus_0 = sapply(out, function(o) o$mus_0)
mus_1 = sapply(out, function(o) o$mus_1)
mus = rbind(mus_0, mus_1)
ci_mus = apply(mus, 1, quantile, c(a/2, 1-a/2))
L0 = NROW(mus_0)
L1 = NROW(mus_1)
list(mus=mus, ci_mus=ci_mus, L0=L0, L1=L1)
}
#' @ex... |
library(data.table)
source("futil.R")
file_list = vector();
file_list = append(file_list,"submission-script-001-94.3.csv") # PB: 0.39319
file_list = append(file_list,"submission-4-001-91.csv") # PB: 0.39419
#file_list = append(file_list,"submission-script-4-001-93.csv")
#file_list = append(file_list,"submit... | /R/ensembler.15.R | no_license | tudor-m/Kaggle-Bosch | R | false | false | 2,407 | r | library(data.table)
source("futil.R")
file_list = vector();
file_list = append(file_list,"submission-script-001-94.3.csv") # PB: 0.39319
file_list = append(file_list,"submission-4-001-91.csv") # PB: 0.39419
#file_list = append(file_list,"submission-script-4-001-93.csv")
#file_list = append(file_list,"submit... |
#' Read Southern Ocean Mean Sea Level Anomaly (MSLA) data.
#'
#' %% ~~ A concise (1-5 lines) description of what the function does. ~~
#'
#' %% ~~ If necessary, more details than the description above ~~
#'
#' @param xlim %% ~~Describe \code{xlim} here~~
#' @param ylim %% ~~Describe \code{ylim} here~~
#' @param tlim... | /R/readMSLA.R | no_license | mdsumner/mdsutils | R | false | false | 3,761 | r | #' Read Southern Ocean Mean Sea Level Anomaly (MSLA) data.
#'
#' %% ~~ A concise (1-5 lines) description of what the function does. ~~
#'
#' %% ~~ If necessary, more details than the description above ~~
#'
#' @param xlim %% ~~Describe \code{xlim} here~~
#' @param ylim %% ~~Describe \code{ylim} here~~
#' @param tlim... |
while (abs(dc)>=1e-07){ #loop while the absolute value of dc > or = 0.1 ppm
niter=niter+1 # add to counter
cc0=cc0-dc/10 # update the value of cc0 based on dc from the previous loop
pCO2c=cc0*ptot # convert cc0 to partial pressure used in script
source('doPS_pCO2c.R') # run ... | /doPS_g0.R | no_license | kkraoj/Ecophysiology | R | false | false | 772 | r | while (abs(dc)>=1e-07){ #loop while the absolute value of dc > or = 0.1 ppm
niter=niter+1 # add to counter
cc0=cc0-dc/10 # update the value of cc0 based on dc from the previous loop
pCO2c=cc0*ptot # convert cc0 to partial pressure used in script
source('doPS_pCO2c.R') # run ... |
# XXX (2017). The development of linguistic prediction: Predictions of sound and meaning in 2-to-5 year olds.
# Time to first look to target on Distractor initial trials (from Determiner Onset)
# Experiment 2
fixsumbinT.D<-read.table("First_fix_Det.txt",header=T)
##means by Onset and OldNew and Agecat
summaryBy(FixStar... | /Exp2/recognition/ttff_strict.R | no_license | chiara-gambi/phonpred | R | false | false | 3,057 | r | # XXX (2017). The development of linguistic prediction: Predictions of sound and meaning in 2-to-5 year olds.
# Time to first look to target on Distractor initial trials (from Determiner Onset)
# Experiment 2
fixsumbinT.D<-read.table("First_fix_Det.txt",header=T)
##means by Onset and OldNew and Agecat
summaryBy(FixStar... |
\name{WGScan.VCF.chr}
\alias{WGScan.VCF.chr}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Scan a VCF file to study the association between an quantitative/dichotomous outcome variable and a region or whole chromosome by score type statistics allowing for multiple functional annotation scores.
... | /man/WGScan.VCF.chr.Rd | no_license | cran/WGScan | R | false | false | 5,081 | rd | \name{WGScan.VCF.chr}
\alias{WGScan.VCF.chr}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Scan a VCF file to study the association between an quantitative/dichotomous outcome variable and a region or whole chromosome by score type statistics allowing for multiple functional annotation scores.
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getActive.R
\name{getActive}
\alias{getActive}
\title{Returns active variables}
\usage{
getActive(
object,
index = NULL,
type = c("nonzero", "linear", "nonlinear"),
EPS = 0
)
}
\arguments{
\item{object}{gamsel object}
\item{index}{in... | /man/getActive.Rd | no_license | cran/gamsel | R | false | true | 772 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getActive.R
\name{getActive}
\alias{getActive}
\title{Returns active variables}
\usage{
getActive(
object,
index = NULL,
type = c("nonzero", "linear", "nonlinear"),
EPS = 0
)
}
\arguments{
\item{object}{gamsel object}
\item{index}{in... |
\name{E6.1}
\alias{E6.1}
\title{ Data on Automobile Speed and Distance Covered to Come to a Standstill
after Breaking }
\concept{ Data on Automobile Speed and Distance Covered to Come to a Standstill after Breaking }
\usage{data(E6.1)}
\description{
The \code{E6.1} data frame has 62 rows and 2 columns.
}
\for... | /man/E6.1.Rd | no_license | cran/SenSrivastava | R | false | false | 774 | rd | \name{E6.1}
\alias{E6.1}
\title{ Data on Automobile Speed and Distance Covered to Come to a Standstill
after Breaking }
\concept{ Data on Automobile Speed and Distance Covered to Come to a Standstill after Breaking }
\usage{data(E6.1)}
\description{
The \code{E6.1} data frame has 62 rows and 2 columns.
}
\for... |
#' Get HTML view of EDGAR filings
#'
#' \code{getFilingsHTML} retrieves complete EDGAR filings and store them in
#' HTML format for view.
#'
#' getFilingsHTML function takes CIKs, form type, filing year, and quarter of the
#' filing as input. The function imports edgar filings downloaded
#' via \link[edgar]{ge... | /R/getFilingsHTML.R | no_license | Karnner2/edgar-upd | R | false | false | 4,704 | r | #' Get HTML view of EDGAR filings
#'
#' \code{getFilingsHTML} retrieves complete EDGAR filings and store them in
#' HTML format for view.
#'
#' getFilingsHTML function takes CIKs, form type, filing year, and quarter of the
#' filing as input. The function imports edgar filings downloaded
#' via \link[edgar]{ge... |
#' Peptide identification results of HeLa cells digested with LysC and Trypsin
#'
#' Identification results from a bottom-up proteomics experiment. HeLa cell lysate was digested with LysC, and Trypsin using TFE digestion protocol on an AmiconUltra 10K, and the digest was analyzed on a Thermo LTQ-Orbitrap XL in data-dep... | /R/LysCTryp.R | permissive | ohgane/DigestionSpecificity | R | false | false | 1,154 | r | #' Peptide identification results of HeLa cells digested with LysC and Trypsin
#'
#' Identification results from a bottom-up proteomics experiment. HeLa cell lysate was digested with LysC, and Trypsin using TFE digestion protocol on an AmiconUltra 10K, and the digest was analyzed on a Thermo LTQ-Orbitrap XL in data-dep... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R
\name{complex-methods}
\alias{complex-methods}
\alias{is_real}
\alias{is_imag}
\alias{is_complex}
\title{Complex Properties}
\usage{
is_real(object)
is_imag(object)
is_complex(object)
}
\arguments{
\item{object}{An \linkS4class{E... | /man/complex-methods.Rd | permissive | bedantaguru/CVXR | R | false | true | 444 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R
\name{complex-methods}
\alias{complex-methods}
\alias{is_real}
\alias{is_imag}
\alias{is_complex}
\title{Complex Properties}
\usage{
is_real(object)
is_imag(object)
is_complex(object)
}
\arguments{
\item{object}{An \linkS4class{E... |
# Export results
write.csv(summ, '../output/compound_concs.csv', row.names = FALSE)
write.csv(gsumm, '../output/group_concs.csv', row.names = FALSE)
| /02_production/scripts/export.R | no_license | sashahafner/silageVOC-EF-2020 | R | false | false | 150 | r | # Export results
write.csv(summ, '../output/compound_concs.csv', row.names = FALSE)
write.csv(gsumm, '../output/group_concs.csv', row.names = FALSE)
|
# Informatzaileak eta haien banaketa:
rm(list = ls())
df.chaea <- read.csv('data/raw/CHAEA/gordinik-CHAEA-zuritutaV2.csv')
# 'ordurako' funtzinoa, denpora-datuak denpora informazinotzat hartzeko
ordurako <- function(x)strptime(x, format = '%Y/%m/%e %k:%M:%S')
#' ZENBAT FAKULTATEAREN ARABERA,
#' % ZENBAT ADINAREN A... | /Aintzaneri-190318_PPTkoa.R | no_license | eudia-ehu/PIE-videocast | R | false | false | 3,627 | r | # Informatzaileak eta haien banaketa:
rm(list = ls())
df.chaea <- read.csv('data/raw/CHAEA/gordinik-CHAEA-zuritutaV2.csv')
# 'ordurako' funtzinoa, denpora-datuak denpora informazinotzat hartzeko
ordurako <- function(x)strptime(x, format = '%Y/%m/%e %k:%M:%S')
#' ZENBAT FAKULTATEAREN ARABERA,
#' % ZENBAT ADINAREN A... |
#' Identify the Data Type to Obtain the Eigenvalues
#'
#' The \code{eigenFrom} function identifies the data type from which to obtain the
#' eigenvalues. The function is used internally in many functions of
#' the \pkg{nFactors} package to be able to apply these to a vector of eigenvalues,
#' a matrix of correlati... | /R/eigenFrom.r | no_license | cran/nFactors | R | false | false | 2,855 | r | #' Identify the Data Type to Obtain the Eigenvalues
#'
#' The \code{eigenFrom} function identifies the data type from which to obtain the
#' eigenvalues. The function is used internally in many functions of
#' the \pkg{nFactors} package to be able to apply these to a vector of eigenvalues,
#' a matrix of correlati... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/insertLineOfOctothorpes.R
\name{insertLineOfOctothorpes}
\alias{insertLineOfOctothorpes}
\title{Insert forty octothorpes.}
\usage{
insertLineOfOctothorpes()
}
\description{
Call this function as an addin to insert 40 octothorpes, in order to ... | /man/insertLineOfOctothorpes.Rd | no_license | graiffgarcia/addinexamplesRG | R | false | true | 346 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/insertLineOfOctothorpes.R
\name{insertLineOfOctothorpes}
\alias{insertLineOfOctothorpes}
\title{Insert forty octothorpes.}
\usage{
insertLineOfOctothorpes()
}
\description{
Call this function as an addin to insert 40 octothorpes, in order to ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FootprintFinder.R
\docType{methods}
\name{getChromLoc,FootprintFinder-method}
\alias{getChromLoc,FootprintFinder-method}
\alias{getChromLoc}
\title{Get Chromasome Location}
\usage{
\S4method{getChromLoc}{FootprintFinder}(obj, name, biotype = ... | /man/getChromLoc.Rd | no_license | noahmclean1/trena-1 | R | false | true | 1,907 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FootprintFinder.R
\docType{methods}
\name{getChromLoc,FootprintFinder-method}
\alias{getChromLoc,FootprintFinder-method}
\alias{getChromLoc}
\title{Get Chromasome Location}
\usage{
\S4method{getChromLoc}{FootprintFinder}(obj, name, biotype = ... |
library(cernn)
### Name: shrink_eigen
### Title: Nonlinear shrinkage of sample eigenvalues
### Aliases: shrink_eigen
### ** Examples
set.seed(12345)
nLambda <- 100
lambda <- 10**seq(-2,2,length.out=nLambda)
alpha <- 0.5
n <- 10
p <- 5
d <- sort(2*runif(p))
e <- shrink_eigen(d,lambda,alpha,n)
## Plot regularization... | /data/genthat_extracted_code/cernn/examples/shrink_eigen.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 413 | r | library(cernn)
### Name: shrink_eigen
### Title: Nonlinear shrinkage of sample eigenvalues
### Aliases: shrink_eigen
### ** Examples
set.seed(12345)
nLambda <- 100
lambda <- 10**seq(-2,2,length.out=nLambda)
alpha <- 0.5
n <- 10
p <- 5
d <- sort(2*runif(p))
e <- shrink_eigen(d,lambda,alpha,n)
## Plot regularization... |
\alias{gtkPrintSettingsNewFromFile}
\name{gtkPrintSettingsNewFromFile}
\title{gtkPrintSettingsNewFromFile}
\description{Reads the print settings from \code{file.name}. Returns a new \code{\link{GtkPrintSettings}}
object with the restored settings, or \code{NULL} if an error occurred. If the
file could not be loaded the... | /RGtk2/man/gtkPrintSettingsNewFromFile.Rd | no_license | lawremi/RGtk2 | R | false | false | 988 | rd | \alias{gtkPrintSettingsNewFromFile}
\name{gtkPrintSettingsNewFromFile}
\title{gtkPrintSettingsNewFromFile}
\description{Reads the print settings from \code{file.name}. Returns a new \code{\link{GtkPrintSettings}}
object with the restored settings, or \code{NULL} if an error occurred. If the
file could not be loaded the... |
#integer
x<-2L
typeof(x)
#double
y<-2.5
typeof(y)
#complex
z<-3+2i
typeof(z)
#Character
a<-"h"
typeof(a)
#logical Variables
q1<- T
typeof(q1)
q2<- FALSE
#Using Variable
A<-10
B<-5
c<-A+B
var1<-2.5
var2<-4
result <-var1/var2
result
answer<-sqrt(var2)
answer
gre... | /Core_Programming Basics.R | no_license | ajisomaraj/R-Study | R | false | false | 917 | r | #integer
x<-2L
typeof(x)
#double
y<-2.5
typeof(y)
#complex
z<-3+2i
typeof(z)
#Character
a<-"h"
typeof(a)
#logical Variables
q1<- T
typeof(q1)
q2<- FALSE
#Using Variable
A<-10
B<-5
c<-A+B
var1<-2.5
var2<-4
result <-var1/var2
result
answer<-sqrt(var2)
answer
gre... |
\name{QuASAR-package}
\alias{QuASAR-package}
\alias{QuASAR}
\docType{package}
\title{
What the package does (short line)
~~ package title ~~
}
\description{
More about what it does (maybe more than one line)
~~ A concise (1-5 lines) description of the package ~~
}
\details{
\tabular{ll}{
Package: \tab QuASAR\cr
Type: \... | /man/QuASAR-package.Rd | no_license | rpique/QuASAR | R | false | false | 853 | rd | \name{QuASAR-package}
\alias{QuASAR-package}
\alias{QuASAR}
\docType{package}
\title{
What the package does (short line)
~~ package title ~~
}
\description{
More about what it does (maybe more than one line)
~~ A concise (1-5 lines) description of the package ~~
}
\details{
\tabular{ll}{
Package: \tab QuASAR\cr
Type: \... |
# Robert Kubinec
# V0.2 Simulation of Zero-inflated IRT data
require(rstan)
require(shinystan)
require(ggplot2)
require(stringr)
require(reshape2)
require(Matrix)
require(ZIM)
require(parallel)
require(loo)
require(data.table)
source("Ggplot2_theme.R")
# Variables for MCMC algorithm
num_iters <- 500
num_burn <- 250
n... | /R_Scripts/NOMINATE_simulate.R | no_license | saudiwin/ARP_Research | R | false | false | 7,962 | r | # Robert Kubinec
# V0.2 Simulation of Zero-inflated IRT data
require(rstan)
require(shinystan)
require(ggplot2)
require(stringr)
require(reshape2)
require(Matrix)
require(ZIM)
require(parallel)
require(loo)
require(data.table)
source("Ggplot2_theme.R")
# Variables for MCMC algorithm
num_iters <- 500
num_burn <- 250
n... |
############## visualizations ##############
# transition matrix heatmap for "real" data
df_plot_trans <- mod2$transition_matrix
cols <- c("#e7f0fa", "#c9e2f6", "#95cbee", "#0099dc", "#4ab04a", "#ffd73e", "#eec73a",
"#e29421", "#e29421", "#f05336", "#ce472e")
t <- max(df_plot_trans$transition_probabili... | /Visualization -code 3.R | no_license | Rajesh16702/MarkovChain | R | false | false | 3,542 | r | ############## visualizations ##############
# transition matrix heatmap for "real" data
df_plot_trans <- mod2$transition_matrix
cols <- c("#e7f0fa", "#c9e2f6", "#95cbee", "#0099dc", "#4ab04a", "#ffd73e", "#eec73a",
"#e29421", "#e29421", "#f05336", "#ce472e")
t <- max(df_plot_trans$transition_probabili... |
library(shiny)
library(DT)
library(dplyr)
library(ggplot2)
shinyServer(function(input, output) {
archivo_carga_1 <- reactive({
if (is.null(input$upload_file_1)){
return(NULL)
}
#browser()
ext <- strsplit(input$upload_file_1$name, split = "[.]")[[1]][2]
if (ext ==... | /Tarea_1/server.R | no_license | Kazeazul/Product_Development | R | false | false | 3,531 | r | library(shiny)
library(DT)
library(dplyr)
library(ggplot2)
shinyServer(function(input, output) {
archivo_carga_1 <- reactive({
if (is.null(input$upload_file_1)){
return(NULL)
}
#browser()
ext <- strsplit(input$upload_file_1$name, split = "[.]")[[1]][2]
if (ext ==... |
# Load energy consumption UC Irvine dataset into R
date_time <- function(date, time) {
return (strptime(paste(date, time), "%d/%m/%Y %H:%M:%S"))
}
load_data <- function() {
df <- read.table("household_power_consumption.txt",
header=TRUE,
sep=";",
colClasses... | /plot3.R | no_license | dannywf/ExData_Plotting1 | R | false | false | 1,239 | r | # Load energy consumption UC Irvine dataset into R
date_time <- function(date, time) {
return (strptime(paste(date, time), "%d/%m/%Y %H:%M:%S"))
}
load_data <- function() {
df <- read.table("household_power_consumption.txt",
header=TRUE,
sep=";",
colClasses... |
`k9_10` <-
structure(list(minsymvec = structure(c(-29.7601918827934, -9.63269327024907,
-166.564086128121, -172.788244667226, -35.4575355825672, -204.626782293587,
-116.319652992065, -18.6844471482749, -14.8051627715705, -182.973206036308,
-227.360739830197, -135.240859353057, -185.696261026148, -503.812887584038, ... | /data/9_10.R | no_license | RobinHankin/knotR | R | false | false | 4,162 | r | `k9_10` <-
structure(list(minsymvec = structure(c(-29.7601918827934, -9.63269327024907,
-166.564086128121, -172.788244667226, -35.4575355825672, -204.626782293587,
-116.319652992065, -18.6844471482749, -14.8051627715705, -182.973206036308,
-227.360739830197, -135.240859353057, -185.696261026148, -503.812887584038, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/splitReads.R
\name{splitReads}
\alias{splitReads}
\title{This will take phased info for each haplotype and will split directional reads of each single cell into haplotype
specific reads}
\usage{
splitReads(data.object = NULL, inputfolder = in... | /man/splitReads.Rd | permissive | Hufsah-Ashraf/StrandPhaseR | R | false | true | 916 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/splitReads.R
\name{splitReads}
\alias{splitReads}
\title{This will take phased info for each haplotype and will split directional reads of each single cell into haplotype
specific reads}
\usage{
splitReads(data.object = NULL, inputfolder = in... |
library(Biostrings)
library(seqinr)
fas2<-read.fasta("C:/Users/ASUS/Desktop/rosalind_glob.txt", forceDNAtolower = FALSE)
s1<-c2s(fas2[[1]])
s2<-c2s(fas2[[2]])
needwunsQS(s1,s2, substmat="BLOSUM62", gappen=5)
| /global_alignment_with_scoring_matrix.R | no_license | burcukolbay/Rosalind-Bioinformatics | R | false | false | 208 | r | library(Biostrings)
library(seqinr)
fas2<-read.fasta("C:/Users/ASUS/Desktop/rosalind_glob.txt", forceDNAtolower = FALSE)
s1<-c2s(fas2[[1]])
s2<-c2s(fas2[[2]])
needwunsQS(s1,s2, substmat="BLOSUM62", gappen=5)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{germanTra}
\alias{germanTra}
\title{German Credit data set}
\format{A SDEFSR_Dataset class with 800 instances, 20 variables (without the target variable)
and 2 values for the target class.}
\source{
\url{ht... | /man/germanTra.Rd | permissive | linearregression/SDEFSR | R | false | true | 671 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{germanTra}
\alias{germanTra}
\title{German Credit data set}
\format{A SDEFSR_Dataset class with 800 instances, 20 variables (without the target variable)
and 2 values for the target class.}
\source{
\url{ht... |
library(dashBio)
library(readr)
app <- Dash$new()
data = read_file("https://raw.githubusercontent.com/plotly/dash-bio-docs-files/master/alignment_viewer_p53.fasta")
app$layout(htmlDiv(list(
dashbioAlignmentChart(
data = data,
showconservation = FALSE,
showgap = FALSE,
colorscale = "purine"
)
)))... | /dash_docs/chapters/dash_bio/alignment-chart/examples/hideBarPlots.R | permissive | plotly/dash-docs | R | false | false | 339 | r | library(dashBio)
library(readr)
app <- Dash$new()
data = read_file("https://raw.githubusercontent.com/plotly/dash-bio-docs-files/master/alignment_viewer_p53.fasta")
app$layout(htmlDiv(list(
dashbioAlignmentChart(
data = data,
showconservation = FALSE,
showgap = FALSE,
colorscale = "purine"
)
)))... |
# Set working directory to the directory containing the UCI HAR Dataset
setwd("~/Documents/Coursera/GettingCleaningData/UCI HAR Dataset")
# Clean workspace
remove(list=ls())
# Load additional packages
library(dplyr)
# Read text-files containing labels for each activity and each feature
activity_labels<-read.table("a... | /run_analysis.R | no_license | LMNU/GettingCleaningData | R | false | false | 1,994 | r | # Set working directory to the directory containing the UCI HAR Dataset
setwd("~/Documents/Coursera/GettingCleaningData/UCI HAR Dataset")
# Clean workspace
remove(list=ls())
# Load additional packages
library(dplyr)
# Read text-files containing labels for each activity and each feature
activity_labels<-read.table("a... |
#' Build an EEIO model.
#' @param modelname Name of the model from a config file.
#' @param configpaths str vector, paths (including file name) of model configuration file
#' and optional agg/disagg configuration file(s). If NULL, built-in config files are used.
#' @return A list of EEIO model complete components and a... | /R/BuildModel.R | permissive | USEPA/useeior | R | false | false | 10,157 | r | #' Build an EEIO model.
#' @param modelname Name of the model from a config file.
#' @param configpaths str vector, paths (including file name) of model configuration file
#' and optional agg/disagg configuration file(s). If NULL, built-in config files are used.
#' @return A list of EEIO model complete components and a... |
\name{LISTAhat}
\alias{LISTAhat}
\title{Estimation of the Space-Time Inhomogeneous Pair Correlation LISTA functions}
\description{Compute an estimate of the space-time pair correlarion LISTA functions.}
\usage{
LISTAhat(xyt, s.region, t.region, dist, times, lambda,
ks = "box", hs, kt = "box", ht, correction... | /man/LISTAhat.Rd | no_license | stpp-GitHub-community/stpp | R | false | false | 4,585 | rd | \name{LISTAhat}
\alias{LISTAhat}
\title{Estimation of the Space-Time Inhomogeneous Pair Correlation LISTA functions}
\description{Compute an estimate of the space-time pair correlarion LISTA functions.}
\usage{
LISTAhat(xyt, s.region, t.region, dist, times, lambda,
ks = "box", hs, kt = "box", ht, correction... |
library(ggplot2)
library(dplyr)
# read data from loan.csv into datafrmae
loan_input <- read.csv("loan.csv",stringsAsFactors = FALSE)
######################### Data Cleaning ##############################
################# Delete Unnecessary columns##############
#Below columns are to be removed since they have all... | /experiment/Case Study 3/Case Study.R | no_license | nitinsriv/R | R | false | false | 13,071 | r | library(ggplot2)
library(dplyr)
# read data from loan.csv into datafrmae
loan_input <- read.csv("loan.csv",stringsAsFactors = FALSE)
######################### Data Cleaning ##############################
################# Delete Unnecessary columns##############
#Below columns are to be removed since they have all... |
context("scRNAseq")
test_that("Seurat-merge works as expected", {
data <- list(
'Set1' = '../testdata/10xCounts/CellRanger2/raw_gene_bc_matrices/cellRanger-3204293',
'Set2' = '../testdata/10xCounts/CellRanger3/raw_feature_bc_matrix'
)
seuratObjs <- list()
for (datasetName in names(data)) {
seuratObjs[... | /tests/testthat/test-seurat-merge.R | no_license | bimberlabinternal/OOSAP | R | false | false | 2,986 | r | context("scRNAseq")
test_that("Seurat-merge works as expected", {
data <- list(
'Set1' = '../testdata/10xCounts/CellRanger2/raw_gene_bc_matrices/cellRanger-3204293',
'Set2' = '../testdata/10xCounts/CellRanger3/raw_feature_bc_matrix'
)
seuratObjs <- list()
for (datasetName in names(data)) {
seuratObjs[... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/install.R
\name{fetch_tag_from_Rd}
\alias{fetch_tag_from_Rd}
\title{Access tag elements from R's Rd file}
\source{
\url{http://stackoverflow.com/questions/17909081/access-elements-from-rs-rd-file}
}
\usage{
fetch_tag_from_Rd(package, tag = "\... | /man/fetch_tag_from_Rd.Rd | no_license | ajrgodfrey/installr | R | false | true | 1,334 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/install.R
\name{fetch_tag_from_Rd}
\alias{fetch_tag_from_Rd}
\title{Access tag elements from R's Rd file}
\source{
\url{http://stackoverflow.com/questions/17909081/access-elements-from-rs-rd-file}
}
\usage{
fetch_tag_from_Rd(package, tag = "\... |
iap_relate = function(observed,
predicted,
type=c("reg","class")){
type = match.arg(type)
if(type=="reg"){
rel_mod = mgcv::gam(observed ~ s(predicted), select=TRUE )
return(rel_mod)
}else{
nclass = ncol(predicted)
vars = paste0("s(",colnames(pred... | /iap.R | permissive | dragosmg/simplystats | R | false | false | 2,083 | r |
iap_relate = function(observed,
predicted,
type=c("reg","class")){
type = match.arg(type)
if(type=="reg"){
rel_mod = mgcv::gam(observed ~ s(predicted), select=TRUE )
return(rel_mod)
}else{
nclass = ncol(predicted)
vars = paste0("s(",colnames(pred... |
rm(list = ls())
create_content <- function(dir = "./tutoriais"){
tu_files <- list.files("./workshops/") #lista os diretórios dos tutorias
tu_names <- stringr::str_remove(tu_files, "\\.Rmd") #lista os arquivos dentro dos diretórios
for(i in seq_along(tu_names)){
#Cria o diretório para o tutoria ldentro de ... | /build_site.R | permissive | p4hUSP/workshops_2018.2 | R | false | false | 1,081 | r |
rm(list = ls())
create_content <- function(dir = "./tutoriais"){
tu_files <- list.files("./workshops/") #lista os diretórios dos tutorias
tu_names <- stringr::str_remove(tu_files, "\\.Rmd") #lista os arquivos dentro dos diretórios
for(i in seq_along(tu_names)){
#Cria o diretório para o tutoria ldentro de ... |
install.packages("haven")
library(haven)
library(tidyverse)
library(dplyr)
NFHS <- read_dta("IAHR52FL.dta")
View(NFHS)
# limited search from "hhid" to "shstruc" to reduce the variables I will be working with.
hh <- select(NFHS, "hhid":"shstruc")
# Filtering urban house type to analyse data for type of urban area and... | /Code/Code.R | permissive | Mik-dot/davis_5112_week1_assignment | R | false | false | 683 | r | install.packages("haven")
library(haven)
library(tidyverse)
library(dplyr)
NFHS <- read_dta("IAHR52FL.dta")
View(NFHS)
# limited search from "hhid" to "shstruc" to reduce the variables I will be working with.
hh <- select(NFHS, "hhid":"shstruc")
# Filtering urban house type to analyse data for type of urban area and... |
#Exploratory Data Analysis - Assgn1 Plot4
#Vincent Roy
#Temp copy of data, create <data>.txt ouput.
if (!file.exists("household_power_consumption.txt")) {
tf <- tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", ... | /plot4.R | no_license | VincentJRoy/ExData_Plotting1 | R | false | false | 2,972 | r | #Exploratory Data Analysis - Assgn1 Plot4
#Vincent Roy
#Temp copy of data, create <data>.txt ouput.
if (!file.exists("household_power_consumption.txt")) {
tf <- tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", ... |
i = 514
library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/")
# -------------------------------------------------------------------------
# read in the list of the SNP to be excluded
# -------------------------------------------------------------------------
setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/")
files = li... | /data_preparation/R_batch3/_step2/step2_filter_asCounts.513.R | no_license | jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples | R | false | false | 809 | r | i = 514
library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/")
# -------------------------------------------------------------------------
# read in the list of the SNP to be excluded
# -------------------------------------------------------------------------
setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/")
files = li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.