blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 327 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 5 134 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 46
values | visit_date timestamp[us]date 2016-08-02 22:44:29 2023-09-06 08:39:28 | revision_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | committer_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | github_id int64 19.4k 671M ⌀ | star_events_count int64 0 40k | fork_events_count int64 0 32.4k | gha_license_id stringclasses 14
values | gha_event_created_at timestamp[us]date 2012-06-21 16:39:19 2023-09-14 21:52:42 ⌀ | gha_created_at timestamp[us]date 2008-05-25 01:21:32 2023-06-28 13:19:12 ⌀ | gha_language stringclasses 60
values | src_encoding stringclasses 24
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 9.18M | extension stringclasses 20
values | filename stringlengths 1 141 | content stringlengths 7 9.18M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c077d4e424f957fce04331d0a50208c7b8da7a00 | da4e9a624488743e0d17e33534ac84ef1f2ec02d | /lesson 3.R | 3c00c5395bfe94ead1a95b5cb66f91b8485daf9a | [] | no_license | Seyonne989/test | 091c5b1ba428938453203df3d21220a26f0bbd9b | f131f7e6692151fdd2310f32a5a8077947dc9d5c | refs/heads/master | 2020-03-19T06:30:46.116401 | 2018-06-04T12:42:18 | 2018-06-04T12:42:18 | 136,027,460 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,155 | r | lesson 3.R | x <- c(18, 50, 3, 5, NA, 13, 9, 10, 24, -32, 24, 55, 7, 9, 19,
20, -21, 2, 51, 18, -18, 8, 42, 0, 1, 8, NA, 32, 4, 25,
NA, 29, 18, 6, 13, 12, 26, 4, 0, 12, 42, 11, 8, 20, -1,
61, 10, 2, 17, -40, 19, 7, NA, 41, 3, 10, -5, 0, 12, 1)
min (x)
min(x, na.rm = TRUE)
mean (x, na.rm = TRUE)
sd(x, na.rm = T... |
c00e4273e7aa986dfe2b2468317ee3ccc5a7139b | 673cbd1482075b4cfc13279b3c1ead2c161430fe | /shiny/server.R | 7e95ea71713e3e24b37197260bf9db174e005aa0 | [] | no_license | imansingh/NYS_Solar_Dashboard | 18209f7bc791bd883b60a16adb215e7e676cb875 | 133052f24d9ed295e1d09d14725791b67122341f | refs/heads/master | 2021-09-12T14:15:38.512602 | 2018-04-17T13:36:07 | 2018-04-17T13:36:07 | 106,491,774 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,446 | r | server.R | shinyServer(function(input, output){
# filter dataset based on input choices ranges selected
get_solar_filtered <- reactive({
solar_filtered = solar
# Days to complete, date applied, date completed
solar_filtered = solar_filtered %>%
filter(Days.To.Complete >= input$days_to_complete... |
b7e96264e6cec4f0f49e7b799bca9db4087ec8bf | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/dse/examples/toSSChol.Rd.R | 1abdad0b38ee7b00acda4117c49aa9062545f263 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 302 | r | toSSChol.Rd.R | library(dse)
### Name: toSSChol
### Title: Convert to Non-Innovation State Space Model
### Aliases: toSSChol toSSChol.TSmodel toSSChol.TSestModel
### Keywords: ts
### ** Examples
data("eg1.DSE.data.diff", package="dse")
model <- estVARXls(eg1.DSE.data.diff)
model <- toSSChol(model)
|
278ac57822e7446d2526a551f5ffb1437752a9ce | 3d4ee3bc0d87f2831641d0d2d8420f4492a7851a | /run_analysis.R | b4075707fbd7ab33ab0ece8ed05f160c332bfc22 | [] | no_license | tatishiroma/Getting-and-Cleaning-Data | d074c3fa8dd1183dc7fd647ac8ba24870a7f8d45 | 51d4e2cdb91346162aa3195190d5d9b71964fc3e | refs/heads/master | 2022-12-05T17:56:31.352403 | 2020-08-09T23:44:46 | 2020-08-09T23:44:46 | 285,864,569 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,277 | r | run_analysis.R | # Load necessary libraries
library(dplyr)
# Check for data and download if necessary
if(!file.exists("UCI HAR Dataset")) {
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
dir.create("UCI HAR Dataset")
download.file(fileURL, destfile = "UCI-HAR... |
42c06e319fd639a26dd7b64ddf741857a4ceeef4 | 0128ac2d1aa93193645f8d032ded9ab7565106ad | /run_analysis.R | eb5288f662aa8c391984197a008ec21328621e85 | [] | no_license | EzraZed/getdata-15 | 02eeca477adae1be72ee389e1a965fe0e215e8a3 | fa7a9ee7a17fdc7eb826e7ea3744d5489232e53f | refs/heads/master | 2021-01-23T13:36:39.187890 | 2015-06-21T20:03:10 | 2015-06-21T20:03:10 | 37,822,841 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,017 | r | run_analysis.R | install.packages("dplyr")
library(dplyr)
raw_x_test <- read.table("UCI HAR Dataset/test/X_test.txt") ##2947, 561
raw_y_test <- read.table("UCI HAR Dataset/test/y_test.txt") ##2947, 1
subject_test <- read.table("UCI HAR Dataset/test/subject_test.txt") ##2947, 1
raw_x_train <- read.table("UCI HAR Dataset/train/X_train.... |
c528f8f321908d25cc6a078cb00ddbfed03e184f | 94a4704c35e7518633bf9789bfef446886dd1fa0 | /Seminar_02-Data-visualisation.R | 878d542b5c028e87eab5fd6222bf2ef2c46d95f4 | [] | no_license | JasperH11/Decision-Analysis_2021 | de31dc3216a62055b40ab57d2e3d1ea683649936 | 37719f879aefea357321b9d35489dcb49575cba1 | refs/heads/main | 2023-06-01T05:52:21.720617 | 2021-06-28T09:38:37 | 2021-06-28T09:38:37 | 366,649,075 | 0 | 2 | null | 2021-05-12T15:41:08 | 2021-05-12T08:41:49 | null | UTF-8 | R | false | false | 4,389 | r | Seminar_02-Data-visualisation.R | # Seminar 2 - Data visualisation
# Participants data ----
# Load data
library(readr)
urlfile = "https://raw.githubusercontent.com/CWWhitney/teaching_R/master/participants_data.csv"
participants_data <- read_csv(url(urlfile))
# Bar plot
plot(participants_data$academic_parents)
# Box plot
plot(participants_data$aca... |
b7173461b10ff85c5d9b9741ae8358a6371894c2 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/AnnotationDbi/examples/GOColsAndKeytypes.Rd.R | 52ac44b526ed036b359807671bf7a32395069982 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 590 | r | GOColsAndKeytypes.Rd.R | library(AnnotationDbi)
### Name: GOID
### Title: Descriptions of available values for 'columns' and 'keytypes'
### for GO.db.
### Aliases: GOID TERM ONTOLOGY DEFINITION
### Keywords: utilities manip
### ** Examples
library(GO.db)
## List the possible values for columns
columns(GO.db)
## List the possible ... |
628a6bb0281f44207977b22dd88ea7588eded6af | c62120f9e01c727bf4956fc7f70fcc6ad5f2186a | /R/alignSubspaceSeurat.R | 21f86dee314621ec3a1684ddaf4a4e15c0dcc2a6 | [] | no_license | ycao6928/scPred | 446f529dc2f38f92bd8a5b125982751d3ccd0ade | 31b1d5362cb42702601614ce44a67ef3c0fcb01e | refs/heads/master | 2020-06-01T18:02:43.525899 | 2019-06-08T10:38:14 | 2019-06-08T10:38:14 | 190,875,581 | 0 | 0 | null | 2019-06-08T10:37:53 | 2019-06-08T10:37:52 | null | UTF-8 | R | false | false | 8,767 | r | alignSubspaceSeurat.R | #' @title Align low-dimensional space using Seurat algorithm
#' @description Uses the manifold-alignment Seurat algorithm to align the training eigenspace and the prediction projection
#' See ?AlignSubspace() for more details. Note: this helper function is a modified version from Seurat.
#' @author José Alquicira Herná... |
37580d4e80645ad04d2f8126c8fedb9117af6cf3 | 43b93fc1d6a858ee1eb09f037954b5a3c8bf3195 | /NOBUILD/Rsac/R/gcp.R | 43620258b480689ef942f0c909c0ed0f40effb6a | [] | no_license | abarbour/irisws | dfd7e7965d9c92c75fdc03cdaa58b9a23865f718 | 33c019c8550e319273859e1e558cd3230ba697f8 | refs/heads/master | 2021-01-17T07:26:00.671670 | 2016-06-10T22:15:21 | 2016-06-10T22:15:21 | 13,811,412 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,546 | r | gcp.R | "gcp" <- function(s, e)
{
# Method and notation from Lay and Wallace (1995)
# Convert to radians:
s$lat <- s$lat * pi/180
s$lon <- s$lon * pi/180
e$lat <- e$lat * pi/180
e$lon <- e$lon * pi/180
A <- e$lon - s$lon
b <- pi/2 - e$lat # co-lat
c <- pi/2 - s$lat # co-lat
a <- acos(cos(b) * cos(c) + sin(b... |
bd61692b6b5872388010ace8762a568dba2d427a | e6ec111d279a2681d12be4ab11230e0c8c5e12ae | /r/powerplot.R | 03dc1c89b1b5e0bd069a0cc7792bfb536ef0a175 | [] | no_license | fchai1/tmp1 | 2a094b163f281ca0dd4a96da2b17bd332915d79d | 8fd9ec027940b5d960665b9ad65f41292d6a2260 | refs/heads/master | 2021-09-08T13:39:14.358937 | 2018-03-10T00:07:54 | 2018-03-10T00:07:54 | 111,469,791 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,599 | r | powerplot.R | sampleRate = 1000000000
readdata <- function(filename) {
fmlog <- filename
datatable <- read.csv(fmlog, header=FALSE, sep=" ",as.is = TRUE, stringsAsFactors=FALSE)
x <- datatable[, 1]
y <- datatable[, 4]
# plot(x, y)
x <- tail(x, length(x) - 3)
y <- tail(y, length(y) - 3)
list(x, y)
}
sampledata <-... |
377039661d70053b1f2fb7865747b8ab5175a1ee | 757a11cb1fbcde70426e247ceb92d208afa53e95 | /loadData.R | 67dcdfc9cab086a1e905a37cde79411604c71393 | [] | no_license | blaslopez/ExData_Plotting1 | c157587bd13b81e4e2f23d1803f4453a09e8c957 | 67780a4dee9dd3542f1e8a054d009b03935b4fee | refs/heads/master | 2021-01-14T13:44:09.146857 | 2014-12-06T23:47:01 | 2014-12-06T23:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 775 | r | loadData.R | #
# 03/12/2014 blg Coursera's
#
# This is the script for the first course project of
# "Exploratory Data Analysis" course
#
# The scripts download the data if necessary,
# loads the partial dataset and plots
#
#
library(sqldf,quietly=FALSE)
# Path to data
# get the base dir and ... |
3e80f85cb20dfec4176261cd872a657d2a964c0f | 4e01acf5a07af95846300ed1016edf601fdbb6cc | /Rprogramming/quiz3/rprogrammingquiz3.R | 4a09d76b69a17dde27ea456b40dc6d4514694ee0 | [] | no_license | carolcoder/datasciencecoursera | 5b5c8e9ca270ba961061c4ae4b5dcacfdcf1bab5 | d80a4ac780506179ab1e25cf559256f2f9de4a31 | refs/heads/master | 2021-01-23T02:49:10.301308 | 2015-08-07T20:06:33 | 2015-08-07T20:06:33 | 30,250,558 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 579 | r | rprogrammingquiz3.R | ## Quiz3
library(datasets)
data(iris)
?iris
dimnames(iris)
#Question 1
filter <- iris[iris$Species == 'virginica',]
mean(filter$Sepal.Length)
#Question 2
iris[,1:4]
apply(iris[,1:4], 1, mean)
apply(iris[,1:4], 2, mean)
apply(iris,2,mean)
apply(iris,1,mean)
library(datasets)
data(mtcars)
?mtcars
dimnames(mtcars)
#Q... |
928da2f818c11a91d00f6cbfa72ab1c88bbe2498 | b5c723088885098e0847db9d55d3df68c354e8cf | /man/Pikl.rd | 8d94cc2b52e08bad9e7b75fc3ff92ef1af0e81bf | [] | no_license | psirusteam/TeachingSampling | 5fd95cd428bb55319a3a0273c52aa38f14d19a9b | 2659f3b16907055a14aabd722be5bfdd5bd9fad6 | refs/heads/master | 2021-06-04T04:34:18.096049 | 2020-04-21T19:55:59 | 2020-04-21T19:55:59 | 101,214,525 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,808 | rd | Pikl.rd | \name{Pikl}
\alias{Pikl}
\title{Second Order Inclusion Probabilities for Fixed Size Without Replacement Sampling Designs}
\description{Computes the second-order inclusion probabilities of each par of units in the population given a
fixed sample size design}
\usage{
Pikl(N, n, p)
}
\arguments{
\item{N}{Population size}
... |
36e3af2dae1e78a71d56f50097d86af8c72f3d50 | 253736d8cd710ddcc825866343ff8bace67c66c7 | /R/TileDBArray.R | 57f8780885d458bd12d9a00138bcdc757c613235 | [
"MIT"
] | permissive | aaronwolen/testtest | 52c12db6ccc66cd7edcd1c286526e3a17c9182eb | ef190bfca5d475d14e824a1c82e9810ce2278050 | refs/heads/master | 2022-10-19T23:20:13.450125 | 2020-06-11T16:26:11 | 2020-06-11T16:26:11 | 271,594,270 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,245 | r | TileDBArray.R | #' Delayed TileDB arrays
#'
#' The TileDBArray class provides a \linkS4class{DelayedArray} backend for TileDB arrays (sparse and dense).
#'
#' @section Constructing a TileDBArray:
#' \code{TileDBArray(x, attr)} returns a TileDBArray object given:
#' \itemize{
#' \item \code{x}, a URI path to a TileDB backend, most typi... |
daee3f7e9be6a8c9e799bc8510bf87b89c2b05bb | 8f63990929064c6b167ab2b6859bef177c2e0067 | /man/loglik.Rd | 6087b8f3c0adccbf092b708413c7bd50511a00f9 | [] | no_license | nanyyyyyy/spatPomp | f3378f876063249203c63a851f3d43fa916b12fe | b4b050f6421539b21324f809294d134f3feb1833 | refs/heads/master | 2022-04-15T10:09:24.483992 | 2020-04-01T15:50:59 | 2020-04-01T15:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 664 | rd | loglik.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spatPomp_methods.R
\docType{methods}
\name{logLik-girfd_spatPomp}
\alias{logLik-girfd_spatPomp}
\alias{logLik,girfd_spatPomp-method}
\alias{logLik-asifd.spatPomp}
\alias{logLik,asifd.spatPomp-method}
\alias{logLik-asifird_spatPomp}
\alias{log... |
4724c24caab68f2afe3dfd9dbb3984a9f03d0d59 | 65317ea9159976b3fda084b2321c9afe959f6794 | /R/formatPval.R | 925539f503c18e67b9e8aabb4ffbdb30a9b48098 | [] | no_license | cran/reporttools | c5a306a433bad475952b4515c30c557438050c5c | fc18cc11152b5ae783ff34376120bc08196a12a9 | refs/heads/master | 2021-10-28T08:56:09.300219 | 2021-10-12T15:10:02 | 2021-10-12T15:10:02 | 17,699,149 | 1 | 0 | null | 2014-09-04T01:06:29 | 2014-03-13T06:05:19 | TeX | UTF-8 | R | false | false | 2,139 | r | formatPval.R | formatPval <- function (pv,
digits = max(1, getOption("digits") - 2),
eps = 0.0001,
na.form = "NA",
scientific=FALSE,
includeEquality=FALSE)
{
##... |
9ed46072e66503031fe84bdd3d6831366fe65c89 | b6cbb7c02b05e2e222e77c8e0816ba45ceabdf77 | /Mini2Test2.R | 121eacf8fd148f6f1eecf9b0323db0dcba8dff64 | [] | no_license | sebastianpantin/Classification | 8dab55c03426ca7a2c53f64a381d48f9b40e7708 | 6287f32993b9b0e2385e8555fe292f84bbb3beba | refs/heads/master | 2020-03-11T10:17:16.911514 | 2018-04-17T19:35:39 | 2018-04-17T19:35:39 | 129,938,361 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,858 | r | Mini2Test2.R | library(GGally)
library(klaR)
library(caret)
creditcard<-read.csv("creditcard.csv")
iu<-sample(seq(1,284808),20000)
subedData <- creditcard[iu,] #25 26 27 28 29 30 31
dataNumeric <- apply(subedData,2, function(x) as.numeric(paste(x)))
dataFrame <- as.data.frame(dataNumeric)
dataFrame$Class <- as.factor(dataFrame$C... |
a6205cb17293408a003cd962194e1eac4018e213 | b0e67da3d682361815916f5c0f312c8875a694db | /cachematrix.R | 5b67936b7922e2023264ea41fcaef95dc0d6fcfd | [] | no_license | junangst/ProgrammingAssignment2 | dcf1cd26761ad782a22d3f54d33d03b40f8de779 | baebf271d1f1af779e30aed026aab3e18cfdb2db | refs/heads/master | 2021-07-09T00:51:20.779386 | 2017-10-05T18:00:50 | 2017-10-05T18:00:50 | 103,785,684 | 0 | 0 | null | 2017-09-16T21:43:25 | 2017-09-16T21:43:25 | null | UTF-8 | R | false | false | 1,163 | r | cachematrix.R | ## The two functions included in this program can be used in
## tandom to cache the inverse of a matrix rather than compute
## it repeatedly throughout a session. The matrix argument for
## the function MakeCacheMatrix must be an invertible square
## matrix. The input argument for the function cacheSolve must
## be an... |
2165f3e69dea97ee7e6f99e2828bb9e4706590d5 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /tbart/man/euc.dists.Rd | fde2639f226de65216f9c092fc7378d05d56a236 | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 812 | rd | euc.dists.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{euc.dists}
\alias{euc.dists}
\title{Euclidean distances from a Spatial* or Spatial*DataFrame object}
\usage{
euc.dists(swdf1, swdf2, scale)
}
\arguments{
\item{swdf1}{- First Spatial*DataFrame object}
\item{swdf2}{- Second Spatial*DataFrame object (if omitted,... |
50b17a0e116456c9b0206468590faaab1a7ecdc6 | 27d5fc6f8901345834950f354bbdd08a9ed729ba | /ladder_pL.R | 75f47f48acaaf9fb787b1ca29cbf8b8a808631ff | [] | no_license | dtharvey/EquilibriumDiagrams | 56b23a713794b0c749f0e87b939230a950cb8b0e | 4e2c08f1c6e6a609f0c4826824739830357224b8 | refs/heads/master | 2021-01-15T15:31:10.496861 | 2016-06-27T19:32:29 | 2016-06-27T19:32:29 | 51,866,084 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,687 | r | ladder_pL.R | # function to plot ladder diagram for metal-ligand complexes
# pk_list: list of pK values, in order of fewest ligands to most
# ligands; default values are for cadmium-ammine complexes
# ligands: list giving number of ligands added for each pK value;
# defaults to vector of (1, 1, 1, 1) for the fou... |
2e4ec6e70f255f593e28d694a3ede115a7e6107b | f9160c8b91e325e98f0b9eb71759781ea8ac40f7 | /GeneSetAnalysis.R | 6e97a09a8c571e3100eebff3dc4af18d2de473c1 | [] | no_license | fcaramia/ExpressionAnalysis | b7e74ae07bc20737eb9ec0851e0519116d44b627 | 39eaaa7889b19520c45da1de9356ba447c6631ef | refs/heads/master | 2020-03-17T20:39:24.301616 | 2018-05-18T07:58:42 | 2018-05-18T07:58:42 | 133,922,021 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,941 | r | GeneSetAnalysis.R | library(GSVA)
library(Biobase)
library(GSEABase)
library(GSA)
library(EGSEA)
library(biomaRt)
GetHumanGeneSymbolsfromENSEMBL <- function(ensembl.symbols = NULL)
{
mart.hs <- useMart("ensembl", "hsapiens_gene_ensembl")
res = getBM(attributes = c("hgnc_symbol", "ensembl_gene_id"),
filters = "ensembl_... |
b0885e3d047e72ded156e1ff4d3b84e5fe3c69db | b1754ec13322df2d42761d961af0dabca4517ee5 | /Code/12outputSA.R | da61db698ea31bbca9958df99e0807a36dbbaabf | [] | no_license | StephenStyles/StochasticApproximation | 44040c5676ebc0ad7016fc689f578ec993286bdb | 9ce8fe2b0fde38737b1c8b6e1c9fe35cc8656f3c | refs/heads/main | 2023-03-24T08:36:15.296573 | 2021-03-11T05:34:56 | 2021-03-11T05:34:56 | 305,183,444 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 29,788 | r | 12outputSA.R | setwd("C:/Users/sjsty/Desktop/Masters/Algorithms/Simplified Problem")
leakyrelu <- function(eps,x){
if(x<0){
return(eps*x)
} else{
return(x)
}
}
sigmoid <- function(x){
y = sum(x)
return(exp(y)/(1+exp(y)))
}
score <- function(x){
rank = NULL
for(i in 1:length(x)){
rank[i] = exp(-x)
}
re... |
2c3549ad53980af65f7fa671e7af03738710dfff | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/VBTree/examples/dl2vbt.Rd.R | 6f20c4806d22c19ad93fed09110a7a19728a3d2e | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 607 | r | dl2vbt.Rd.R | library(VBTree)
### Name: dl2vbt
### Title: Convert a double list to vector binary tree
### Aliases: dl2vbt
### Keywords: Double.List Vector.Binary.Tree
### ** Examples
#Structurize the column names of datatest:
colname <- colnames(datatest)
colnamedl <- chrvec2dl(colname, "-")
colnamevbt <- dl2vbt(colnamedl)
#Sim... |
ca5c03eaad2b75382521485c6fbacc5315eb553c | 272321a59a4ff63c923592930fb9c08573afcfde | /PCA/PCA.R | e9985735dc70858b9c28fb3f6ad4b3ad8d647454 | [
"MIT"
] | permissive | abhi-3453/R-notebook | 9ddc73c55d6753a4f9544bc2bd7ca23d211af9f4 | f15ec5f8114d5043709e39ec8e90dc444317a88e | refs/heads/master | 2020-03-25T23:55:19.017269 | 2018-08-10T14:53:59 | 2018-08-10T14:53:59 | 144,299,027 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,024 | r | PCA.R |
df <- read.csv('Social_Network_Ads.csv')
head(df)
df <- df[-1:-2]
library(ggplot2)
pl1 <- ggplot(df,aes(y=EstimatedSalary,x=Age)) + geom_point(aes(color=factor(Purchased)))
library(caTools)
set.seed(101)
sample = sample.split(df$Purchased, SplitRatio = 0.7)
train = subset(df, sample == T)
test = subset(df,sample ==... |
cd90455d9e9dd86d1a8c1867d614438ea275acc4 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/cpr/examples/get_spline.Rd.R | 0323e65d19419b65f47ee196544cb29905254065 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 520 | r | get_spline.Rd.R | library(cpr)
### Name: get_spline
### Title: Get the Control Polygon and the Spline Function
### Aliases: get_spline
### ** Examples
data(spdg, package = "cpr")
## Extract the control polygon and spline for plotting. We'll use base R
## graphics for this example.
a_cp <- cp(pdg ~ bsplines(day, df = 10), data = sp... |
f823f475afabdb984fe925101c3592b778f33260 | 1fa426920d0cde02234ffb6d94bbac3453b94c38 | /001-R-Studio Vector.R | 2eec62a200badda033c3a2543555dbd163071b70 | [] | no_license | MyHackInfo/R-Language | 6a7f87e597a1fff1a23b3b8e5458c8f0b4760bc6 | a0d8bb449e3735bfb259e8ac010262d96a91af45 | refs/heads/master | 2020-04-03T19:36:23.714704 | 2018-10-31T09:11:31 | 2018-10-31T09:11:31 | 155,528,648 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 392 | r | 001-R-Studio Vector.R | # Vector
# Vector is same as array to be c/c++
# Vector use c() function
MyVector <- c(2,3,4,5,6)
MyVector2 <- c(2,3,5,6,"a","b","g3",'4')
MyVector2
# Function use to check element of Vector
is.numeric(MyVector)
is.integer(MyVector)
is.double(MyVector)
seq() # Sequence like ':'
rep() # replicate
tab2 <- seq(1,20,2... |
d22969f060a93c6c1d32b4a64c6fdf683f55abc5 | 9c173a9342104e6779fea737e4ebe3b5e066098a | /9 - Developing Data Products/Twitch/test/server.R | db1b440f31d704dded5960767a773900368c3652 | [] | no_license | xush65/Data-Scientist-MOOC | 639fa7ad291ae4607eb361099d74f7a36bd78322 | f91e8f71ce63d82242edfd4c36520211261a01d3 | refs/heads/master | 2021-05-30T09:42:05.456437 | 2014-12-17T10:41:49 | 2014-12-17T10:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 633 | r | server.R | library(shiny)
shinyUI(
pageWithSidebar(
# application title
headerPanel("Test"),
sidebarPanel(
# label, printed label, default values, step values
numericInput('num', 'Number', 90, min = 50, max = 200, step = 5),
submitButton('Submit'),
# sliderInput('mu',... |
cbe157b2ed7365b3684c8619e8d820b61cbd590c | d801747059693596b2f5ce7ab7883791bbf02560 | /data_COVID.R | 81f46ea8fafb86ca07069fee927265818d87dc8e | [] | no_license | b-qiu/COVID-19 | af5055054928481d7d75c0003655ecd4f590a836 | 084d5c97acef75bef9b9d994e670335aa6336517 | refs/heads/master | 2022-11-16T10:02:50.951586 | 2020-07-14T11:56:21 | 2020-07-14T11:56:21 | 256,879,007 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,035 | r | data_COVID.R | library("pacman")
p_load("tidyverse", "rvest", "qdapRegex",
"RCurl", "magrittr", "googlesheets4")
options(gargle_oauth_cache = ".secrets")
gs4_auth(email = XXXX,
cache = ".secrets")
jh <- read_csv("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_ti... |
f9d0217f4ced210fba2d02c63a2eeb1d97680a8a | 4c58dd631dd589459bbeb03b0359bc75f47820e2 | /man/Woolf.CI.Rd | 090a9c27fee71bf26ad1830fd79bd46ad2f1dea6 | [] | no_license | cran/ORCI | 10a74c9a19c6d88c75f4271cb757b3ff0af87a0d | 7a946dbc53e4fab22949bed1ecef1b3af41de6fb | refs/heads/master | 2021-01-10T22:00:54.744874 | 2014-06-09T00:00:00 | 2014-06-09T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 858 | rd | Woolf.CI.Rd | \name{Woolf.CI}
\alias{Woolf.CI}
\title{
Compute Woolf confidence interval for the odds ratio
}
\description{
Compute Woolf confidence interval for the odds ratio of two independent binomial proportions.
}
\usage{
Woolf.CI(x1, n1, x2, n2, conf = 0.95)
}
%- maybe also 'usage' for other objects documented here... |
61e206fbfb4806c46706406cd0315b3d206d2299 | 9d2bf430cee06e57524439ed751e5fa0c34cc362 | /R_Classifier/youtubeClassifier.R | d3c9bed4c3a7ca25a2d3c68230113770def15a07 | [
"Apache-2.0"
] | permissive | ybotkiller/ybotkiller | 9eb12607223a5c0b33cc3a4a74f190ffac7c62e6 | 2141805b4a107d232df56c713647b65204a9b9b7 | refs/heads/master | 2021-01-16T18:38:14.884783 | 2017-08-14T19:16:17 | 2017-08-14T19:16:17 | 100,103,277 | 25 | 2 | null | 2017-08-13T15:06:46 | 2017-08-12T09:44:35 | Jupyter Notebook | UTF-8 | R | false | false | 6,142 | r | youtubeClassifier.R | # rm(list = ls())
source("visualization.R")
# df <- read.csv(file = "data/comments.csv", encoding = "UTF-8")
# save(df, file = "df.RData")
# library("xlsx")
# df <- read.xlsx(file = "data/classified2000_2.xlsx", sheetIndex = 1, header = TRUE, encoding = "UTF-8")
# save(df, file = "df.RData")
load("df.RData")
... |
189fc011cab4baab0ef091073e87ada767021c30 | 4ee78d872fec51bc5e4da565f639d5fcb5981042 | /server.R | cd4b0f2f5f1239b3a2a312cb86825c540b9c9439 | [] | no_license | fsakaori/bayes1_normal_approx | 8d0c8f567f38eed9456e9cd323e7cd225c9260a3 | 2029e6cb776bf81308e16b07ec11ac97f5decf2d | refs/heads/master | 2023-01-23T23:52:57.386761 | 2020-11-27T08:44:06 | 2020-11-27T08:44:06 | 316,445,550 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,258 | r | server.R | library(shiny)
#input$size : サイズ, input$mu : 真の平均, input$sigma : 真の分散, input$seed : シードの値
shinyServer(function(input, output) {
dataInput <- reactive({
set.seed(input$seed)
rnorm(input$size, mean=input$mu, sd=sqrt(input$sigma)) # shiny のなかでデータを保持しておく.
})
output$Data <- renderTable({
head_data <... |
ac0415b6946857e57bbce8c0f30b2e4c2dc8515c | 6ee0550428b87c9565addae16f40d6ed413df3b4 | /R/parallelsetting.r | 78dd79eb4e25d962f72798048184b06ba461ddb3 | [] | no_license | maoguihu/atakrig | cba2d9c8160c77af8889c2af0129e99d2c1684b4 | c5f9a9445907670602914b2eeed504b54cbeec3b | refs/heads/master | 2021-06-11T17:29:58.286872 | 2021-06-02T10:31:13 | 2021-06-02T10:31:13 | 191,763,675 | 4 | 4 | null | 2021-04-26T13:29:28 | 2019-06-13T12:59:10 | R | UTF-8 | R | false | false | 716 | r | parallelsetting.r | ## atakriging
## Author: Maogui Hu.
ataStartCluster <- function(spec = min(parallel::detectCores(), 8), ...) {
cl <- getOption("ataKrigCluster")
if(!is.null(cl)) try(snow::stopCluster(cl), silent = TRUE)
cl <- snow::makeCluster(spec = spec, ...)
doSNOW::registerDoSNOW(cl)
options(ataKrigCluster = cl)
cl
}... |
55e5a3fd20c152d51931c40d79de4ee477e5cb4e | 72002cbc729a343b747e20c1f5df72562e5c4dc8 | /man/impute.me.Rd | 6312035aa3c7b11c98fc61eed66d4ad0912eec4d | [] | no_license | fenrir849/fifer | efa973d96819f367916447bed8a2cb484d588d98 | 2f52785312135ddd441f9cedb0e4ab411549684e | refs/heads/master | 2023-01-02T02:53:52.724741 | 2020-10-29T16:53:16 | 2020-10-29T16:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,911 | rd | impute.me.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/impute.me.R
\name{impute.me}
\alias{impute.me}
\title{Multiple Imputation on a Model}
\usage{
impute.me(
model,
data,
predictors = NULL,
keep = T,
imputations = 20,
silent = F,
return.mod = F
)
}
\arguments{
\item{model}{An R-fr... |
8d8338c512cf1568e8fa17159a132e27bed1088e | 830b4deaa3ab156827cf284cf699a550888c4b1c | /plot1.R | 4ac231ffea47c70a51462ccfc467ec5367cb48c4 | [] | no_license | DataAnalystUser/ExData_Plotting1 | 0f6de6c610101bfb0351af51677614de72be6a9c | 3ae94e62db19cc4dc3da9450f842c50e9c21da63 | refs/heads/master | 2021-01-17T06:59:39.061917 | 2015-07-09T16:51:16 | 2015-07-09T16:51:16 | 38,705,161 | 0 | 0 | null | 2015-07-07T17:57:39 | 2015-07-07T17:57:39 | null | UTF-8 | R | false | false | 499 | r | plot1.R | PowerData = read.table("household_power_consumption.txt", header = TRUE, sep = ';', na.strings = "?",stringsAsFactors = FALSE)
PowerData$Date <- as.Date(PowerData$Date, format="%d/%m/%Y")
ImportantDates <- PowerData[(PowerData$Date=="2007-02-01") | (PowerData$Date=="2007-02-02"),]
hist(ImportantDates$Global_active_powe... |
4a28d6cf0e550e6d409e81e6fb0a64d60357465b | adcc74d227f9864430b26035be9befa9a2d110c8 | /man/matred.Rd | ae3ae07ae8367daeefc940913bd660ab9f5c4b05 | [] | no_license | PolyOmica/funtooNorm | 4ca8b4512d2853a5e2e7e714a8710d4b7b4df61c | d187a497679f8634c328e443c7509de7616e7216 | refs/heads/master | 2021-01-15T14:29:56.068196 | 2016-01-10T17:12:49 | 2016-01-10T17:12:49 | 45,708,881 | 0 | 1 | null | 2015-11-06T21:30:20 | 2015-11-06T21:30:20 | null | UTF-8 | R | false | false | 426 | rd | matred.Rd | \name{matred}
\alias{matred}
\docType{data}
\title{
Red control signals
}
\description{
Matrix containing the control probe signals from the red channel. The column names should be the same as in the signal A and signal B matrices.
}
\usage{matred}
\format{
A matrix with 835 rows (one for each control probe) and 93... |
8194a3f87af737efa14f971e30c1845b2e2c3be4 | 002929791137054e4f3557cd1411a65ef7cad74b | /tests/testthat/test_calcFE.R | 85a760dfa618694bc174c993333cb5b1c39ae818 | [
"MIT"
] | permissive | jhagberg/nprcgenekeepr | 42b453e3d7b25607b5f39fe70cd2f47bda1e4b82 | 41a57f65f7084eccd8f73be75da431f094688c7b | refs/heads/master | 2023-03-04T07:57:40.896714 | 2023-02-27T09:43:07 | 2023-02-27T09:43:07 | 301,739,629 | 0 | 0 | NOASSERTION | 2023-02-27T09:43:08 | 2020-10-06T13:40:28 | null | UTF-8 | R | false | false | 1,490 | r | test_calcFE.R | #' Copyright(c) 2017-2020 R. Mark Sharp
#' This file is part of nprcgenekeepr
context("calcFE")
library(testthat)
ped <- data.frame(
id = c("A", "B", "C", "D", "E", "F", "G"),
sire = c(NA, NA, "A", "A", NA, "D", "D"),
dam = c(NA, NA, "B", "B", NA, "E", "E"),
stringsAsFactors = FALSE
)
ped["gen"] <- findGenerati... |
56fc12bbc3cabfc725e38d0e7138ece9a41289f9 | d09aea6359ada6c8a78ddeafc1989e93ba9294aa | /man/Data.Rd | 3680cd486a323239a1605a2f3ded1181ffab658e | [] | no_license | hyunsooseol/SimplyAgree | 4f28d8656f36be5d8a1e2e266c7ffb9c5c559c00 | 7507b271ce0528f92088d410d7d5f72d7c15d799 | refs/heads/master | 2023-05-30T21:45:57.725904 | 2021-06-22T00:13:59 | 2021-06-22T00:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 415 | rd | Data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{reps}
\alias{reps}
\title{reps}
\format{
A data frame with 20 rows with 3 variables
\describe{
\item{id}{Subject identifier}
\item{x}{X measurement}
\item{y}{Y measurement}
}
}
\usage{
reps
}
\description{
... |
b6f556a1ef86e578ee81c5bd445ddde4de1c3d79 | f2064bd6c9fe0cdc1d22b8b149ad7e5acc64a9cd | /ui.r | 24101853ace4174cef3408469e38791119cb15d2 | [] | no_license | SaurabhWhadgar/anstephdb | 78453594ad6fd11e2ff3f26b02bacbd156eae042 | d7a2a09c457cff4d06e0f35e992bdcf479ce1af7 | refs/heads/master | 2022-12-13T23:36:40.439161 | 2020-08-30T08:41:10 | 2020-08-30T08:41:10 | 266,037,958 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,943 | r | ui.r | library(shiny)
library(DT)
library(shinydashboard)
library(shinydashboardPlus)
custom_db <- c("Ansteph Genome","Ansteph Protein")
dashboardPagePlus(skin = "black",
header = dashboardHeaderPlus(title = "An. stephensi Genome Resource Hub",titleWidth = 450,
enable_rightsidebar = FAL... |
af4ee0e613ac7b3bd2d207cef8c06cbf1bb6fd6e | 982f39c84763cbf209c3a2c94ec72a5a5b0c75eb | /analyses/1_exploration/R_scripts/4_get_climate_dists.R | 92543c231f57f109ab0f678a6308bb82d78e145a | [] | no_license | mllewis/conceptviz | 7c2078688d808d50f4532433ff5ffec24f02d66b | 36b8180d8c14e9b71f814434cc07ac34e25a2d12 | refs/heads/master | 2021-07-02T08:53:29.466672 | 2020-08-06T15:14:38 | 2020-08-06T15:14:38 | 93,209,750 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 824 | r | 4_get_climate_dists.R | ### use climate dists and trade data to look at pairwise relations ####
library(tidyverse)
library(forcats)
library(knitr)
library(countrycode)
library(stringr)
precip <- read_csv( "../../data/supplementary_data/cultural_sim_measures/geo/country_precip.csv") %>%
select(ISO_3DIGIT, Annual_precip) %>%
rename(preci... |
385594dd71799f7d52f25b856071754d618c1dc8 | f439a076bc3fcac2c8d7eb72e69dc8d24a00b263 | /Unit 4 Trees/D2Hawkeye.R | c3b7fc846bb296f9b2225b8a3cac53527549dc1b | [] | no_license | jakehawk34/MIT-Analytics | 73f9afb0cbfbbd8202e415f0c50c8e638aa76db1 | daa2ca2eca44ba6c74ba5773d992f68e8c775b90 | refs/heads/main | 2023-05-07T13:54:40.796512 | 2021-05-21T00:31:11 | 2021-05-21T00:31:11 | 344,290,207 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,148 | r | D2Hawkeye.R | # Unit 4
# Keeping an Eye on Healthcare Costs: The D2Hawkeye Story
# This is a story of D2Hawkeye, a medical data mining company located in Waltham, Massachusetts.
# It starts with medical claims that consist of diagnoses, procedures, and drugs.
# These medical claims are then processed via process of aggregation, cl... |
ee878bbbcf648cbe836804b84c01fb79f17dcce8 | 69cf4ab4c19c06164df43eb2fb11393ad5b79567 | /initials_brownlow_total.R | f1cf2d144542dd8e7eb74dc192660b099963fc2b | [] | no_license | ApacheStark/UselessAFLStats | de9ea99c8ede457e6b745f1072a480198d052b1b | 610c1a952ae998f08576ddf9124542e7a4646ce1 | refs/heads/master | 2023-01-23T15:51:00.737948 | 2020-12-04T08:19:58 | 2020-12-04T08:19:58 | 307,062,565 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,762 | r | initials_brownlow_total.R | library('fitzRoy')
library(tidyverse)
afttable <- fitzRoy::get_afltables_stats()
afttable_df <- afttable %>% as_tibble()
brownlow_votes <- afttable_df %>%
select(First.name,Surname,Brownlow.Votes) %>%
filter(Brownlow.Votes>0) %>%
mutate(First.init = toupper(str_sub(First.name, 1, 1)),
Second.init ... |
98bc1a829d844c29e384705629b46df5484865fc | 5c0b70c38a3aaa810aa0b98d129aa138631c3b20 | /cachematrix.R | 84d201827fb1798c7d91ab26b16e518557249830 | [] | no_license | ncrowley13/ProgrammingAssignment2 | 768999e944e1e0dff0bbe0a3407937bb7e200e15 | 89b53a86e03b5649bf015b5a252f9fc8760324d0 | refs/heads/master | 2021-01-17T08:51:29.622571 | 2015-06-20T15:22:47 | 2015-06-20T15:22:47 | 37,751,071 | 0 | 0 | null | 2015-06-19T23:44:32 | 2015-06-19T23:44:32 | null | UTF-8 | R | false | false | 753 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## this main function stores a list of subset functions
## that act on an input matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<-y
m <<-NULL
}
get <-function() x
setinverse <- fun... |
a80e790acd68c38e8a70c8adf07f815520bdc785 | d80a8ebc5dd9b2a9df78384dff096f50b450f9d1 | /R/Listener.R | 36e75480bd2635807ea635894f1dc4803765edad | [] | no_license | cran/beakr | 80fd36eb8ecbb6df5656d4a0c9fe4f44b10803c2 | 2355ab4fab157de08afa1057b1f05ae265aa1042 | refs/heads/master | 2021-07-15T18:37:19.962966 | 2021-04-06T16:20:02 | 2021-04-06T16:20:02 | 239,598,113 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 798 | r | Listener.R | #' @export
#' @title Listener class
#'
#' @description
#' A \code{Listener} object provides a simple, programmatically
#' controlled HTTP protocol listener.
#'
#' @usage NULL
#'
#' @format NULL
#'
#' @section Fields:
#'
#' \describe{
#' \item{\code{FUN}}{
#' Returns function response.
#' }
#' \item{\code{event}... |
ebe4366a444ecbd187e1f416fd2744ac7ec81cc2 | e164bc5a3fbd19e230bec5a0cd6aad6a9ffc0bc1 | /munge/01-rdyads.R | 9ddf95ec42ed5551c099e0b4f69cc9d4a7cd0b67 | [] | no_license | jeromyanglim/anglim-redcards-2014 | 4c76b7b870d0dbaa0ded5e1d34203c28ae33c35a | ae973cea310917d7319ee06f6f817d441af5a51b | refs/heads/master | 2016-09-06T15:02:30.662115 | 2014-06-21T14:23:27 | 2014-06-21T14:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,919 | r | 01-rdyads.R | # Example preprocessing script.
v <- list()
v$player_variables <- c("PlayerID", "Player", "Club", "League_Country", "LeagueID",
"SkinCol", "PhotoID", "PlayerHeightCM", "PlayerBirthd", "BirthD",
"BirthM", "BirthY", "PositionID", "Position", "Position_Detailed")
v$ref_var... |
f0d67de9b8bad6b16a2b4280ee720b6f95603823 | e96b48fe5cf40368bb37415eaffdb0314f52b70f | /tests/testthat/test-function-getInspectionNumbers.R | 3c1b977f92012fc481cc6f7cdccfc7fdaad0a0db | [
"MIT"
] | permissive | KWB-R/kwb.en13508.2 | 53a313cd45e018ecfefbb3a03b9874fa816ec7b6 | 94d17a473cd2a5d6a1a15dd01149195215060fed | refs/heads/master | 2022-12-11T07:05:49.095074 | 2019-09-09T13:47:30 | 2019-09-09T13:47:30 | 131,375,390 | 0 | 0 | MIT | 2023-09-14T08:28:56 | 2018-04-28T05:18:17 | R | UTF-8 | R | false | false | 1,022 | r | test-function-getInspectionNumbers.R | #
# This test file has been generated by kwb.test::create_test_files()
#
test_that("getInspectionNumbers() works", {
expect_error(
kwb.en13508.2:::getInspectionNumbers(indices.C = 1, indices.B01 = 1)
# argument "indices.B" is missing, with no default
)
expect_error(
kwb.en13508.2:::getInspectionNum... |
b653a52d757805f7744f0cff60fdafd6b5ee2943 | 357f1a79af257d1b954eecd5ab724aeb45a75889 | /man/GETVotacoes.Rd | 5961295c369053324178703dc347ab139ec782a3 | [] | no_license | matfmc/congressoR | 208c878cce6aa0f5211182b46a3ac49883d6f494 | f06e2517c140bd7bf613484487a34d34f4ddce3e | refs/heads/master | 2022-11-23T16:50:20.827939 | 2020-07-23T19:38:32 | 2020-07-23T19:38:32 | 281,163,119 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,946 | rd | GETVotacoes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{GETVotacoes}
\alias{GETVotacoes}
\title{Função que retorna Lista das votações da Câmara}
\usage{
GETVotacoes(
id = NULL,
idProposicao = NULL,
idEvento = NULL,
idOrgao = NULL,
dataInicio = NULL,
dataFim = NULL,
... |
b32dc63d9bcb0b0f38abf4abf6b8d41a93782ab1 | 2ee62142697fde94a911838a88d348df60e918e6 | /man/is_outgroup.Rd | cefc5c50901485901fbdf2283d22bfbe5e32d68b | [] | no_license | andrewparkermorgan/mouser | f9f8b11b127e30d8314e844397de1ed5dd20c2e5 | 16ead9859e8f2c1021fb4eb14b81b65531084bec | refs/heads/master | 2022-05-19T02:52:22.739616 | 2022-05-11T03:53:39 | 2022-05-11T03:53:39 | 62,641,240 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 424 | rd | is_outgroup.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colours.R
\name{is_outgroup}
\alias{is_outgroup}
\title{Test if the listed taxa are outgroups with respect to Mus musculus}
\usage{
is_outgroup(x, ..)
}
\arguments{
\item{x}{a vector of values to test (will be coerced to character)}
}
\value{... |
5493a80666761378e6e1f69b454f7db36edfc040 | 00a50d686281a4a7dc22c4322c65808663b9a193 | /R Code/Mz_regressions/MZ_regressions_A.R | 7a500da3f3d6f7bb67b16bd62f5e2f8a46e77a79 | [] | no_license | kevintikvic/RealizedVol_From_10K_Sentiment | b61bc58a0a6513fe02c84d808a9260e2d1e38eab | db0d1f0c8b06eea6218a1b104e0df55a00d6accf | refs/heads/main | 2023-04-09T16:11:11.740392 | 2021-04-28T18:15:09 | 2021-04-28T18:15:09 | 348,022,000 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,445 | r | MZ_regressions_A.R |
# PREFIX ------------------------------------------------------------------
# --------------------------------------------------------------------------------------- #
# #
# Author: Kevin Tikvic ... |
6a0d0acfcd52ef2264db17ecb1f221037d999d03 | 2634acca4cc1f402d2b5e55df00b3e02537d7fef | /MetDADevelopmentR/rscript/data_transformation.R | 0b84730880a1fd9d5642894d20961853c4f6f6ff | [] | no_license | slfan2013/MetDA-development | 05d8042fd541b89e20123624ac4add3cef5beb2f | 99a434df6d23fa229020404eac7d06d6d737887a | refs/heads/master | 2020-05-31T03:16:05.555673 | 2019-09-03T18:00:17 | 2019-09-03T18:00:17 | 190,076,747 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,824 | r | data_transformation.R | # result = list(a = defination_of_missing_value)
# http://localhost:5656/ocpu/tmp/x08f655c87c/
pacman::p_load(data.table)
data = call_fun(parameter = list(project_id=project_id,activate_data_id=activate_data_id,fun_name="read_data_from_projects"))
e = data$e
f = data$f
p = data$p
if(method == "log10"){
result... |
5bb6047ef9fca34dd3a3b414fef92ec305ed5508 | db54eb647c27f0ba6b328dd3391c9d7c4e5879ba | /R/rows_and_cols.R | 30ad8fc3c8d5568166e56ae8807c9db77d3f27db | [
"MIT"
] | permissive | hoxo-m/pforeach | 0fa383640e9e8e05f19bf0b61934a672dda2093b | 2c44f3bf651a4b2d5d5657bf8be3a94f93769871 | refs/heads/master | 2021-01-24T06:09:12.056995 | 2015-04-24T15:27:44 | 2015-04-24T15:27:44 | 26,576,040 | 39 | 6 | null | null | null | null | UTF-8 | R | false | false | 549 | r | rows_and_cols.R | #'Iterator for data frame by row
#'
#'@param df a data frame
#'
#'@export
rows <- function(df) {
iterators::iter(df, by="row")
}
#'Iterator for data frame by column
#'
#'@param df a data frame
#'
#'@export
cols <- function(df) {
iterators::iter(df, by="col")
}
#'Iterator for row number of a data frame
#'
#'@param... |
a5a541c18ad50fbb28f711babc8775de8aeadfc3 | 7a7375245bc738fae50df9e8a950ee28e0e6ec00 | /R/SA2__Year_LabourForceStatus_Sex_adults.R | 271423ce6ff64ea499f6c182443181cc39084aa4 | [] | no_license | HughParsonage/Census2016.DataPack.TimeSeries | 63e6d35c15c20b881d5b337da2f756a86a0153b5 | 171d9911e405b914987a1ebe4ed5bd5e5422481f | refs/heads/master | 2021-09-02T11:42:27.015587 | 2018-01-02T09:01:39 | 2018-01-02T09:02:17 | 112,477,214 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 208 | r | SA2__Year_LabourForceStatus_Sex_adults.R | #' @title LabourForceStatus, Sex by SA2, Year
#' @description Number of adultsLabourForceStatus, Sex by SA2, Year
#' @format 83,160 observations and 5 variables.
"SA2__Year_LabourForceStatus_Sex_adults"
|
94961f2ea4462ca8bb067580748a0876906c60b4 | da9d04bd4144087341a4e4e92c9754973c12184d | /plot4.R | 7936008d83e93cff0f6e3ffca2bb602d2c704df9 | [] | no_license | ucg8j/ExData_Plotting1 | edc3489bc694802f3073a573803acefb282c69c5 | 2050691093dc1584978d565152e7bb78c82e1f5e | refs/heads/master | 2021-01-16T21:22:21.976156 | 2016-02-07T07:45:49 | 2016-02-07T07:45:49 | 51,236,549 | 0 | 0 | null | 2016-02-07T05:19:51 | 2016-02-07T05:19:50 | null | UTF-8 | R | false | false | 1,403 | r | plot4.R | # read data
df <- read.table("household_power_consumption.txt"
, sep = ";"
, header = T
, stringsAsFactors = F
, na.strings="?"
, colClasses=c("character", "character", "numeric",
"numeric", "numeric", "... |
6b902963d42db65c844d4a98c95b573ba3bfbaee | 709a6f9fff0506d6639a4502655c9f6f83d9b5b0 | /scripts/10_gbm.R | c954cc3b1d17ecfeec239eca51ed0cf1c8b422bd | [] | no_license | loremarchi/hands-on-machine-learning-R-module-2 | d5fa44278f2fb52eac6925d0f0d2b281b9b25d2b | 2050995b266faf14fb762be5fb79857e44851ac3 | refs/heads/main | 2023-07-14T20:47:56.614164 | 2021-08-29T09:24:12 | 2021-08-29T09:24:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,900 | r | 10_gbm.R | ##############################################
# (Stochastic) Gradient Boosting Machines
##############################################
## --------------------------------------------------------------------------------------------------------------------------------------------------
library(tidyverse)
set.seed(54... |
ae59702957b8e15cf0c20b62e1bfd1f170064911 | b1a33601063045d53cb876aab6d107fc981f85d4 | /man/n_countries.Rd | 5a01d42aac5d50f64b0a58b441e4e99a183e77e8 | [] | no_license | dedi0003/cwdata | f752fce3fbdb5332a34f7c5c9d837546c7629db2 | b12d34b56728d0412693c49dfef83d1f880b99b9 | refs/heads/master | 2022-12-23T22:52:59.292569 | 2020-10-04T11:53:08 | 2020-10-04T11:53:08 | 301,117,203 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 309 | rd | n_countries.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count.R
\name{n_countries}
\alias{n_countries}
\title{Count the number of countries}
\usage{
n_countries(data)
}
\arguments{
\item{data}{a dataset containing a \code{country} column}
}
\description{
Count the number of countries
}
|
9c6c868a5c3526b5a8892b516600ce5c059bd65e | 3bc5905d66434160b2974f25612e34492140f550 | /bean_beetles_sim.R | eae1534279a934675db3a9393519b61a962432fb | [] | no_license | rreareyes/BIO153 | f86eb83606379a464d9f397748caa5c6cd64753b | 5fee0239ddc3d9ee6c255d0011a64a145e0f97b8 | refs/heads/main | 2023-03-02T22:35:25.403891 | 2021-02-12T22:09:34 | 2021-02-12T22:09:34 | 338,444,563 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,000 | r | bean_beetles_sim.R | # Simulate Bean Beetle experiment -----------------------------------------
#
# This function creates a dataset for a single student that contains data
# from a specific number of dishes, beetles and with whatever observations
# you want (but it defaults to 60, since that was the original set up of
# one observa... |
a86ed3039b7729cd521161a5222203ba6964ce64 | a6d2cb141e97b23c6179e6f83a6abc6c23978894 | /HB_SVM.R | 3cfa639374f8cc02c7c46a7ed486c4dd415ca872 | [] | no_license | JMNData/HiggsBoston | 7867024f3b847291844ba4a1600dde2d6b82e8d4 | 31caa8d016027b493eeb3b9599b76116c09a128c | refs/heads/master | 2020-12-30T11:15:28.484099 | 2014-09-24T02:19:53 | 2014-09-24T02:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,304 | r | HB_SVM.R | #install.packages("RODBC")
#INITIALIZE LIBRARIES
library(RODBC)
library("parallel")
library("randomForest")
library("rpart")
library("e1071")
library("randomForest")
library("gbm")
library("klaR")
#Set Globals
setwd("C:\\Users\\Administrator\\Documents\\GitHub\\HiggsBoston")
options(scipen=999)
#GET DATA
myconn = od... |
d8b957c5cb67f68643562313d3d5f91004dd615c | 7e91349fa2202bc3920e8ff728f8bbfbd871b3d8 | /6-PathwayHeterogeneity/runGSEA_preRank.R | b1dc17043d741cc3202227d66dceb289ac2ae531 | [
"MIT"
] | permissive | zhengtaoxiao/Single-Cell-Metabolic-Landscape | 812dc12fd284b575145c855c72196bea5d008222 | a89f4215e66e48c2540e09a8679529add39f7e38 | refs/heads/master | 2021-11-25T11:26:22.555380 | 2021-11-10T01:26:45 | 2021-11-10T01:26:45 | 160,257,851 | 24 | 7 | MIT | 2021-11-10T01:23:59 | 2018-12-03T21:43:21 | R | UTF-8 | R | false | false | 836 | r | runGSEA_preRank.R | runGSEA_preRank<-function(preRank.matrix,gmt.file,outname){
#descending numerical order
#dump preRank into a tab-delimited txt file
write.table(preRank.matrix,
file='prerank.rnk',
quote=F,
sep='\t',
col.names=F,
row.names=T)
#call java gse... |
b08e3e0fa83ed20239a0e4ecd129b3690e3c891a | 212ac6787936c05182408d738ed82f1501ae35e7 | /HapMap.R | d88e237e95a7b73549f0d71df48c12c587b40e28 | [] | no_license | catmarper/RaukRProject | 640257994a1aa9d987cf2f8df84c093bf523c2d8 | 2c454df5888dc73082ccf65f177987517aa5cb6e | refs/heads/master | 2020-06-05T21:13:14.026774 | 2019-06-19T19:41:08 | 2019-06-19T19:41:08 | 192,546,433 | 0 | 8 | null | 2019-06-19T19:41:09 | 2019-06-18T13:32:49 | HTML | UTF-8 | R | false | false | 6,815 | r | HapMap.R | #From Marcin: HapMap Autoencoder
#autoencoder as a replacement/complement to MDS/PCA used for visualising population structure in genetics
#head(summary(data_raw@gtdata))#summary of the genetic data
#Getting rid off the chromosome 39 (X chromosome)
#data_autosomal <- data_raw[,data_raw@gtdata@chromosome != "39"]
# ... |
5ece6787f8e207d3e4689ad34f8e1bd0ebe14dd5 | 2e54be2072252c1250e4c80248a775b8d91d2798 | /man/indexPat.Rd | 96d4d8dcce4e6fcf79652269e6afda995334d2ff | [
"MIT"
] | permissive | SICSresearch/IRTpp | 397af58ac686701565f1718ea32b68ea580b2d35 | 529ecc0ab14898cbf1862d96addb78689f08997a | refs/heads/master | 2020-12-29T00:59:44.650919 | 2016-06-20T15:18:34 | 2016-06-20T15:18:34 | 30,204,560 | 3 | 3 | null | 2015-11-05T13:10:34 | 2015-02-02T19:38:11 | R | UTF-8 | R | false | true | 313 | rd | indexPat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{indexPat}
\alias{indexPat}
\title{Index pattern}
\usage{
indexPat(data, pats)
}
\arguments{
\item{data}{The pattern matrix}
\item{pats}{The indexed pattern}
}
\description{
The index of the pattern
}
\keyword{internal}
|
539078c3c24aae6495dded3eefe22a95e248a3ee | 3f88e08aaa9bce00f01ccfa31ee3d777deddc1e6 | /inst/shiny-examples/analytic/labels.R | 468d3e6ace27bbc7373d573baaf5d8c1773bf756 | [] | no_license | Kenkleinman/clusterPower | 8a22730597762066f211208ff57b8f42f1dffaaf | cfa3a00a14c381a824eb399c05596b252003795a | refs/heads/master | 2023-04-06T14:42:26.428117 | 2021-01-30T01:03:52 | 2021-01-30T01:03:52 | 9,607,628 | 3 | 6 | null | 2023-04-04T23:27:25 | 2013-04-22T19:57:35 | R | UTF-8 | R | false | false | 7,550 | r | labels.R | # parameters common to at least two outcomes
alphatext <- HTML('α (alpha)')
alphatooltip <- 'Type I error rate. Should be between 0 and 1, preferably close to 0 (e.g. 0.05).'
alphavalidmsg <- 'Type I error rate should be between 0 and 1.'
powertext <- 'Power (power)'
powertooltip <- 'Power of the test. Should be... |
548efb1d52c5e709a8a89fbea4428e87555fd28a | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/gcKrig/R/predGHK.R | 9e4c6b56336b5f7e14dcb4310d6920a6ccd44ae6 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 22,763 | r | predGHK.R |
#######################################################################################################################
#######################################################################################################################
#### Inner function only used to be called by another functions inside packa... |
047f9c62561cd90fdce30a83faa04afa360fe135 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.management/man/servicequotas_list_reque_servi_quota_chang_histo_by_quota.Rd | a8474845e03286db2ae4c8094a412c68b024ae60 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 1,147 | rd | servicequotas_list_reque_servi_quota_chang_histo_by_quota.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/servicequotas_operations.R
\name{servicequotas_list_requested_service_quota_change_history_by_quota}
\alias{servicequotas_list_requested_service_quota_change_history_by_quota}
\title{Retrieves the quota increase requests for the specified quo... |
d416e11b9a5113d783b557231fe6b6df7134078a | 573217e72d2d614b6575d0751397088e87418f79 | /util.R | 780242117e8438f975163a756d4056ffa3ba6055 | [] | no_license | hal-henningsmoen/ExData_Plotting1 | c350fa15d1b62d06f1a4135dfcd992a43478f3f4 | bc897fb5e24b0da5ca54eac3c43b323a1a66aadd | refs/heads/master | 2021-01-22T13:03:48.344712 | 2017-02-03T17:03:27 | 2017-02-03T17:03:27 | 45,550,261 | 0 | 0 | null | 2015-11-04T16:02:47 | 2015-11-04T16:02:47 | null | UTF-8 | R | false | false | 1,193 | r | util.R | library(dplyr)
library(lubridate)
# This function loads:
# - loads the data in filename to a data frame
# - subsets the data to only the targe days for the analysis (Feb 1 and 2, 2007)
# - Creates a datetime column based on the date and time string columns and drops the date and time columns
# ... |
0afcfa6abeaef354daabd71ee6e0e613a7b70a79 | 094e952da4fa8698b04fb88b69fbf67668218d24 | /code/ch.5/e/ex5.r | c95a5830d63338da458ccb6ea8c3909874259b63 | [
"MIT"
] | permissive | rhyeu/study_rstan | 42a773beef840f56f64fcd20c5b1b24f88d45e1b | a5b998772358ba64996bc7ca775566f0706fa8f3 | refs/heads/master | 2021-07-08T15:51:37.488890 | 2020-10-04T07:10:03 | 2020-10-04T07:10:03 | 195,388,081 | 0 | 0 | null | null | null | null | UHC | R | false | false | 776 | r | ex5.r | library(ggplot2)
# after run-model5-6.R
load('D:/006966_wonderful2/02. 원고개발/실습/ch.5/result-model5-6.RData')
ms <- rstan::extract(fit)
d_qua <- t(apply(ms$m_pred, 2, quantile, prob=c(0.1, 0.5, 0.9)))
colnames(d_qua) <- c('p10', 'p50', 'p90')
d_qua <- data.frame(d, d_qua)
d_qua$A <- as.factor(d_qua$A)
p <- ggplot(dat... |
a5d9742c9fd9ef528a98622343f5606d9dca1ff4 | edd22bbc5848892113a519ad3490d6d5709772ed | /plot4.R | 7ef6c5c4e0ad1e2d03502c44aa7bca5298fdb08a | [] | no_license | ivanobando67/cior | f56e3aa9c1323aaeb9365218f96fe0cb875f6ec7 | 2585a60183afffe930be4e1c528fe0fc81c179b1 | refs/heads/master | 2022-11-29T20:45:58.319068 | 2020-08-16T06:33:08 | 2020-08-16T06:33:08 | 283,086,476 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 859 | r | plot4.R | # Tarea 2
# Carlos Obando
#----------------
# Pregunta 4.
# En todo Estados Unidos,
# ¿cómo han cambiado las emisiones de fuentes relacionadas
# con la combustión de carbón entre 1999 y 2008?
#-------------------------------------------------------------------------
setwd("C:/CIOR/UNIVERSIDAD_CENTRAL/COUR... |
c0169abf6622de3e4c98cc9a7846c95d88b48010 | 4c27422b8a417b0c3559d89eb3d17a36feb00459 | /vinelandcomparisons.R | f254d1dca35e1d21d391e53e533468efb5587c0b | [] | no_license | landiisotta/NDAR_data | 82f67730e95701b72247a46e2376ddc2b8be8002 | 4f246d7d710533d37de575bc362be91640cb8f5a | refs/heads/master | 2022-07-12T15:35:19.618190 | 2020-05-15T20:01:33 | 2020-05-15T20:01:33 | 255,643,520 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,774 | r | vinelandcomparisons.R | require(ggplot2)
require(reshape2)
library(RColorBrewer)
require(ComplexHeatmap)
require(ggalluvial)
#########################FUNCTIONS#############################
# Compare missing information
compare_missinfo <- function(p, lev){
print(sprintf('Check missing data confounders period %s, subdomains', p))
percDf <... |
6a41bf0a18b441c5906dd7880cdf77ba73ebe025 | 5355ce6341489f05dc5894a70cf5cff1f951a194 | /man/dbCreateUserEM.Rd | 1ca402de02a6ddc744415058cb99825082d55fcf | [] | no_license | AndreMikulec/econModel | 5032565f1722275425f75b55811493d45bf87f8c | 22b8507838116d3e33b6e40cf891988ad104ac7b | refs/heads/master | 2023-06-03T19:23:00.544927 | 2021-06-26T07:38:20 | 2021-06-26T07:38:20 | 303,683,123 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,238 | rd | dbCreateUserEM.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AmerAssocIndividInvestorsAAII.R
\name{dbCreateUserEM}
\alias{dbCreateUserEM}
\title{User Creation}
\usage{
dbCreateUserEM(
connName,
user,
attributes = c("LOGIN"),
password = user,
env,
display = TRUE,
exec = TRUE
)
}
\arguments... |
2bf9a0c71f3da6afec04fd258d23b979048a94bb | 8820fc36c5a3b9248bd333327808c7e8ed808ac1 | /Survival.R | a323b1da84f4019ca4ad80f15dd2177b01f93454 | [] | no_license | tranwin/Functional-Genomics | 120f95ad6d2ff51cf0ae8dfb9e8d4b1da892ff75 | a577a230d85f12c1fac5375336760203251375b6 | refs/heads/master | 2022-09-01T13:52:56.050264 | 2022-08-17T15:20:59 | 2022-08-17T15:20:59 | 108,777,942 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 863 | r | Survival.R | # Load the bioconductor installer.
source("https://bioconductor.org/biocLite.R")
# Install the packages
biocLite("RTCGA")
biocLite("RTCGA.clinical")
biocLite("RTCGA.mRNA")
# Load the packages
library(RTCGA)
library(RTCGA.clinical)
# Explore the data
dim(BRCA.clinical)
names(BRCA.clinical)
# Create the clinical dat... |
602a4f98fff8fafb8e8a82fde9ffc70c105dd121 | 32327508ebb4bcee65d55b928c627078b31abfd4 | /rawcode/2_lightgbm.R | 186709720ca431ab2360f3e0e0c996dbaf4f2fe8 | [] | no_license | serzzh/kaggleInstacart | b373569482e6242b304423d3d824122408cfe721 | bd0193d6b48d88b77b3abd8fcdfc2f1c2067c923 | refs/heads/master | 2021-01-01T06:56:38.074608 | 2019-12-23T12:56:23 | 2019-12-23T12:56:23 | 97,555,268 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,219 | r | 2_lightgbm.R |
###########################################################################################################
#
# Kaggle Instacart competition
# Fabien Vavrand, June 2017
# Simple xgboost starter, score 0.3791 on LB
# Products selection is based on product by product binary classification, with a global threshold (0.21)... |
ae92382ff24af4c4ceb1fc4ce81fec01278568b6 | ad684b223e22a682021ca052851b663125f2919f | /3_raster_data.R | 3b7f174e9938d5a228757dc1a0053b57ed439634 | [] | no_license | alschel/andan-cartography-2018 | ad883f7bb9e6b5bae774dfa0e3ed415c50f87ae2 | d0a19b16bf0b01318e7b8def8334f368204f9d85 | refs/heads/master | 2020-03-23T14:19:04.735402 | 2018-08-03T14:32:52 | 2018-08-03T14:32:52 | 141,668,373 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,313 | r | 3_raster_data.R | # Часть 3. Растровые данные
# Автор: Александр Шелудков, ИГРАН
# Дата: 25.07.2018
#=================================
# 3.2 Классы растровых изображений
#=================================
# Пакет raster позволяет создавать объекты трех классов: RasterLayer, RasterStack и RasterBrick
# RasterLayer состоит из 1 слоя (1... |
1669453f99456d402575ab25caa563dee768bad3 | 3ee80e0313c250966700ea1fbac120bb954c5e72 | /man/absolute.risk.Rd | 14b5699721c5b3def555d4fc787d9f742a79739d | [] | no_license | cran/BCRA | 2ba8fd5fac3435de00978a4b5aa431f1cede46b1 | 05bfdea1a18c78f411afa9c8c0fbcdf0ccae7499 | refs/heads/master | 2021-01-22T05:43:12.644706 | 2020-07-10T14:40:06 | 2020-07-10T14:40:06 | 34,805,723 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,833 | rd | absolute.risk.Rd | \name{absolute.risk}
\alias{absolute.risk}
\title{
Estimate absolute risks
}
\description{
A function to estimate absolute risks of developing breast cancer
}
\usage{
absolute.risk(data, Raw_Ind=1, Avg_White=0)
}
\arguments{
\item{data}{
A data set containing all the required input data needed to perform risk proj... |
643642dd61795821cdc8b5cf2f5f0adb76835af2 | 7a728c699477aa5dfbfe6322619325441c595265 | /surface_metrics/geodiv/man/ssc.Rd | 6b716bad514b32d66378f423ab9c12870ff549f9 | [
"MIT"
] | permissive | bioXgeo/SyntheticLandscape | 0bdcba730dbfb3c60a94e67d6111909e71cdd632 | dd0661e03513d578d32b281eb99f68b0c0c2a001 | refs/heads/master | 2021-01-25T00:23:47.429011 | 2019-07-31T19:25:27 | 2019-07-31T19:25:27 | 123,295,277 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 551 | rd | ssc.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/localsurface.R
\name{ssc}
\alias{ssc}
\title{Mean Summit Curvature}
\usage{
ssc(x)
}
\arguments{
\item{x}{A raster object.}
}
\value{
A numeric value representing the average curvature of
surface peaks.
}
\description{
Calculates the mean s... |
01868c9eb1bac241d571019c58f1b0bb095e6370 | f9b8b7ab6bc852eeacda48a73568f8bc10d18439 | /Relation_nu_C.R | 2d5a30b0b4d914ac193755b055e0d737b06132ab | [] | no_license | chor-nyan/anomaly-detectionR | edfc9f78013fbdace4654819a2e488d4ccf26406 | 3481d7c6f5460c2103ea48cac9af16a84b4a6d7c | refs/heads/master | 2020-05-17T21:38:10.505493 | 2019-05-08T23:09:43 | 2019-05-08T23:09:43 | 183,978,426 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 779 | r | Relation_nu_C.R | library(kernlab)
library(mlbench)
library(e1071)
# dat <- mlbench.spirals(400, cycles = 1.2, sd = 0.07)
# x <- dat$x
# y <- dat$classes
# rbfsvm <- ksvm(x, y, type = "C-svc", kernel = "rbfdot")
# par(ps = 16, lwd = 2)
# plot(x, col = predict(rbfsvm, x))
#
# testx <- matrix(rnorm(100),,2)
# predict(rbfsvm, testx)
dat ... |
c47cd733a7c5c2c1a7b2f4556d049c787ff5a84c | 03501e75ff173368902ebe7c972d70a8b27b3c0a | /R/UNdata.R | 29f56c30c761e4ac26f14c4b3b07c8fbc620bd67 | [] | no_license | ansikmahapatra/public-codes | bb7097d705e4ca7b1a79f4a4b0abbcf4e6465276 | 31c4fb46e41d3add5d88fc64883aea2f5d18b4c3 | refs/heads/master | 2022-12-12T15:36:12.876337 | 2020-09-07T20:39:10 | 2020-09-07T20:39:10 | 293,627,444 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,536 | r | UNdata.R | #United Nations Data// World Bank
#install.packages("WDI")
library(WDI)
country<-c('DZ','AO','BJ',
'BW','BF','BI',
'CV','CM','CF','TD',
'KM','CG','CD','CI',
'DJ','EG','GQ','ER','ET',
'GA','GM','GH','GN',
'GW','KE','LS',
'LR','LY','MG',
... |
f26cae165cacddd2184fb981c2ab77835add9cd1 | 2713c05a459d61a5c6f87011298b4d9c00369874 | /SocialNetworkAnalysis/Undirected Graphs/degCent.un.R | a69ae3ff3bc08d67a94dc046933b6be40b92f6f7 | [] | no_license | damiansp/R | 0f6cc2b514a15bf22dd1ed7c12033d06e61867b6 | 6efa47560799a05da672d77d6a05f470f1a14f6e | refs/heads/master | 2021-12-28T14:39:33.200099 | 2021-12-20T19:32:57 | 2021-12-20T19:32:57 | 59,253,315 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 411 | r | degCent.un.R | degCent.un <- function(X) {
#Calculates group degree centrality in network
#See p. 180, eq. (5.5) in "Social Network Analysis: Methods and Applications" by Wasserman & Faust
if(dim(X)[1] != dim(X)[2]){
print("Matrix must be square")
break
}
if(identical(X, t(X))==F){
print("Matrix is not undirected")
brea... |
4354cc702f6bfcba569550b72e7a7d6b5a60d5e1 | 4cd99265b16a75448314aa0f8a3a849987c8a396 | /Plot2.R | 970dee19d7a5e3aec584b3e9e84a7f296741d3f7 | [] | no_license | fabmendozad/ExData_Plotting1 | dceb3dfb63dd5e09d142547cc536379115825095 | 962b42144776328598c1e01eb3a8a4ffb1f31366 | refs/heads/master | 2021-01-09T07:18:41.150581 | 2016-07-18T03:25:49 | 2016-07-18T03:25:49 | 63,565,902 | 0 | 0 | null | 2016-07-18T03:01:09 | 2016-07-18T03:01:08 | null | UTF-8 | R | false | false | 393 | r | Plot2.R | data <- read.table("data.txt", header=TRUE, sep=";", stringsAsFactors=FALSE)
#Subseting the data
data <- subset(data[data$Date %in% c("1/2/2007","2/2/2007"),])
dates <- strptime(paste(data$Date, data$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
png("Plot2.png")
#Creating the plot
plot(dates, as.numeric(data$Global_active_powe... |
c2c179275dce18885138173eec6c0ec281442855 | 14fde9767b387bba6c47a4b3246a2947c8014b82 | /tests/testthat/test-countEdges.R | f9fb20679de1ff2a0b99a2301aa3ff7743f25d52 | [
"MIT"
] | permissive | MuzheZeng/fastRTG | f99aa04a4d779f3e1407f05ee8f852e4a52e6f91 | 4591cd9003b26979e0ecd9d7ec4b662a47ed6af8 | refs/heads/master | 2021-05-23T13:42:43.775409 | 2020-05-10T22:35:54 | 2020-05-10T22:35:54 | 253,317,966 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 254 | r | test-countEdges.R | test_that("multiplication works", {
set.seed(123)
n = 10
k = 3
X = matrix(rnorm(n*k),n,k)
X = list(X,X,X)
G = rTensor::as.tensor(array(rexp(k^3),dim = rep(k,3)))
res = countEdges(X, G)
expect_equal(res[2], 0.08266169,tolerance = 1e-5)
})
|
fcdddcf0f1180782f762a53004bcc3733d408c76 | 60a99dc425d9edca7b3dec562f5cf6367d9c61ec | /prettyGraphs/man/prettyScree.Rd | e1ed9d65a828798977ab2c2c750db314a44c478c | [] | no_license | LukeMoraglia/ExPosition1 | e7718ae848608f1dc3934513c6588f53f2c45a7f | a69da6c5b0f14ef9fd031b98c3b40b34dad5240f | refs/heads/master | 2022-12-31T17:45:10.909002 | 2020-10-22T19:45:49 | 2020-10-22T19:45:49 | 255,486,130 | 0 | 1 | null | 2020-10-22T18:08:38 | 2020-04-14T02:01:12 | R | UTF-8 | R | false | false | 3,345 | rd | prettyScree.Rd | \name{prettyScree}
\alias{prettyScree}
\title{
prettyScree
}
\description{
prettyScree creates simple, crisp, publication-style scree plots and ``tests'' for SVD-based analyses.
}
\usage{
prettyScree(eigs, retain.col = "mediumorchid4", dismiss.col = "gray",
perc.exp = 1, n.comps = NULL, broken.stick = TRUE, kaiser = ... |
07aeeda4abad9b86ebcc95a9b5b2dd56205166c1 | 92daf0af490f9fba31e08dcf485bfcd148dc0d8c | /R/weight.r | b81d8f76063bc8aadaddc766ee855cc2c39d3fb4 | [] | no_license | anu-bioinfo/gwSPIA | 30fdb16c400ce05ac0a69e3943a4548639582c55 | c4b1551d225870f791cb5afac258767ef015c95b | refs/heads/master | 2020-09-17T03:27:26.445895 | 2018-05-05T15:09:02 | 2018-05-05T15:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,587 | r | weight.r | #' return a list by BC
#' @param mdir
#' @param pathwaynames
#' @export
BC<-function(mdir=NULL,pathwaynames=NULL){
library(igraph)
library(KEGGgraph)
betweennesslist<-NULL
pathwayID<-NULL
for(i in 1:length(pathwaynames)){
mapkpathway<-try(parseKGML(paste(mdir,pathwaynames[[i]],sep="/")),TRUE)
mapkG... |
904b4880d55ab71c10fa98d6797b22e05149bac4 | 202c09d8917b23bcb2356f39a12b2d349ba47c81 | /run_Analysis.R | 16ccb4496327fad2c1c00d22f220248ce9198505 | [] | no_license | vannguyen17/gettingandcleaningdata | 3377d127dbc3eccc8f0c0767023ae9d9704ee73d | 8f5301cca5f59b4e6eb31f03fbf5f2ce29bd35e0 | refs/heads/master | 2016-08-08T23:27:05.834145 | 2016-03-14T06:07:42 | 2016-03-14T06:07:42 | 53,827,410 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,123 | r | run_Analysis.R | #Download the data into the data folder and unzip it
if(!file.exists("./data")) {dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl, destfile = "./data/data.zip")
unzip(zipfile = "./data/data.zip",exdir = "./data")
#Li... |
105400827193a389bfd0d1dbf44ed86cb8ad6dc6 | ef8ac8957dec0620f59b169cde8bb13875a2b79e | /rankall.R | 8338633a2bd095e44bfce863af7867f3b7c6192b | [] | no_license | lulunaheed/rankhospital | 70e22337ea1c47e532e36120de6b27523f9fea9b | c2cd2c575fdde1328dcad30614fc87f1f937a3dd | refs/heads/master | 2020-06-15T10:15:29.648585 | 2019-07-04T16:12:37 | 2019-07-04T16:12:37 | 195,271,106 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,292 | r | rankall.R | rankall<- function (outcome,num="best"){
loc <- "/Users/lilafakharzadeh/Desktop/Coursera/rprog_data_ProgAssignment3-data"
setwd(loc)
## Read outcome data
outcomedata<-read.csv("outcome-of-care-measures.csv",na.strings="Not Available",stringsAsFactors=FALSE)
statesused<-unique(outcomedata[,7])
statenames<... |
e7403bfab4c9ac88f8cd9efcb5efca60e9b8c759 | 803ad45524e5009e304bae220096c1ad9d2bf67a | /postProcessingEvidenceUnify/R/evidenceUnify.R | 2880afcc34a154c4f0839fbef80d5d0106b263df | [
"Apache-2.0"
] | permissive | kingfish777/CommonEvidenceModel | 07429f633d896459183a16fbd8e37456b3061ac3 | 938a8ec215dd710a0edfb6ef061cd573f0593252 | refs/heads/master | 2020-04-26T06:45:48.421423 | 2018-09-18T18:18:15 | 2018-09-18T18:18:15 | 173,375,699 | 1 | 0 | null | 2019-03-01T22:21:20 | 2019-03-01T22:21:19 | null | UTF-8 | R | false | false | 1,506 | r | evidenceUnify.R | # Copyright 2017 Observational Health Data Sciences and Informatics
#
# This file is part of evidenceProcessingClean
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.... |
96ea3552d6d9d13a24d5997ba057a96a37964092 | 091211fc733515cbcd42ad63998fcf6184bf3e77 | /man/hybrid.hourly.Rd | 0617870213a560adc2f18c4eee8350836383c90a | [] | no_license | AndrewYRoyal/ebase | 3560e2e4e717120357b066f27fbfa094d6bb34ec | 7decc805dc80d26a77505c8c4fb87816c63a7a24 | refs/heads/master | 2022-12-22T17:23:30.440452 | 2020-09-30T12:31:43 | 2020-09-30T12:31:43 | 168,870,979 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 241 | rd | hybrid.hourly.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hybrid.R
\name{hybrid.hourly}
\alias{hybrid.hourly}
\title{Hybrid Hourly}
\usage{
\method{hybrid}{hourly}(dat, model_options, ...)
}
\description{
Hybrid Hourly
}
|
f4b298c23e62ae1a0c2164c10498e0156aec6015 | 2d24c72abe89c38bc13682ca2a048ffa97dcf9c3 | /Blatt1_Aufgabe3.R | df1a33add17f328b7b27cda7cd18733f03da916b | [] | no_license | curala70/StatistikSS2017 | e42c93fe62255774727e0e44cad6ca97328fc008 | b535c398ee1ad6ec6a0434b759ace077712108ac | refs/heads/master | 2021-01-20T02:05:54.611177 | 2017-06-27T08:45:11 | 2017-06-27T08:45:11 | 89,371,542 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 358 | r | Blatt1_Aufgabe3.R | byte = function() {
# Konvertiere Zahl zwischen 0 und 255 in ein Byte
as.integer(intToBits(sample(0:255,1))[1:8])
}
# Wiederhole 10^4 mal die Summe des Byte
exp=replicate(10000,sum(byte()))
# Erstelle Histogramm
hist(replicate(10000,sum(byte())),freq=T,main='Binomialverteilung',
xlab='Wert',ylab='R... |
fb5e06e211c14fd25f072a279d5268d27790bf32 | 8c026eb8ce94d81cdfba0073fb2d8fc767cca4a1 | /McSwan/R/coalesce.R | 70780a93fe172fd186e9097fe63838ec4183b59c | [] | no_license | sunyatin/McSwan | 832018c82b3cecd354f3eb31af63e7de227162c2 | b86869b56892bbdf4b250b012c808dbeae5becf3 | refs/heads/master | 2023-02-08T14:10:05.278919 | 2023-02-03T13:57:23 | 2023-02-03T13:57:23 | 76,260,197 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 11,845 | r | coalesce.R |
#' @title Extract the deme effective sizes just before an event time-scaled age
#' @param ms the ms-formatted demographic history
#' @param islandIndex the index of the focal island
#' @param eventAge the age of the event, scaled in units of 4No
#' @return the resizing coefficient, in reference to No
#' @keywords int... |
227325b48670398239499734b97b27239e8a5f08 | 5c1a533945187081ebda39902468140d98f3e0a2 | /man/makeExampleDB.Rd | 8809ba23d8a72ea72215f121ccae7056335ce143 | [] | no_license | cran/arealDB | 40fb8b955aab850010ad74662cfad71a57828656 | 3c724a46811ba71288f311e11b20d1c8d065200d | refs/heads/master | 2023-07-05T11:01:30.807752 | 2023-07-03T09:00:02 | 2023-07-03T09:00:02 | 276,648,603 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,794 | rd | makeExampleDB.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeExampleDB.R
\name{makeExampleDB}
\alias{makeExampleDB}
\title{Build an example database}
\usage{
makeExampleDB(path = NULL, until = NULL, verbose = FALSE)
}
\arguments{
\item{path}{[\code{character(1)}]\cr The database gets creat... |
767c215977e6d137aa6c97faa5ddf7709059401e | 516e4fc6ff9b1840be8156d9458e203135fd1d56 | /R/fst.global.monoecious.R | 0e5df4e4bec1f63d447f3291aa6396f204c49d58 | [] | no_license | MarcoAndrello/MetaPopGen_0.0.8 | dfc30bb1a9ce3ab58beda0d9990d1e4ab62aa54e | 9d0d38fcbbc8417edf5f7220cdbf55c1f6b2aee7 | refs/heads/master | 2021-01-25T12:36:42.201135 | 2018-09-17T18:13:46 | 2018-09-17T18:13:46 | 123,484,225 | 0 | 0 | null | 2018-09-17T18:13:47 | 2018-03-01T19:45:05 | R | UTF-8 | R | false | false | 1,156 | r | fst.global.monoecious.R | # Global fst
fst.global.monoecious <- function(N,t) {
if (is.character(N)) {
dir.res.name <- paste(getwd(),N,sep="/")
name.file <- paste(N,"/N",t,".RData",sep="")
load(name.file)
} else {
N <- N[,,,t]
}
# Define basic variables
m <- dim(N)[1] # Number of genotype... |
ffb2abf15a7bd48efc962b5f8e8e55703483f492 | 331cc0bf5eadeb319ae2c1bc9acd5280b2be4279 | /Lab_3/kouvaris_workspace.R | 08c5f508b9d8ac2cbb91f7c5b256103c85590fc3 | [] | no_license | timbo112711/Data-Mining | 221e9d207cfdb034eaf232b24983995e825ef10e | 4f5fed920b023a9bc54d2a5778325614fb444a78 | refs/heads/master | 2020-04-08T20:12:33.739073 | 2018-11-29T15:40:20 | 2018-11-29T15:40:20 | 159,688,790 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,300 | r | kouvaris_workspace.R | library(arules)
library(arulesViz)
library(dplyr)
library(readr)
library(dplyr)
library(tidyr)
library(arules)
library(arulesViz)
library(methods)
library(tseries)
library(ggplot2)
setwd("~/Dropbox/SMU/7331_mining/pdti_DataMining/Lab_3/")
# import python pre-processed for other mining
df = read.csv('./data_cleaned.c... |
a97f87b0f8f39b68390a1ef0da78e767c0a1d961 | 3f80b5455566002c67aaf18bd2178a200b1f1352 | /clipDomainPolygon_v2.R | f9ca2b15d010da999d06587318e3b653392ae318 | [] | no_license | peterbat1/RandR_modelReview_and_prep | 7f70b30ed6e28df75c01ae5d18fee245d3528ad6 | 250abe643d987208ecb3689f5f347c7287a1c9a5 | refs/heads/master | 2023-03-07T10:54:33.948549 | 2023-02-27T03:17:07 | 2023-02-27T03:17:07 | 266,959,584 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,043 | r | clipDomainPolygon_v2.R |
# library(sp)
# library(rgdal)
# library(rgeos)
#
# clipBounds <- function(boundsFile)
# {
# d <- readOGR(boundsFile)
#
# clippedDomainName <- sub(".geojson","_clipped.geojson",boundsFile)
#
# clippedDomain <- SpatialPolygonsDataFrame(gIntersection(oz,d), data = data.frame(ID = "1"))
#
# writeOGR(c... |
c762680fa81e05449ba57a774aa871c52d699dbc | 3f926458350729475fedbca1db5fd24bfb95cb52 | /maps.R | 51d6be49b16d71224f10fd74ecdfc0a2db958c5f | [] | no_license | fall2018-saltz/ist687_project_team_3 | 0b955c9910d88222557d881f566bb2885d1ca55e | 0033c30bacba96d81430437261bd5f1748148611 | refs/heads/master | 2020-03-31T18:22:47.072637 | 2018-12-06T05:50:31 | 2018-12-06T05:50:31 | 152,456,981 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,741 | r | maps.R |
library(ggplot2)
library(maps)
library(ggmap)
library(gdata)
library(dplyr)
df2 <- df
df2 <- df2[!((df2$Origin.State=="U.S. Pacific Trust Territories and Possessions")|(df2$Destination.State=="U.S. Pacific Trust Territories and Possessions")),]
origin_states_low <- tolower(unique(df2$Origin.State))
dest_states_low <... |
9e251bb27b6a3d9c82369b4c9493d719a4110fd6 | a177e3e6a34df54f6b72b18f07d4225234fed520 | /R_Conic_Quad.R | a464db18b296ba14df42a116e52c3ebaad16597f | [] | no_license | githubfun/pms | 81787bebd3c0d50c192b05a30fe788505b908af9 | b2de3cb85c37c29b40aab3196dcb551a7a3d2c89 | refs/heads/master | 2017-12-03T02:04:20.450005 | 2016-02-18T07:03:55 | 2016-02-18T07:03:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,242 | r | R_Conic_Quad.R | setwd("~/MyFile") #Dossier emplacement ? d?finir
PathCAC="returns1.csv"
PathDAX="returns DAX.csv"
SectorCAC="CAC40 sectors.csv"
SectorDAX="DAX30 sectors.csv"
returns=read.csv(file=PathDAX, header=TRUE ,sep=";") ## matrix of returns
n=ncol(returns)
list_lambda=seq(1,5,1) ## list of log risk aversion par... |
f164216da2ba246dcc5efeb6bea02ae3f7803501 | 964e28a895ff80388bc0bff2a7b7687ade4824ff | /cluster_code.R | 088900d25d5ab429f96606c44aa06e8e45f571ff | [] | no_license | melnyashka/Hawkes_process_with_Erlang_kernels | 91d0284dbf344b7a18560289cdac980759d08933 | d2cd6e59525ebf1dbcbdb1b9a0d8e2b7f27a3b22 | refs/heads/master | 2020-06-20T06:54:11.159579 | 2020-01-31T20:38:01 | 2020-01-31T20:38:01 | 197,032,107 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,163 | r | cluster_code.R | library(parallel)
library(futile.logger)
library(latex2exp)
setwd("University/neuroscience/Hawkes_with_Erlang_kernels/logs") # comment/uncomment/change the directory if necessary
date <- Sys.Date() # Create a subdirectory with the current date
wd <- getwd() # Save the name of the working director... |
3d99ffdf72b1c1f16e9286d35d8f4d136bfd97dc | cdf3d4455bfbba06427a143e052d73e4f38ec57c | /front_end/modules/analysis_mod.R | 4e309a6574b9cf1c98a9c45f530426aca6df5322 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | danlooo/DAnIEL | c194d695bb74577934fc68e1fa56da22c8470bf8 | 198fcd82546d3020af67020e5c021b1633718ba4 | refs/heads/main | 2023-09-06T08:39:28.620621 | 2021-11-11T15:49:59 | 2021-11-11T15:49:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 798 | r | analysis_mod.R | #!/usr/bin/env Rscript
# Copyright by Daniel Loos
#
# Research Group Systems Biology and Bioinformatics - Head: Assoc. Prof. Dr. Gianni Panagiotou
# https://www.leibniz-hki.de/en/systembiologie-und-bioinformatik.html
# Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI)
# ... |
54bf548fe53edc82874aff90010d5382c5902a7b | 154f590295a74e1ca8cdde49ecbb9cbb0992147e | /man/ar1.Rd | 5de08c3e5771edf205d5015bc9a177a7e9328d73 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer",
"CC0-1.0"
] | permissive | klingerf2/EflowStats | 2e57df72e154581de2df3d5de3ebd94c3da0dedf | 73891ea7da73a274227212a2ca829084149a2906 | refs/heads/master | 2017-12-07T10:47:25.943426 | 2016-12-28T20:52:42 | 2016-12-28T20:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 511 | rd | ar1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ar1.R
\name{ar1}
\alias{ar1}
\title{Function to compute the AR(1) correlation coefficient for a given data series}
\usage{
ar1(data)
}
\arguments{
\item{data}{data frame containing daily discharge data}
}
\value{
ar1 AR(1) correlation coeffic... |
b88fdac52ddacb4bfd5f9831053cd3752c2f3457 | c1c49f8c8b21edc22b5fc001646ec003343aa7db | /PROBLEM3/RScripts/windforecast3_windpower3.R | 0b31d44e388ca0bd6f5c0099e828152d7ff03ef4 | [] | no_license | himajavadaga/Kaggle-3-datasets | 9db4f904f2bf9a18eaeb63e124a576f22fbd5f68 | 05776514114c2bfdafe89f0a8c02bbcd7d071ec2 | refs/heads/master | 2021-06-04T08:04:21.842214 | 2016-07-09T04:00:34 | 2016-07-09T04:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,882 | r | windforecast3_windpower3.R |
#helps the user to pick the file
x=file.choose(new = FALSE)
#importing the file
wf3<-read.csv(x, header = TRUE)
wf3$agg_value <- rep(1:(length(wf3$date)/4), each=4)
aggdata <- aggregate(wf3, by=list(wf3$agg_value), FUN=mean)
#converting date to character
aggdata$date <- as.character(aggdata$date)
#separating th... |
b6da2cf34d1e982e81c3d77bc77912d2fc1a71dd | dd3d2250d7511fa02f15e68e60ff12be374c3a9a | /ph.R | 5b1ddc0a046d4852c5c1c4edd7222bf9e1aedf99 | [] | no_license | mleibert/651 | feebff679ec0ffe93e41d3e50304dd23c08d7f55 | f4304d9fbbed0f7b9c330d2c6f8e447b037a45a2 | refs/heads/master | 2021-08-24T05:04:06.919720 | 2017-12-08T04:39:42 | 2017-12-08T04:40:06 | 102,660,779 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,210 | r | ph.R | rm(list=ls())
options(stringsAsFactors = FALSE)
options(scipen=999)
setwd("G:/math/651")
ph<-read.table("plastichardness.txt")
names(ph)<-c("Y","X")
tail(ph)
ph.n<-nrow(ph)
lm(ph$Y~ph$X)
ph.lm<-function(x) { 168.600 + 2.034 *x}
ph.msr<-sum( ( ph.lm(ph$X) - mean(ph$Y))^2 )
ph.mse<-sum( ( ph$Y -ph.lm(ph$... |
5cc8f4046030b5fa642ff3dad56b253ace14b18c | 98b87f6e7e180948960cacd5dab7080914c16984 | /man/checknames.Rd | 4b7f81218ddf3ec1954697658b0c9cae24b385bd | [] | no_license | alexpkeil1/qgcomp | ef1543e24d64ce3afcf5c6385904e3875d14ab5f | b09d7082bd1a3ea7508a0a2954d7351dfb2243f8 | refs/heads/main | 2023-08-17T21:12:52.820929 | 2023-08-10T12:27:31 | 2023-08-10T12:27:31 | 154,714,135 | 16 | 6 | null | null | null | null | UTF-8 | R | false | true | 779 | rd | checknames.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/base_utility.R
\name{checknames}
\alias{checknames}
\title{Check for valid model terms in a qgcomp fit}
\usage{
checknames(terms)
}
\arguments{
\item{terms}{model terms from attr(terms(modelfunction, data), "term.labels")}
}
\description{
Thi... |
79f6dd8b4960dc8e47cc38eec5e0c17f302a58f6 | 150ddbd54cf97ddf83f614e956f9f7133e9778c0 | /man/subset.stimlist.Rd | 10c2ce645976a80bad3e50f1c20a022d54d10059 | [
"CC-BY-4.0"
] | permissive | debruine/webmorphR | 1119fd3bdca5be4049e8793075b409b7caa61aad | f46a9c8e1f1b5ecd89e8ca68bb6378f83f2e41cb | refs/heads/master | 2023-04-14T22:37:58.281172 | 2022-08-14T12:26:57 | 2022-08-14T12:26:57 | 357,819,230 | 6 | 4 | CC-BY-4.0 | 2023-02-23T04:56:01 | 2021-04-14T07:47:17 | R | UTF-8 | R | false | true | 626 | rd | subset.stimlist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{subset.stimlist}
\alias{subset.stimlist}
\title{Subset Stimulus Lists}
\usage{
\method{subset}{stimlist}(x, subset, ...)
}
\arguments{
\item{x}{list of stimuli}
\item{subset}{a character string to use as a pattern for searching... |
d690aee6ac826ada1483f8b9964adb6fcc13315a | 0f5084767f7d2a01d9fe63b6a5b128d85654bfde | /Rcode-dataGeneration/writeData.R | 99d789364a1006e7f01cc941c2fc17d68525f6c8 | [] | no_license | aroumpel/CausalConsistency | c755c59393076d82fd9fd0d5197b01033032663f | f947ec2a9618d9e8bbec3031f83229f2e4ea4f1a | refs/heads/master | 2019-01-16T05:11:52.798897 | 2016-12-04T14:10:22 | 2016-12-04T14:10:22 | 73,605,512 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,020 | r | writeData.R | #Requires dataset to be loaded (for example marginalsFCI.RData)
#Also, folder must be empty...
nDags <- length(marginalsFCI)
nNodes <- 20;
nMargs <- 100;
numRemoved <- 2;
folder <- "resultsFCImajrule"
doSepSet <- "TRUE"
dir.create(paste0(folder,"/magsMarginals",numRemoved));
dir.create(paste0(folder,"/pags... |
ada597cf8a63a9c2bb42b65d2d323bd08dd4b7d8 | facd83d2c6378682421bb7902191f1f49fa1836f | /man/ionml.read.laicpqms.Rd | 21b93df95136bd349b9aeb327379b2f7180eb5c7 | [] | no_license | misasa/chelyabinsk | cbb9e3acdaaefb3254d01d38c42e404164dfa2d1 | 495e8bab926934467a3a7fd7c74bb1be69d2f094 | refs/heads/master | 2021-06-28T09:11:19.766488 | 2020-11-20T00:26:38 | 2020-11-20T00:26:38 | 69,550,402 | 0 | 2 | null | 2019-06-21T10:49:18 | 2016-09-29T09:04:01 | R | UTF-8 | R | false | true | 2,403 | rd | ionml.read.laicpqms.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ionml.read.laicpqms.R
\name{ionml.read.laicpqms}
\alias{ionml.read.laicpqms}
\title{Read IONML originated from Analyte G2 with iCAP-Q}
\usage{
ionml.read.laicpqms(pmlame_or_file, t0 = 5, t1 = 20, t2 = 25,
t3 = 60, ref = "Si29", verbose = FA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.