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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9f453c83004857c493b378499f28f6d0f386d12 | 37c42e6f4ae8de0c08bcadf9371a672852f06305 | /R/read_length_plot.R | f1d4e97d607e494c06f4cb2ae6d43bf5641e8473 | [
"MIT"
] | permissive | bontus/riboWaltz | 3b1bea17e9c463f6f5a5bd948827b17bb2f507b2 | 0fe32ea8afa032bbe94ff71bde6591fb1bfcba05 | refs/heads/master | 2021-04-12T08:40:43.509914 | 2018-03-28T09:07:29 | 2018-03-28T09:07:29 | 126,181,901 | 0 | 0 | null | 2018-03-21T13:20:45 | 2018-03-21T13:20:44 | null | UTF-8 | R | false | false | 1,991 | r | read_length_plot.R | #' Plot read length distributions.
#'
#' For a specified sample this function plots the read length distribution. It
#' is possible to visualise the distribution for all the read lengths or to
#' restrict the graphical output to a sub-range of read lengths.
#'
#' @param data A list of data frames from either \code{\lin... |
d57749ec55fc6554836455c619e88f7e14c24d35 | 40dbf0aa7d02e678b9730b1be36c03de38dc406a | /GarriCorrelations.R | ed5aeea9be4a2c05226699e16d8bf36695455314 | [] | no_license | ca384/2020-garri-correlation-script | ef9bb809497faa9f0da6ae0a7db49708cec4d51e | 48075ba428090215a2a0c34a5af542a698c98040 | refs/heads/main | 2023-03-09T09:08:51.442713 | 2021-02-08T15:47:16 | 2021-02-08T15:47:16 | 335,162,354 | 0 | 1 | null | 2021-02-08T15:47:17 | 2021-02-02T03:56:30 | R | UTF-8 | R | false | false | 2,585 | r | GarriCorrelations.R | ## 2020-garri-correlation-script
# Scripts for 2020 cassava roots and garri analysis
##script for correlation of garri traits
library(here)
i_am("GarriCorrelations.R")
garri.38 <- read.csv(here("2020complete_umu_oto_garri_data.csv"), header=TRUE)
dim(garri.38)
str(garri.38)
garri.38$genotypes.garri<-as.factor(garri.38$... |
401c1a646e3e2a2c02f422eb677af74886e0c101 | 03606b6a954fa42a9ce928285842ec9b2e07b670 | /analysis_kenya_evi2records.R | ff6c86ec9f0a58b3d9845c2f90ef52f877c341bb | [] | no_license | erickokuto/r_scripts | 0f205d8bc95fd17d4a38eff8847fec45844371be | bda8c6773a18a97b394e60616d8820bc693411f7 | refs/heads/master | 2021-01-10T12:37:15.492375 | 2016-03-03T09:36:49 | 2016-03-03T09:36:49 | 53,028,314 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 25,774 | r | analysis_kenya_evi2records.R |
source("Phenology_Functions_Erick.R")
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#Record without gaps both using INLA and spDTyn
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
require(raster)
require(foreach)
require(INLA)
require(hydromad)
require(zoo)
require(dlm)
require(R2... |
fc877d1fcb32bd117e716b971662a3c71044d1d4 | dc58de1678131eb01f62ded31615db3cb261db15 | /rBEADS_v2.0/source/MappabilityCorrection_v1.1.R | 0589de51beea820b7d5b58462bf5635dfded1a65 | [] | no_license | Przemol/rbeads_old | 22f5a9685cfb8894e0c070600230ccc99201d83a | 11aef08ca1f42c9fbbbcbf55897db452edd36351 | refs/heads/master | 2020-05-17T09:06:14.462865 | 2011-07-21T17:32:54 | 2011-07-21T17:32:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,492 | r | MappabilityCorrection_v1.1.R | # TODO: Add comment
#
# Author: przemol
###############################################################################
MappabilityCorrection <- function(GCnormTrack, mappabilityTrack=NULL, genome=Celegans) {
catTime("Mappability correction", e={
# 0) Old way (multyply than divide by the same value in DIV ... |
aa0292815f8d128fd2081f54fbb93caf75b1a361 | a2fc6071ce8176f39db921d79cd9dcb27bacb6da | /R/save.entry.item1.R | 6689b689bdf3aab744504434a0067675f5cd6ea2 | [] | no_license | senickel/surveycleanup | bdf0298cea14493506045444589b0c392e1fbac4 | 435a02c8ed42afc467d24820930facbeae660747 | refs/heads/master | 2020-04-07T16:21:28.226489 | 2018-03-07T10:54:28 | 2018-03-07T10:54:28 | 124,221,758 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,417 | r | save.entry.item1.R | #' save.entry.item1
#'
#' check nominal if they are nominal
#' @param Click here and there
#' @keywords nominal
#' @keywords
#' @export
#' @examples
#' checking.nominal()
#' @importFrom magrittr %>%
#'
save.entry.item1<-function(item1,input) {
if (is.na(item1[1,1])) item1[1,1]<-""
if (item1[1,1]!=""|item1[1,2]!=""... |
b5a9da5d69b5ab3781ab9ef791879f6a6dff5421 | dee361052b87ddd442608360f0dfecf765731859 | /R/wallet-buys.r | 04b57b3c4af1a935b8f77a4ac747ed4da9048344 | [
"MIT"
] | permissive | zamorarr/rcoinbase | b828d8779bd963883bcf5bb8f5449914bdd9c5d5 | e3c97694c8cdefafab23e52b7f32e6558fd92957 | refs/heads/master | 2021-08-29T19:33:08.909098 | 2017-12-14T19:23:29 | 2017-12-14T19:23:29 | 112,635,105 | 6 | 1 | null | null | null | null | UTF-8 | R | false | false | 662 | r | wallet-buys.r | #' List buys
#'
#' Lists buys for an account.
#'
#' @param account_id Account Id
#' @export
#' @family wallet-buys
#' @references \url{https://developers.coinbase.com/api/v2#list-buys}
get_buys <- function(account_id) {
endpoint <- paste("accounts", account_id, "buys", sep = "/")
coinbase_get(endpoint)
}
#' Show a... |
a8281fea2ee683b2e5b4aa5f657636ea095517c1 | e0fc2b0f9cec534e771361e25b46c7d82adc82ba | /12.11.table2.R | 4a5ea7c900d5d518951e56bba5fb81baa99b3623 | [] | no_license | rebeccagreenblatt/brfss_code | 914324d0cc02082347c3aaaedae08c80e7b4e8b2 | 92675eec95933d54eede5ad7105d8b35ef3c6a84 | refs/heads/master | 2020-05-27T18:39:09.943349 | 2019-05-27T00:51:37 | 2019-05-27T00:51:37 | 188,746,222 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,344 | r | 12.11.table2.R | library(survey)
library(dplyr)
asthnow <- read.csv("BRFSS_Dec_Edits/12.11.asthnow_final.csv")
table(asthma$ASTHMA, useNA = "ifany")
table(asthnow$ASTHNOW, useNA = "ifany")
asthnow$age_cat <- cut(asthnow$AGE, breaks = c(21, 34, 44, 54, 64, 100))
never_asthma <- filter(asthnow, ASTHNOW == 0)
never_asthma <- select(ne... |
81712706e136342679f142cfbdd70dbe70e1d278 | a0ceb8a810553581850def0d17638c3fd7003895 | /scripts/rstudioserver_analysis/BM_all_merged/2-explore_Giladi_et_al_get_marker_genes_filter_celltypes.R | 9fe2f7920421df55de05e4d28e69e3181a5457b1 | [] | no_license | jakeyeung/sortchicAllScripts | 9e624762ca07c40d23e16dbd793ef9569c962473 | ecf27415e4e92680488b6f228c813467617e7ee5 | refs/heads/master | 2023-04-15T22:48:52.272410 | 2022-10-24T10:45:24 | 2022-10-24T10:45:24 | 556,698,796 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,702 | r | 2-explore_Giladi_et_al_get_marker_genes_filter_celltypes.R | # Jake Yeung
# Date of Creation: 2019-12-05
# File: ~/projects/scchic/scripts/rstudioserver_analysis/BM_all_merged/2-explore_Giladi_et_al.R
# Explore the scRNAseq dataset : filter celltypes manually
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
Vectorize(plog2p <- f... |
c478a1900692a264e1f56dd0caf82f7b5144509b | e14303f3376b7f50e15612b3f1e523f51a972381 | /Subfunctions/duoResults.R | 7ab2b6396f90f71cbc4599b2dda645132e878982 | [] | no_license | Camsbury/DuoDevelopment | 401c805b93b07e6da0987e90c4fae075f4477b61 | afccc48cd58237ee7df6a100d4f7cb99545d3470 | refs/heads/master | 2016-09-10T17:15:56.373941 | 2014-05-06T21:30:17 | 2014-05-06T21:30:17 | 19,511,377 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 816 | r | duoResults.R | duoResults = function(dataDuo) {
## Load R Functions
source("~/Development/R/DuoDevelopment/Subfunctions/duoCourseCompletionOrder.R")
source("~/Development/R/DuoDevelopment/Subfunctions/duoDataExtract.R")
duoList = duoDataExtract(dataDuo)
duoList = duoCourseCompletionOrder(du... |
b065ca584ce644368cea06de42496fc494536c70 | b3b1b011ab46f024467282baeff0f160e2e91e31 | /tests/testthat/test-dataSplitting.R | 3e0d58eb9718a039f0ee351c8db1aa1372bf6389 | [
"Apache-2.0"
] | permissive | schuemie/PatientLevelPrediction | 5265629020a2406f9f96a4975aa3ab35c9663b92 | 0b59c97a53ab4c6aaf6236048d5bcc9363c2716e | refs/heads/master | 2020-09-05T00:50:10.021513 | 2019-11-06T07:46:44 | 2019-11-06T07:46:44 | 88,721,641 | 0 | 1 | null | 2019-05-01T04:30:23 | 2017-04-19T08:40:26 | R | UTF-8 | R | false | false | 6,098 | r | test-dataSplitting.R | # @file test_DataSplitting.R
# Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of PatientLevelPrediction
#
# 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 ... |
e2a330491417702c66d256339113ed952cffcbc0 | d1e1c9b25aebcea37927c08a8f344713562b3e42 | /R/mu.rank.nna.R | 29a0ec1054e6a2c35fb771b239426f668d272a96 | [] | no_license | cran/muStat | 43783938835cae3e7a5afb5f8285f9b36ec8b07d | a77f2af75558f6a558d1044945f6085281655361 | refs/heads/master | 2021-01-17T06:33:48.507309 | 2010-09-17T00:00:00 | 2010-09-17T00:00:00 | 17,697,709 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 440 | r | mu.rank.nna.R | `mu.rank.nna` <-
function(x)
{
if (sum(dim(x)>1)< 2) {
if ((n<-length(x))>0) {
sx <- x[sl <- sort.list(x)] # sorted !NA
ntie <- diff(c(0, (1:n)[c(sx[-1] != sx[-n], TRUE)])) # fast.rle
x[sl] <- rep(cumsum(ntie) - (ntie-1)/2, ntie)# ranks
}
return(x)
}... |
c8012770ae95779ac0ad91f882c73fe3094ee974 | 1154ea4133e862012fb1d0680ee4dc649c87ab40 | /R/old_taxa--taxmap--docs.R | 9610b2feee6cf47ce90dd9e623b1894072b8ebe5 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | grunwaldlab/metacoder | f02daa6191254344861c399ef517d54acd6a190f | edd7192858fffc397fb64b9dcac00ed19dbbaa12 | refs/heads/master | 2023-05-03T13:50:13.490344 | 2023-04-20T06:15:31 | 2023-04-20T06:15:31 | 23,885,494 | 128 | 27 | NOASSERTION | 2023-03-28T19:45:07 | 2014-09-10T17:57:54 | R | UTF-8 | R | false | false | 25,777 | r | old_taxa--taxmap--docs.R | #' Get data indexes associated with taxa
#'
#' Given a [taxmap()] object, return data associated with each taxon in a
#' given table included in that [taxmap()] object.
#' \preformatted{
#' obj$obs(data, value = NULL, subset = NULL,
#' recursive = TRUE, simplify = FALSE)
#' obs(obj, data, value = NULL, subset = NULL,... |
7c44560f08b9a4287b381fef89aaf19a4f35a16b | 295d0c884c7a6ae6882d1171fb336728e3293dcf | /man/explorerApp.Rd | 9eb8e2a37116ca7030b9d29cad51ed8a2706a022 | [
"MIT"
] | permissive | radovankavicky/codebook | 1934c62c218db08d8a6fef2df76626ece4391616 | 7a1fd4675b541329aa98bf7a56e5072b24b7cd72 | refs/heads/master | 2020-03-25T04:25:35.911542 | 2018-08-03T02:20:24 | 2018-08-03T02:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 273 | rd | explorerApp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/explorerApp.R
\name{explorerApp}
\alias{explorerApp}
\title{Codebook Explorer Shiny App and RStudio Add-in}
\usage{
explorerApp()
}
\description{
Codebook Explorer Shiny App and RStudio Add-in
}
|
1e3bd85edb7853ec18b1fabb5178c61f90629225 | c53e367a5a155cfb1ee3a41e8b0351aeaa8d331d | /rgl/demo/shinyDemo.R | 5f044521405f3241a4b0d5b536379115b76e27ce | [
"MIT"
] | permissive | solgenomics/R_libs | bcf34e00bf2edef54894f6295c4f38f1e480b3fc | e8cdf30fd5f32babf39c76a01df5f5544062224e | refs/heads/master | 2023-07-08T10:06:04.304775 | 2022-05-09T15:41:26 | 2022-05-09T15:41:26 | 186,859,606 | 0 | 2 | MIT | 2023-03-07T08:59:16 | 2019-05-15T15:57:13 | C++ | UTF-8 | R | false | false | 4,862 | r | shinyDemo.R | if (!require("shiny"))
stop("This demo requires shiny.")
library(rgl)
library(misc3d)
options(rgl.useNULL = TRUE)
set.seed(123)
ui <- fluidPage(
registerSceneChange(),
titlePanel("Nelder-Mead"),
sidebarLayout(
sidebarPanel(
helpText("The Nelder-Mead algorithm evaluates the function",
... |
1c506b6bacb0c2b49da0c644ee27a109e882f257 | dc51e29c86ec5da9888af397a865e93bd2867889 | /R/copy_to_clipboard.R | e0539fb110606136e028986610277a09d7fbf518 | [] | no_license | cran/bannerCommenter | 7b49d0f28b4de56457834e0c13fb0faf5b108c42 | dcd4f5e8e2e4535db6d9f722a3ca316c6b64067c | refs/heads/master | 2021-06-18T14:58:12.952413 | 2021-03-23T07:30:09 | 2021-03-23T07:30:09 | 75,629,234 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,301 | r | copy_to_clipboard.R |
#' Transfer text strings to the clipboard ready for paste
#'
#' This is only guaranteed for Windows; in the case of Linux you will
#' need to have the \code{xclip} command installed and visible on the \code{PATH}
#' and for Mac OS you will need to have \code{pbcopy} similarly available.
#' In any case the transfer to ... |
0c4ef541680ed5968ef29bdc6430eb3eff23feff | 34d70571bee406e721673e9af1ff4d4ba9247b3c | /R/main.R | 75f5747ac3da09680f4e1912bc741795e497e8de | [] | no_license | benjaminguinaudeau/bashR | f172af9a75ae01608f5e78e058fab3cea281d2df | 6e0e707703f674fa1467bb62813341a8bf9db60d | refs/heads/master | 2023-05-14T03:32:35.547019 | 2023-05-04T20:15:21 | 2023-05-04T20:15:21 | 181,508,074 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,337 | r | main.R | #' sudo$
#' @description This function executes the given command as sudo
#' @param command A bash command to execute as sudo
#' @param env_var Should the password be saved for further use
#' @export
sudo <- function(command,
intern = F,
ignore.stdout = F,
ignore.stde... |
8348bd1355ebebf3da8489c37a9e0f727ab14a91 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/lfl/examples/as.matrix.fsets.Rd.R | 8a5265b9cd556cae5964d3c11ac931b7bc50c8c0 | [] | 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 | 249 | r | as.matrix.fsets.Rd.R | library(lfl)
### Name: as.matrix.fsets
### Title: Convert a 'fsets' object into matrix
### Aliases: as.matrix.fsets
### Keywords: models robust multivariate
### ** Examples
ff <- fcut(runif(10), breaks=c(0, 0.5, 1), name='age')
as.matrix(ff)
|
d63eb203b790e99715604919b904bf1900ca95f5 | a9f2650d8e733c41338037217fa318ac9730fed9 | /man/paramsDIAlignR.Rd | 41b16349e39de6103ae41cb72edc51350d7fd084 | [] | no_license | singjc/DIAlignR | 7e97c273be6f4a387cf35a46798b432a74a42ceb | bb2617b2a7deeac8a9c53017cbe103710e9a207c | refs/heads/master | 2023-07-27T23:10:49.913846 | 2023-03-23T04:45:25 | 2023-03-23T04:45:25 | 227,892,012 | 0 | 0 | null | 2019-12-13T17:38:11 | 2019-12-13T17:38:11 | null | UTF-8 | R | false | true | 6,474 | rd | paramsDIAlignR.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{paramsDIAlignR}
\alias{paramsDIAlignR}
\title{Parameters for the alignment functions}
\usage{
paramsDIAlignR()
}
\value{
A list of parameters:
\item{runType}{(string) must be one of the strings "DIA_Proteomics", "DIA_IPF", "DIA_... |
4c25a2cd9749ad060a025bf677147ba9d3f83ea5 | ff75c826e37599a631fc81ddf4f1d251aa349861 | /scripts/rcourse_lesson1.R | e61fd883da6aa92f32bdebe543096e88c3d2dac2 | [] | no_license | cedunia/Rcourse | e121c093c383eee8ab0b3834cacc70c064d70f2f | 5fdcce312099465627d00b51922b41326e461fef | refs/heads/master | 2021-01-09T20:42:16.941465 | 2016-06-14T14:46:19 | 2016-06-14T14:46:19 | 61,127,768 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 587 | r | rcourse_lesson1.R | ## LOAD PACKAGES ##
library(dplyr)
library(ggplot2)
## READ IN DATA AND ORGANIZE ##
#read in data
data <- read.table('./data/rcourse_lesson1_data.txt', sep = '\t',
header = TRUE)
#Look at data
dim(data)
head(data)
tail(data)
xtabs(~group, data)
#subset out bilingual
data_bl <- data %>% filter(., g... |
afe9686afb8c9c361473546680b0babc5d25b551 | 92bbf482bb372f8e7a5b7bde21c4ec3333b4f116 | /plot4.R | 1e79b41a1031e7db31bf517e629c7bc89b19fb8b | [] | no_license | rezirezii/Exploratory-Data-Course | b3d4669b49d691267e6ffebacfd68c79db955243 | e12e419d431815e6b9519bdf8f406f5a1709dfce | refs/heads/master | 2020-05-01T18:28:46.035998 | 2019-03-25T19:00:55 | 2019-03-25T19:00:55 | 177,625,084 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,107 | r | plot4.R | power <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
power1 <- subset(power, Date %in% c("1/2/2007","2/2/2007"))
power1$Date <- as.Date(power1$Date, format="%d/%m/%Y")
powertime <- paste(as.Date(power1$Date)... |
83ac1ec09a2d752bfbba507c50c7ca6be43faf76 | 2a032113392cd75a909a185adb6168f454883d09 | /R Scripts/demonstrations.R | df756fb4560fa478509ad3074c8dbf56478cbf62 | [] | no_license | fomotis/BayesianTutorial | 8bf62bad22243a82763eabd51222e5cbb5df2200 | e7dd731b285ba4d9592e731b855d345c1813189d | refs/heads/master | 2021-03-26T01:18:08.834420 | 2020-03-27T09:59:58 | 2020-03-27T09:59:58 | 247,661,848 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 24,555 | r | demonstrations.R | library(rstan)
library(coda)
library(bayesplot)
library(bridgesampling)
library(tidyverse)
library(ggpubr)
library(nlme)
library(deSolve)
library(rbokeh)
library(plotly)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores(logical = FALSE))
################ Data ##########
combined_data <- read.c... |
07c0eed7ecd9f9fce314e8497d4914ff1b693ba3 | 31d2d467030565c44f4d28d42c0e4d225dececaa | /R/infoGPCM.R | 9dfb0f6e5b7a83beb6838cf00fa17275cd76d70f | [] | no_license | cran/ltm | 84fd858915db9fe1506a40628f61e6500a21ed1c | dbbabfa99fa09ad94113856a6a5ae1535e7b817f | refs/heads/master | 2022-02-25T01:10:01.747125 | 2022-02-18T08:40:02 | 2022-02-18T08:40:02 | 17,697,218 | 2 | 4 | null | null | null | null | UTF-8 | R | false | false | 464 | r | infoGPCM.R | infoGPCM <-
function (betas, z, IRT.param) {
n <- length(z)
p <- length(betas)
alphas <- sapply(betas, tail, 1)
prs <- crf.GPCM(betas, z, IRT.param)
T.bar <- sapply(prs, function (x) colSums(x * 1:nrow(x)))
info <- matrix(0, n, p)
for (j in 1:p) {
ii <- outer(seq(1, nrow(prs... |
65f27975cd3cd2ec48c0856f290ef387545ccf6e | 73377bc21b6740f4d43874c9e1f7700a119ae8d6 | /R/Dictionary_S3methods.R | a4e47b27d8f789c6f69746b33eb35abdd0217c46 | [
"MIT"
] | permissive | cran/dictionar6 | b67c283165e629eab211bd3966594b880f5140c1 | 8b48d99a00543aea5dd819d6465d8f18d703df01 | refs/heads/master | 2023-08-08T00:36:03.549600 | 2021-09-13T03:40:02 | 2021-09-13T03:40:02 | 389,685,859 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,855 | r | Dictionary_S3methods.R | #' @export
`[.Dictionary` <- function(x, i) {
x$get_list(i)
}
#' @export
`[<-.Dictionary` <- function(x, i, value) { # nolint
x$add(keys = i, values = value)
invisible(x)
}
#' @export
length.Dictionary <- function(x) {
x$length
}
#' @export
summary.Dictionary <- function(object, n = 2, ...) {
object$summar... |
08e2980d854592d789356d7207fdabe2bb3b8671 | ddf10b92539f1becd4e7c4cc10677142b5e0b03f | /twobytwo.r | bc36087811fd2712a44ea990dabd3b71233da93c | [] | no_license | scchess/BioToolbox | b2525a30d075287078ede30ec51a34ef975aa07f | 6eec78e7dbb06b882d464a3e77c6d7b13c009da1 | refs/heads/master | 2021-06-12T12:47:33.610163 | 2016-11-22T05:16:23 | 2016-11-22T05:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,726 | r | twobytwo.r |
#CHAPTER 6 -- Two by two tables
ci <- function(m,v) {
A <- m-1.960*sqrt(v)
B <- m+1.960*sqrt(v)
round(cbind(A,B),5)
}
#typical summary statistics: odds ratio, relative risk and attributable risk
a <- 61
b <- 102
c <- 52
d <- 196
n <- a+b+c+d
n1 <- a+b
n2 <- c+d
m1 <- a+c
m2 <- b+d
or <- (a*d)/(b... |
edd5527dcba3b7267543834bff530178f02b41a8 | aaa910ac648efdf66a047cb562de9c61d8a5207e | /R/Databases/solution_dataccess.R | 1aaf1f9f34f23682b11abe9cc5fabdef61ae85c2 | [
"MIT"
] | permissive | rolandkrause/isb101 | 85cb5056e85e72989cbd52c0f3e9e43c124b2e7b | a59161e00454dee469dad271ac51b001929e5c50 | refs/heads/master | 2022-02-02T07:25:34.558058 | 2022-01-12T09:16:07 | 2022-01-12T09:16:07 | 20,016,041 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 798 | r | solution_dataccess.R | # Author: Roland Krause
library(biomaRt)
# Identify SNPs in KCNA2 from ENSEMBL BioMart
genes.of.choice= c("KCNA2")
# Find ensembl id via hgnc name
listMarts(host="www.ensembl.org")
gene.biomart = useMart(biomart = "ENSEMBL_MART_ENSEMBL",
host="www.ensembl.org")
gene.set = useDataset(mart=... |
a543dacc51189d95d65542296b1d277624dc5fb8 | 434584f79283272e674845545e63e09872c57122 | /R/data.R | 94a69d11e362be1d79715d0cc8197e8702af9e18 | [
"CC-BY-4.0",
"MIT"
] | permissive | ollinevalainen/fmir | 6c796068ca1d12abf319a41914d523254cbeec5f | 4270c064cdb8198e6f0b265ea22159d84a217cb6 | refs/heads/master | 2023-03-05T01:53:34.774497 | 2021-02-19T17:18:38 | 2021-02-19T17:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 947 | r | data.R | #' Daily weather in Oulu, Finland, in 2010-2017
#'
#' A dataset downloaded from the Finnish Meteorological Institute's open data
#' API using **fmir**. Contains daily simple weather observations from Oulu,
#' Finland, covering the years 2010 to 2017. The data are made available by the
#' [Finnish Meteorological In... |
7986d10e2d104696c79f31b11389f34aeb3e9fdc | 95d1bf465ec819618870503489f71789a6eafad5 | /prepare.R | 0782896b57e77dded19f8655aa9da2b7d5ef5a8f | [] | no_license | mingkaijiang/exudation_analysis | ca73040e0965de58c5ccb0f46992cc78a9dff199 | e50f2010010a1bbae14b9feb6aea2ed3103eef53 | refs/heads/main | 2023-06-03T04:13:57.179954 | 2021-06-29T03:05:24 | 2021-06-29T03:05:24 | 378,017,809 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 608 | r | prepare.R | #### Create output folder
if(!dir.exists("output")) {
dir.create("output", showWarnings = FALSE)
}
#### Install packages
if(!require(pacman))install.packages("pacman")
pacman::p_load(doBy,
ggplot2,
grid,
cowplot,
metafor,
mgcv,
... |
ea626a93c2d53f5587460ba4866e625e4a135089 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/PLNmodels/inst/doc/PLNPCA.R | 0fe41784fb660756043d8374bc4869f7025a2832 | [] | 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 | 3,127 | r | PLNPCA.R | ## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(
screenshot.force = FALSE,
echo = TRUE,
rows.print = 5,
message = FALSE,
warning = FALSE)
## ----requirement--------------------------------------------------------------
library(PLNmodels)
library(ggplot... |
dab20270c8822d53dca089518e7a9392cedee1c4 | 40af152314d17add1b552576ca0ea981699fd0bb | /man/Kam_et_al_2003_Fig2.jpg.Rd | 773e5a2f683435176e5e99ce15b9e71c1bddbfd5 | [] | no_license | cran/metagear | a57c15c5c897fe2546c8bef4e923623630261c32 | 25aa8967ed0a109811ede0b34d40d741677a9c03 | refs/heads/master | 2021-07-18T03:41:00.120282 | 2021-02-15T14:40:02 | 2021-02-15T14:40:02 | 36,018,363 | 27 | 8 | null | null | null | null | UTF-8 | R | false | true | 706 | rd | Kam_et_al_2003_Fig2.jpg.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metagear_data.R
\docType{data}
\name{Kam_et_al_2003_Fig2.jpg}
\alias{Kam_et_al_2003_Fig2.jpg}
\title{An example image of a scatterplot figure}
\format{
A raw jpg-formated image
}
\description{
A jpg image of a scatterplot from Figure 2 of Kam... |
401469a0a0f3f654824b81917f0c4cba1d6d29ab | eb4a5498253bb609c775153a93ef4e221e9c3e40 | /pop_gen_analysis/Figures/mappies_interactive.R | baf94a81aaec7bf09a20b379f22f398c57100dbb | [] | no_license | almccombs/MolyPhyloProject | 73a0fc1eb90f4c30714f7efdbf555f5f8e80c634 | 707d0fc4ca5b5058d93d78426030f7889b027dd5 | refs/heads/main | 2023-04-24T11:08:33.961297 | 2021-04-29T19:50:21 | 2021-04-29T19:50:21 | 351,596,276 | 0 | 1 | null | 2021-04-24T19:57:44 | 2021-03-25T22:45:43 | HTML | UTF-8 | R | false | false | 1,135 | r | mappies_interactive.R | library(sp)
library(RgoogleMaps)
library(mapplots) #for draw.pie function
op <- par()
pop.means <- read.csv("analysis/LEA_analysis/PopMeans.csv", header = T)
pies <- as.matrix(pop.means[,c("V1","V2","V3")])
n <- as.vector(pop.means[,2])
coords.sp <- pop.means
coordinates(coords.sp) <- c("Longitude", "Latitude")
pro... |
ee090d387f1ddfc49fcca8ce331a5c3c5d37c514 | 23daa3355dc0b51b9daa13ac3f13b8e71b4c77bf | /R code/NomalizedFloor_TotalUnits.R | b7949b3a344513cfdac35e0e24ce3baa92269b43 | [] | no_license | wifimapping/cusp_sonyc_wifi | 5e849d83a2798574e79d8f01216dcd739957691e | e86535e1939d119ef9dd42536c6515a25d23672c | refs/heads/master | 2020-05-29T11:06:50.584226 | 2015-08-01T23:01:16 | 2015-08-01T23:01:16 | 56,330,900 | 0 | 0 | null | 2016-04-15T15:35:43 | 2016-04-15T15:35:43 | null | UTF-8 | R | false | false | 319 | r | NomalizedFloor_TotalUnits.R | test<-read.csv(Users/xq277/Desktop/ct1522.csv)
test<-read.csv(ct1522.csv)
test<-ct1522
test
head(test)
for (i in 1:length(test$fid)){
if(test$NumFloors[i] > 3.00){
test$UnitsTotal[i] <- (3/test$NumFloors[i]*test$UnitsTotal[i])
}
else (test$UnitsTotal[i]<-test$UnitsTotal[i])
}
head(test)
sum(test$UnitsTotal) |
56bc4e701be23a8c0cc84dffd4b2ca9fbcfa3d99 | 289cc280222cc40f32686dc42c2ee68891e452ed | /man/hzar.plot.fzCline.Rd | 77d4d989b5d8761466c3afcda86f9118b152fdd9 | [] | no_license | GrahamDB/hzar | 6cd68626d54103f6be26c5a80c41d45ea267eb9a | fe52dfc553e69dd5367a8735b687992231f72e18 | refs/heads/devel_v0.2 | 2023-05-25T16:51:49.440605 | 2019-10-23T18:39:57 | 2019-10-23T18:39:57 | 175,032,847 | 1 | 1 | null | 2023-05-16T23:59:44 | 2019-03-11T15:46:00 | R | UTF-8 | R | false | false | 2,097 | rd | hzar.plot.fzCline.Rd | \name{hzar.plot.fzCline}
\alias{hzar.plot.fzCline}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plot the 95\% credible cline region for the given locus model.
}
\description{
Plots the maximum likelihood cline and observed frequency data
over a the associated fuzzy cline region. The def... |
9a7b911dd32f734ef48688140462203c25cdc689 | 717c5e4b503c3cbc0349d359885253b8f98fca61 | /dbinomTest.r | 38f508c4dce8f716c7e0952a9ecef959f6f48394 | [] | no_license | kwende/RScripts | b28f67e1b3c20dee974efdc57e482bc98080e9c4 | ea8773aaf6cea0eb27abbdeaad8606aa729f2d36 | refs/heads/master | 2016-09-06T11:47:49.956693 | 2014-12-13T22:07:59 | 2014-12-13T22:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 121 | r | dbinomTest.r | #for plotting
xVec = 0:1
yVec = dbinom(xVec,prob=0.5,size=length(xVec),log=FALSE);
plot(xVec,yVec,xlab="X",ylab="Prob") |
0f548bc4cc2006d43464e3a59458c5fd8bb86054 | a201458914244daaae3ce779aa0806819954e79f | /man/lapmod_index.Rd | 6adcadaf373488111d2bda29390769f249d6fb32 | [
"BSD-2-Clause"
] | permissive | dpmcsuss/rlapjv | 6495a480431eceae28a086309e786fc649293180 | b2e6085dd77be0da10b3d0c0c959ed196c9019a5 | refs/heads/master | 2021-06-19T04:50:14.027935 | 2021-01-04T15:49:10 | 2021-01-04T15:49:10 | 150,743,287 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 902 | rd | lapmod_index.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rlapjv.R
\name{lapmod_index}
\alias{lapmod_index}
\title{Solves the linear assignment problem using the LAPMOD algorithm}
\usage{
lapmod_index(n, cc, ii, kk, maximize = FALSE)
}
\arguments{
\item{n}{number of rows in the cost matrix}
\item{c... |
d8cf70096286ab989fc8cc25ec3aeacf1f3dbde3 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.developer.tools/man/codeguruprofiler_list_profile_times.Rd | ff9e3cccfd4ecb721603aa375749f0e5f14a1633 | [
"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 | 2,560 | rd | codeguruprofiler_list_profile_times.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/codeguruprofiler_operations.R
\name{codeguruprofiler_list_profile_times}
\alias{codeguruprofiler_list_profile_times}
\title{Lists the start times of the available aggregated profiles of a
profiling group for an aggregation period within the s... |
7a53674a3d28d7b13c7cfd99fde6b388afa7b243 | e6d60ff31a0f58fcdd232cbadde2ece1ba212c3f | /R/getVals.R | 523ffdb5d4866173f4c809ddad2b142691de4202 | [] | no_license | allanhicks/Ensemble | 4994f3ac383ec7ff4547aa493d6964b526eeb7f2 | c7704d5d8469ef16af87934e5577629f895ca8d0 | refs/heads/master | 2021-05-21T11:03:39.969024 | 2020-07-21T16:40:48 | 2020-07-21T16:40:48 | 65,333,865 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 633 | r | getVals.R | #' Gets the mean and standard deviation of parameters from SS output
#' @param x The matrix of parameters or derived parameters from SS_output
#' @param param The name of the parameter
#' @param cols The column names for the mean and standard deviation, respectively
#' @export
getVals.fn <- function(x, param=NULL,... |
509105a87d329bd44970c71ece89e410f6989d57 | e93a5db79e45b733a0ed9cf27828509c094e77f3 | /Basic_plots/AreaPlots.R | 4b6a4ac6a770335579342282b7776da9d6a387e8 | [] | no_license | shanl33/slee205_Honours | 225c3dcf5faaa52dafe63ad1980cd3af04118b7e | 31a2fc9de48fd3dc431c9fd2a03495b5f39f148a | refs/heads/master | 2020-05-23T07:36:06.500103 | 2019-01-14T21:02:15 | 2019-01-14T21:02:15 | 84,038,239 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,914 | r | AreaPlots.R | install.packages("productplots")
library(productplots)
library(ggplot2)
library(dplyr)
library(ggvis)
library(plotly)
# If load ggmosaic then will need to re-install productplots
# Currently cannot get ggmosaic working
install.packages("ggmosaic")
library(ggmosaic)
# See https://cran.r-project.org/web/packages/ggmosai... |
39d900cdc154a17b7094a18a9035d3efe2848885 | 532cb3eac25d1cdb2860ec1d90a5275928315c90 | /man/idmTPreg-package.Rd | 4dde58c92116374a88101d344fde99340599aa26 | [] | no_license | cran/idmTPreg | 37e1ad9c7b0630cefcbc99c2a56e68b94509f3da | 8b5b523b9ac423380a5841c9cd85db9f7ab5766f | refs/heads/master | 2021-01-01T19:33:21.573327 | 2018-02-27T12:31:06 | 2018-02-27T12:31:06 | 98,613,762 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 595 | rd | idmTPreg-package.Rd | \name{idmTPreg-package}
\alias{idmTPreg-package}
\alias{idmTPreg}
\docType{package}
\title{
\packageTitle{idmTPreg}
}
\description{
\packageDescription{idmTPreg}
}
\details{
The DESCRIPTION file:
\packageDESCRIPTION{idmTPreg}
\packageIndices{idmTPreg}
}
\author{
\packageAuthor{idmTPreg}
Maintainer:... |
fc1fdd3f155fc0369cf430f205072297c5aa76d8 | 0e1a97fe8fc57807f6bde78e79fba4a1a493d056 | /man/refine.MESH.2D.Rd | e8d4abab4503c9af367070dfed83cc09a7cbd58b | [] | no_license | laurasangalli/rFEM | a5ae96fbfb39b1949c2b21edd1fcc09286e31d43 | 7d38d2303c1abad04e56996de3a21f2a319f4fbb | refs/heads/master | 2021-01-11T17:07:22.534167 | 2015-07-18T15:36:35 | 2015-07-18T15:39:34 | 40,311,292 | 1 | 0 | null | 2015-08-06T15:08:05 | 2015-08-06T15:08:05 | null | UTF-8 | R | false | false | 1,656 | rd | refine.MESH.2D.Rd | \name{refine.MESH.2D}
\alias{refine.MESH.2D}
\title{Refine the triangulation}
\usage{
refine.MESH.2D(mesh, minimum_angle = NA, maximum_area = NA, delaunay = FALSE, verbosity = 0)
}
\arguments{
\item{mesh}{A TRIMESH2D object created through \code{\link{create.MESH.2D}}.}
\item{minimum_angle}{A numeric specifying th... |
cd4f24fff8c49fb5f35890765ac7fd2778839ca7 | 3ca9d1a8012080c287f26f58e42a76f13a45cd9d | /code/04-ar.R | 1c4beb9c9d2b6318639b292c4f83e8e9dc52ccfa | [] | no_license | dincerti/political-instability | 3734ca06b3aa8de31c1183db285e68bc6595ee8c | 6702581797ee30c46879d143fcd85e803d576c79 | refs/heads/master | 2023-07-09T23:32:18.519999 | 2023-07-08T09:41:24 | 2023-07-08T09:41:24 | 81,411,595 | 1 | 2 | null | 2018-07-27T04:55:22 | 2017-02-09T05:11:56 | R | UTF-8 | R | false | false | 9,864 | r | 04-ar.R | rm(list = ls())
library("xtable")
library("data.table")
library("ggplot2")
library("scales")
load("data/data-clean.RData")
load("output/regime-change-event-study.RData")
theme_set(theme_bw())
source("code/func.R")
# ABNORMAL RETURNS TABLES ------------------------------------------------------
# Add authoritarian vers... |
929503f8c3ce89092b33d511e166819fd3ee6cff | c8c6e0c4ce9a3a868abd8d13012c39d7017faa82 | /plot4.R | 16a3db5029b9776d81bad477ae3696e9f1eaa12a | [] | no_license | bill-mattingly/ExData_Plotting1 | a282034c1a1a5de3b775d18e8d6bc1069d0b4da8 | d81b56d0c11b6f6537084123e709fbf4f4dcc55e | refs/heads/master | 2021-08-20T09:03:28.470846 | 2017-11-28T17:56:09 | 2017-11-28T17:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,652 | r | plot4.R | #Read data
mydata <- read.table("household_power_consumption.txt", sep = ";", h=T)
#convert datatype
datetime <- paste(mydata$Date, mydata$Time)
datetime <- as.POSIXct(strptime(datetime, "%d/%m/%Y %H:%M:%S"))
mydata <- cbind(datetime, mydata[,-(1:2)])
mydata <- subset(mydata, datetime >= as.POSIXct("2007-02-01 00:00:0... |
b28b8116a869aae2737809100892034f86620578 | a77de003df4f2dd0cd1e5a309cd1a49ef0f30db7 | /tests/testthat/test-addition.R | 2143a6950e877e08b7b770daa9c9a787ecf1b14d | [
"MIT"
] | permissive | luciorq/mathOperations | becca4a25a73635e7e8d7302e76ac9673e2c6f06 | dca672a08ebccaa464307cbc478817305aa15775 | refs/heads/master | 2023-04-19T02:05:59.165773 | 2021-05-01T19:48:41 | 2021-05-01T19:48:41 | 363,484,122 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 273 | r | test-addition.R | test_that("Addition works", {
add_result <- addition(2, 3)
expect_equal(length(add_result), 1)
expect_equal(add_result, 5)
})
test_that("Addition fails", {
testthat::expect_error(
addition("a", 3),
regexp = "non-numeric argument to binary operator"
)
})
|
5ddf7f8d2683646fa1c13ca4c8aafcf96264dc98 | c4daabd6a30fa6bee84f615e988bc682d428cbf5 | /pipelines/3_supertree/4_supermatrix.R | 711ab3b32b5f8109203c2ec8b999c6a598bb6ad8 | [] | no_license | AntonelliLab/supersmartR-workshop | 1253a3779d610862bb0d540a3b82e24023b98e26 | 846015fc5177a1eb3e959b6837f3eb5022d0a16c | refs/heads/master | 2020-07-11T23:20:17.263889 | 2019-11-04T09:22:01 | 2019-11-04T09:22:01 | 204,664,742 | 4 | 4 | null | null | null | null | UTF-8 | R | false | false | 2,166 | r | 4_supermatrix.R | # Construct a supermatrix
# Generate a .fasta file of all the alignments
# Library ----
library(gaius)
# Vars ----
wd <- file.path(getwd(), 'pipelines', '3_supertree')
input_dir <- file.path(wd, '3_align')
output_dir <- file.path(wd, '4_supermatrix')
if (!dir.exists(output_dir)) {
dir.create(output_dir)
}
tree_file... |
faa5fb24f8ed322337f04febe69d2ea7930e206e | eb706168495609678cb4f9950be090f10e35555e | /R/model2sparse.R | 4c8c2bdc714f6168ae82dc0fa6b398f5750deb25 | [] | no_license | juvelas/bam | 33d4f564b009146019b83283e60b069cbed65a5a | 66e2fe20a20862ae687368c82ecc39889177a5c9 | refs/heads/master | 2023-02-16T19:24:44.567923 | 2021-01-07T03:56:26 | 2021-01-07T03:56:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,458 | r | model2sparse.R | #' model2sparse: Converts a niche model into a diagonal sparse matrix
#' @param model A raster object representing the geographic projection of a niche model.
#' @param threshold A threshold to convert a continuous model into a binary model.
#' @import Matrix
#' @return A diagonal sparse matrix representing the geograp... |
12bb16b9d799bfe14b6b7b8652000dffc9ad1cbd | 5a786ac93b5138df8b276e840a2187e374189578 | /LambdaFunctionalForms/LamdaTesting.R | f35ea3bfe524c4cd1fb94935de269dfcab2216b4 | [] | no_license | laurenmh/sToration-york-gum | 1c66073233768608845bce516dd5e13844a1f928 | 7e3149ab0d10be266d8ced03efff5e1bde33b566 | refs/heads/master | 2022-06-28T15:58:59.937848 | 2022-06-16T13:15:57 | 2022-06-16T13:15:57 | 213,767,514 | 0 | 0 | null | 2022-05-27T23:28:11 | 2019-10-08T22:25:47 | R | UTF-8 | R | false | false | 3,229 | r | LamdaTesting.R | # Load in the full data set and set working directories
library(here)
YorkGum <- read.csv(here("water_full_env.csv"))
FocalSp <- "W" # or H, T, A
#subset the data and create quatratic transformations of the environmental covariates
SpData <- subset(YorkGum, Focal.sp.x == FocalSp & Trt.comp.x == "S")
SpData$logLambda <... |
374d58c40a1a8608f389d0be4a9d128c4ee6d505 | 22ea070f681ddd5a9ab667897f3f414d8a0091f4 | /parsing_functions.R | d26e8e4ab03aa62b6f6a2b30ac16f44ccbb78cf1 | [] | no_license | ginolhac/cv-1 | 79eafd82c1c8c72d898a02032b3d9a7a795fa3ca | e004d531d6c60c6458940edf75bb05457a911d08 | refs/heads/master | 2021-08-04T05:06:45.999466 | 2020-09-01T14:28:42 | 2020-09-01T14:28:42 | 213,851,156 | 0 | 0 | null | 2019-10-09T07:32:13 | 2019-10-09T07:32:12 | null | UTF-8 | R | false | false | 4,824 | r | parsing_functions.R | # Regex to locate links in text
find_link <- regex("
\\[ # Grab opening square bracket
.+? # Find smallest internal text as possible
\\] # Closing square bracket
\\( # Opening parenthesis
.+? # Link text, again as small as possible
\\) # Closing parenthesis
",
comments = TRU... |
ea6e237840e3f912ec4249eeec238aaf6229d95c | 1cdf33e4a84428a4b62d9bc8711844850f0b587d | /code/testing/spreadsheet-replace.R | 9c57ac55fe87a262e47d27b6c23d681961245b59 | [] | no_license | Hutchins-Center/Fiscal-Impact-Measure | 5798621de5094005694aee204388c30c88972fb0 | d5a04e1aa0d1d34030c7352836c9d9ffdab8a589 | refs/heads/master | 2023-05-14T09:46:06.774236 | 2021-06-08T17:12:58 | 2021-06-08T17:12:58 | 298,624,532 | 1 | 0 | null | 2021-01-15T17:32:50 | 2020-09-25T16:26:20 | HTML | UTF-8 | R | false | false | 8,190 | r | spreadsheet-replace.R | # NOTES
# We had the wrong UI numbers in the spreadsheet.
# We never updated the wages lost assistance spending, which was higher than we expected
# in Q3. Unfortunately, the previous number was hardcoded so not sure where it came from.
# It said Total Q3 was 881,354
# UI Q3 was also
# 0.0 Source ---------------------... |
1666c2fdea915ec2794d7b1a9bd00c74f7e697ce | 5bc5c405645704799c0708c86f086bc3c7225e5b | /inferMSI/R/inferMSI.R | 21ac268c88c301855b6cadf5d470ab5402e59f6a | [
"BSD-3-Clause"
] | permissive | johnsonra/inferMSI | 66696964d1dd3e43ea241646e839d0e9ca99d7c5 | 92cec71182d7e8b627b5981be0a8165a442f435d | refs/heads/master | 2021-05-01T01:25:43.691917 | 2015-10-21T21:17:33 | 2015-10-21T21:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,128 | r | inferMSI.R | # inferMSI.R
# Call MSI status given a model from trainMSI
# Randy Johnson
# CCR Collaborative Bioinformatics Resource at Frederick National Laboratory
# Leidos Biomedical Research, Inc
inferMSI <- function(file, model, cut.off)
{
######### Checks #########
# ... should add some checks here to be sure variabl... |
0c0d5a7005bbc27672536d3ad7274d01ea2a8ff0 | 92f4348e1c1e5556d4789d9aa7beadbfee83a277 | /tests/testthat/test-format.R | 23ba4ae9b7db83341b82bcf63e67a5d76a99a741 | [] | no_license | echasnovski/snookerorg | 84d7175b1fee2ba36e63b842a688b47d75256ed2 | a46e8defe49a635994271db2484e5812aa389ab3 | refs/heads/master | 2021-06-15T01:01:14.179950 | 2017-03-25T13:54:08 | 2017-03-25T13:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 769 | r | test-format.R | library(testthat)
context("Format")
test_that("formatting is correct", {
expect_identical(
format_event(
event_query = readRDS(file = "test_query_season_events.rds")
),
readRDS(file = "test_format_season_events.rds")
)
expect_identical(
format_match(
match_query = readRDS(file = "test... |
3abffb9921b6d14d6b74782606e1dabfecdab542 | 5ada02d575f293314ca2eae8e0f056692c128c4d | /R/prog.R | b8626600d74fe40a83adf02ad32874bbc2a761a9 | [] | no_license | Kaustuv2809/kysrc | 963c4276d17514181be59e1b3fbaed75b9695971 | 3435b0ce972f85058ad0a5674acc142ff6a70379 | refs/heads/master | 2021-10-23T20:33:32.691242 | 2019-03-19T21:29:43 | 2019-03-19T21:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,713 | r | prog.R | #' Limited English Proficiency Data for Kentucky Public Schools, 2013-2017
#'
#' A dataset with data on Limited English Proficiency
#'
#' @format A dataframe with 75 rows and 6 variables:
#' \describe{
#' \item{sch_id}{ID number to identify schools & districts}
#' \item{dist_name}{District name - in this case, it i... |
c219488a1751d09d86f1f5df3b4b27b7136404f7 | 637a50fa3069b8fc142b1dae6d3641d56a167f87 | /scripts/r/z_analysis.R | 211ceb728cc1dab85bc9e2ee7e1c3ce8fe0b08e6 | [] | no_license | hemprichbennett/bat_diet_ms | 98051e2edf5fb1c171936108f1465a405f02e7a5 | 78d2c8c451521ea7cd5bcbae88ddcb58f03b8877 | refs/heads/main | 2023-04-18T08:10:00.274271 | 2021-08-23T15:20:46 | 2021-08-23T15:20:46 | 399,124,959 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,985 | r | z_analysis.R | #### Header ####
## Project: bat diet
## Script purpose: calculating z-scores from the random files created by
## array_site_motu_95_confidence_intervals
## Date: 2021-01-06
## Author: Dave Hemprich-Bennett (hemprich.bennett@gmail.com)
## Notes
##################################################
#### Setup ####
# Pre... |
1ebecc8ad79ebedbf83490839b8ee525343a2d2e | 77d97516bf14d24a1cb4ee0273d30711948e2ae0 | /course-project-2.R | d5b094b5fa7c1ac653ed0a3c734a2429dd54baa9 | [] | no_license | nshahpazov/probability-and-statistics-and-a-bit-of-markov-chains | 74a4daab7b5996899e45dc84c9c6a122661f29e8 | 56c7dcb7d231d4bd905765a2ef1696bf22d886b1 | refs/heads/master | 2022-12-28T02:40:38.283618 | 2020-10-16T18:23:51 | 2020-10-16T18:23:51 | 304,707,006 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,241 | r | course-project-2.R | y = c(10, 6, 5, 12, 10, 15, 5, 12, 17, 20)
x = c(1.30, 2, 1.7, 1.5, 1.6, 1.2, 1.6, 1.4, 1, 1.10)
plot(x, y)
predicted_error = serror1 * sqrt(1.1 + ((1.63-mean(x))^2)/(sum((x-mean(x))^2)))
x1 = c(1.63)
X[,2]
pred1.2 = serror1 *
sqrt(1.1 +
t(x1-mean(X[,2])) %*%
solve(
t(X[,2]-mean(X[,2])) %*% (X[,2]-m... |
a626652153a2ea75fb29f3d682f52a49b2678278 | 4624804dd0051a24e0615b3ce58e3632392d9011 | /src/Multiple-Linear-Regression.R | cb37961faede72548faa2207b8a6b6bd34e50f20 | [] | no_license | hornedfrog88/csx415-project | d81d50325c912917ac8882266301e0271b4aad94 | 1c4a7ea19388e5cce0cc680e4549035b434dcdc8 | refs/heads/master | 2020-03-09T12:00:29.261416 | 2018-05-31T01:06:17 | 2018-05-31T01:06:17 | 128,775,027 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 816 | r | Multiple-Linear-Regression.R | #Multiple Linear Regression Model
#Plot some data
plot_linear <- ggplot(final_training_set,aes(TotalCapacity,EnrlTotal,color = CourseID)) +
geom_point()
plot_linear
#Fit the model
l_fit <- lm(EnrlTotal ~ TotalCapacity +
TotalSections + CourseID + Term, data = final_training_set)
summary(l_fit)
#Run th... |
ef978efe72872658b69c109d423a4c4c25dd92cc | bd7a27bbf96451f94d0cf3e094f5aba70c153e3e | /src/3_plotting.R | 9a1948aef57915a1023cfc19b5ceb7b0e99a2a01 | [] | no_license | KumarNarendra0619/COVIDDemographyUK | 79ff09b8edd11dcd26eca6fe8641d88b15a3870c | a3749ad7fdd6a3011ecdd0271bb05bcb39678e75 | refs/heads/master | 2023-03-18T08:51:53.041127 | 2020-05-31T08:03:42 | 2020-05-31T08:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 22,317 | r | 3_plotting.R | #===============================================================================
# 2020-03-20 -- covid19-dem
# Produce plots for the paper
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
# Review: Mark Verhagen
#===============================================================================
library(tidyverse)
library(mag... |
8f73026f3a0f9fa6854052efc6d500fd72e61944 | 37ba235ab81cae1120c5d52eecb669b8282df8ad | /surv_sim.R | 7afe89e8e2cf2c846254cef1b08bee9524dc6dd8 | [] | no_license | lgondara/surv_sim | 122ebd60cfb97a84249ca07415fa654445c4e324 | cc0377eef06125a4f261fc72fdc70aef7b99b934 | refs/heads/master | 2020-12-24T20:33:01.803100 | 2016-04-19T14:40:45 | 2016-04-19T14:40:45 | 56,324,089 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,211 | r | surv_sim.R | # simulate different missing data types
##### generic data setup:
set.seed(977) # this makes the simulation exactly reproducible
ni = 100 # 100 people
nj = 10 # 10 week study
id = rep(1:ni, each=nj)
cond = rep(c("control", "diet"), each=nj*(ni/2))
base = round(rep(rnorm(ni, mean=250, sd=10), each=nj)... |
914960c3d4a0e1d7df96a5a904e0424677f8a193 | 52c6e6aff7a137956154f79812b2c987b5716b57 | /R_Analysis/Correlation_Conundrum.R | ddb9bfde640a53ef0252e365ba7a3f474f6f01cc | [] | no_license | tahira-h/MechaCar_Statistical_Analysis | 569b184f25b7d3f0cbaf2562f11c9b21d25c06b2 | 516ddd757c24e499725b9f96f9ea7e7b3ca9aca3 | refs/heads/main | 2023-04-23T08:37:17.474803 | 2021-05-17T00:34:58 | 2021-05-17T00:34:58 | 367,064,231 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,606 | r | Correlation_Conundrum.R | # We can use the 'geom_point()' plotting function combined with the cor() function to quantify the correlation between variables.
# Let's look at the cor() documentation. Ex: '> ?cor()'
# To use the cor() function to perform a correlation analysis between two numeric variables. Use the two arguments, 'x' and 'y'... |
83c555399736b8299c06fca3f4c6801472c2a8c7 | e2caf78a4b718b191295112b02caf940cdd42d67 | /R/setup.R | 2bc538f03ff786670ff7f644952d7ee908e60d4c | [] | no_license | cran/runexp | dc7ab8563aecf14a6b2580b96df3bcc9ae8cbeaf | 5720319ab7f653eb7721314b0596c66808bd08ef | refs/heads/master | 2023-03-23T22:04:15.229079 | 2021-03-22T04:10:02 | 2021-03-22T04:10:02 | 340,026,557 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,829 | r | setup.R |
# Function Contents -----------------------------------------------------------
# Internal:
# check: checks lineup and data frame input of player probabilities
# Check -----------------------------------------------------------------------
# Acts on lineup and data frame input of player probabilities
# Lineup must ... |
ec7914f900928df7433475baed87fd9645cbb9b6 | dc7d233368874cd5051902116332cf3fefef8abb | /Miniproject/Code/Dataexploration.R | 03288c0a200fe77f958cc96600250e8d08b333a2 | [] | no_license | EvalImperialforces/CMEECourseWork | dee31d6bda6930ce0d768f565057bf8a7ec709aa | 2a7ea6f36c148198cd3f14e77e888af151e0e2a9 | refs/heads/master | 2020-03-30T16:06:12.470621 | 2019-01-18T21:20:38 | 2019-01-18T21:20:38 | 151,393,044 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,909 | r | Dataexploration.R | #!/usr/bin/env Rscript
# Author: Eva Linehan
# Date: November 2018
# Desc: Looking at the data
#clear environments
rm(list=ls())
library(dplyr)
#library(lattice)
library(ggplot2)
library(minpack.lm)
# Read in and observe data
DF <- read.csv("../Data/BioTraits.csv", header = TRUE)
#head(DF)
#nrow(DF)
# Use DataSerie... |
87223af168bded950da476afe4b746906ae14997 | c8dd2f636da0cd2ab9b74c7044df58e4f5111b80 | /ProduceTables.R | 0e82b79593329f190049ffac0ad2960ef0e8520c | [] | no_license | gideon1321/Table1_R_Excel_Output | 271f5b3e5b180ed94bd75cb08084cdcae0c8e228 | 3ecdeababeb409dc1da6c00b44397016dcdf415e | refs/heads/master | 2022-09-14T17:45:56.100370 | 2020-05-27T20:19:11 | 2020-05-27T20:19:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,441 | r | ProduceTables.R | ## Packages needed
loadInstall <- function(x) {
if (require(x, character.only = T)) return(require(x, character.only = T))
else {install.packages(x, type="source")}
}
x <- c("plyr","plyr","dplyr","stringr","rms","Hmisc","knitr")
for(i in 1:length(x)){
loadInstall(x[i])
}
#Bring in Data from githu... |
ef88865ec3a73db85adf0f3f00770e84d8dd050f | f4a6173ace305e66d6aa9af8ff825283c7e85f00 | /R/man/save_chart.Rd | b0644412307aaaa1e855a83db142a333f59453e7 | [
"Apache-2.0"
] | permissive | karawoo/syndccutils | 6528f023f770c760e0c26b40f365a2ca68476269 | 550b4c0839457e3a48ff72636e028a9611065e5c | refs/heads/master | 2020-03-07T13:24:53.453472 | 2019-10-09T16:28:20 | 2019-10-09T16:28:20 | 127,499,939 | 0 | 0 | null | 2018-03-31T04:51:45 | 2018-03-31T04:51:44 | null | UTF-8 | R | false | true | 390 | rd | save_chart.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/synapse_helpers.R
\name{save_chart}
\alias{save_chart}
\title{Save a static or dynamic chart to a file and store in Synapse.}
\usage{
save_chart(parent_id, chart_filename, plot_object, static = FALSE)
}
\arguments{
\item{static}{}
}
\descript... |
f29b9ded83b78f8dfdc4e90c228be45e61ea2aaf | 0e7bd9d49f15674ba5415c10e721923520e11bd2 | /R/whiteseg.R | 33818b7b76086fa5ee8f529bcdd6fb9d6ac5ed46 | [] | no_license | syunhong/seg | 8bbf3ac80aa31dab57652e7e8350d2449f55e622 | 6ef0afe116c16b0e55e5f47a95a9e4c162e60117 | refs/heads/master | 2022-08-20T22:33:19.085866 | 2022-08-12T21:59:15 | 2022-08-12T21:59:15 | 92,493,454 | 12 | 2 | null | null | null | null | UTF-8 | R | false | false | 446 | r | whiteseg.R | # ------------------------------------------------------------------------------
# whiteseg()
# ------------------------------------------------------------------------------
whiteseg <- function(x, data, nb, fun, verbose = FALSE, ...) {
message("Note: whiteseg() function name has been changed to isp().")
mess... |
e6c1e77b82146c5f32b00d4fa11c57e62a0e2eaf | f7c48e2eab827668218a34caae1700795f77763c | /Readme.rd | 6bfdd29928139d8f5c68b9a0c38c169b543ded2a | [] | no_license | bsohackdk/User-login | c99ed048b47027d951f6e7391c6984b92f849a43 | 93d349dd86591fd25524647b3c32d311b93305d6 | refs/heads/master | 2020-09-01T11:37:04.423750 | 2019-11-01T09:14:19 | 2019-11-01T09:14:19 | 218,951,513 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 222 | rd | Readme.rd | 编写登陆接口
功能:1)输入用户名密码
2)认证成功后显示欢迎信息
3)输错三次以后锁定用户
注意点一:登陆时验证lock文件,确认该用户是否被锁
注意点二:
|
fe4b8df125903e7a3dd5ccdb005ba378160f6941 | 5b6f50654852dfce5ae1639900be523586ff0e20 | /demo/diagnose.R | 01595e0464da2ecd13b3aeeae02b46466960edeb | [] | no_license | spatstat/spatstat | 2ff4642866ef0e3411b998fd394837c916b93dd8 | f16a2015b52c497427c493d583ac075122a097c2 | refs/heads/master | 2023-08-03T10:36:49.254624 | 2023-07-22T03:31:04 | 2023-07-22T03:31:04 | 22,839,956 | 182 | 54 | null | 2021-02-15T09:04:07 | 2014-08-11T13:28:43 | R | UTF-8 | R | false | false | 5,312 | r | diagnose.R | if(dev.cur() <= 1) {
dd <- getOption("device")
if(is.character(dd)) dd <- get(dd)
dd()
}
oldpar <- par(ask = interactive() &&
(.Device %in% c("X11", "GTK", "windows", "Macintosh")))
par(mfrow=c(1,1))
oldoptions <- options(warn = -1)
#
#######################################################
#
X <... |
9eadaaa2d8e9321831ec0b7c4dc18bdd62512987 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/cellWise/man/cellHandler.Rd | 138793588cd962d8c199784938f25d9386f22f4c | [] | 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 | 2,685 | rd | cellHandler.Rd | \name{cellHandler}
\alias{cellHandler}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
cellHandler algorithm
}
\description{
This function flags cellwise outliers in \code{X} and imputes them, if robust estimates of the center \code{mu} and scatter matrix \code{Sigma} are given. When the l... |
8be4edafaa8b822a1756c09d3f5dd1b471df7206 | 164a4905afb7f7b825f704c44daa00914cc97af2 | /R/RScript.R | fc665fe0a427ca6c91f6c3fcfd4d4db4da858cc4 | [] | no_license | hhy5277/ReporteRs | b8403e5a71f124bf682a9e6fb4b8839a72f8676b | fc1e891ffea15cdbaeb4d727d17205dccca2089e | refs/heads/master | 2020-06-03T18:38:17.477441 | 2018-11-30T14:06:06 | 2018-11-30T14:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,924 | r | RScript.R | #' @title RScript object
#'
#' @description Colored RScript object
#'
#' @param file R script file. Not used if text is provided.
#' @param text character vector. The text to parse. Not used if file is provided.
#' @param comment.properties comment txtProperties object
#' @param roxygencomment.properties roxygencomment... |
a07451b6cc2f0df0080ddd39ccc178b5e422ec31 | 151de070b8babcff561d0cf6e5d8497c9b0f30e6 | /dataiku.R | fd30aa765bbb2987329e938027988011b9b2d2b2 | [] | no_license | claeysre/challenge_census | 6ff901b8eda535165157d52f9b3d4c759bea961e | a6db1b67a4da0123b7611920fbaa6c6a9393f518 | refs/heads/master | 2021-01-01T05:12:53.792020 | 2016-05-08T20:58:54 | 2016-05-08T20:58:54 | 56,500,310 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,603 | r | dataiku.R | # Packages needed to run this code. If you do not posess one of this library, please run the following command
# install.packages('e1071') for example
library(randomForest)
library(ggplot2)
library(rmarkdown)
library(e1071)
library(ROCR)
library(caret)
library(lubridate)
# Please change your path according to your ne... |
1f8e4073206a5ae1122f02c043e536d084571cf5 | 3324667e4c8377a4621c34601cff709bc4a3d2b0 | /Scripts/variable_trends_seasonal.R | 35aaae20856f9f622f1da31dc97df2039e59cccd | [] | no_license | CM26-Climate-Paper/Analysis-code | 6a98cfc31ae6a79eb82ce4d9dc5016b54d1945b1 | 2e5861307caf3759beac0d78696e34b06dfbd694 | refs/heads/master | 2020-06-30T07:35:58.532666 | 2019-09-16T19:54:00 | 2019-09-16T19:54:00 | 74,387,756 | 2 | 1 | null | 2016-12-16T18:47:39 | 2016-11-21T17:24:22 | null | UTF-8 | R | false | false | 5,504 | r | variable_trends_seasonal.R | ######### new script to display the temporal trends of predictors
###### code from Jenn ####
ggplot(FLpL, aes(x = Year, y = value)) +
geom_point() +
facet_wrap(~ variable, ncol = 12) +
geom_smooth(method = lm) +
xlab("") + ylab("Precipitation (in)") +
theme(axis.text.x = element_text(angle = 45))
## https:/... |
64ee93e18c68f9c43ef98a9cc7f245b8dc12c0b9 | 4e38a7c72d5c8abea267b2d01eae522538835e49 | /W7_IntroductiontoPortfolioTheory/assignment8.r | 62f031f7719facd1c6a37f29ce38aafccf139c45 | [] | no_license | gavinconran/CompFin | 4e07e03900b73500f00d3e7d73dd3c22169e4ec6 | 0aa172e5911f7e13453e39433db0d8cbd06304dd | refs/heads/master | 2020-04-17T21:47:26.854955 | 2016-08-24T14:31:42 | 2016-08-24T14:31:42 | 66,462,651 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,710 | r | assignment8.r | ### Compute Efficient Portfolios with Matrix Algebra
# To clean up the memory of your current R session run the following line
rm(list=ls(all=TRUE))
## Part 1: Loading in your data set
# Load the relevant packages
library("zoo")
library("quadprog")
# Load the data
data <- url("http://s3.amazonaws.com/assets.datacamp.... |
62ca283b021043ae74f839e7505b3c484f807400 | 135725be7153ff6ec6cc79b8db29cdea80ecc875 | /man/isSQLite3.Rd | 3c928cadd8abdc3f5655de079e0edd8ad73a7831 | [] | no_license | cran/CollapsABEL | f2969755a8fe831eeab9c4971ddd1488a1e39b81 | b3be3f831ba5e9500d016aca0ca768a367e79c84 | refs/heads/master | 2021-01-10T13:18:22.127650 | 2016-12-11T19:35:07 | 2016-12-11T19:35:07 | 55,400,560 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 369 | rd | isSQLite3.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/0_utils.R
\name{isSQLite3}
\alias{isSQLite3}
\title{Check whether a file is a SQLite3 database.}
\usage{
isSQLite3(filename)
}
\arguments{
\item{filename}{character. Path to file to be checked.}
}
\description{
Check whether a file is a SQLit... |
88d783ed7829ea517ae3aa445a6aef1e22ced0cf | f25773ebf850c85a2044c851d29f828a6bdd98c7 | /man/differenceOfICs.Rd | a7ac3d2bf7cb004bc22d50aeb3801c257c5e5cb4 | [] | no_license | Treutler/DiffLogo | c81c9cf71e231854904d7a72eba07aa0a8fedec4 | 2c54cdd6eac7a6ffd256d5f74a8e6ad43930cd99 | refs/heads/master | 2021-01-19T20:44:34.486095 | 2015-09-02T10:47:07 | 2015-09-02T10:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,000 | rd | differenceOfICs.Rd | \name{differenceOfICs}
\alias{differenceOfICs}
\title{normalized information content differences}
\usage{
differenceOfICs(p1, p2)
}
\arguments{
\item{p1}{probability vector representing the first symbol
distribution} \item{p2}{probability vector representing the
second symbol distribution}
}
\value{
a vector ... |
d741d19b09d07c50af71e2233c82adf0c5e9c398 | 4c7722ef01e9197fd1abf1dfef287e90c0f1d9a9 | /R/genomic.R | eaacec62fd30046f631073bcd28d34563d577879 | [] | no_license | jingliao/islandR | 413b29e812c735b9f8403f982311eceed2390f8c | 3ed757e1f7a8fe2b5b57d7f6893016abbb7986b7 | refs/heads/master | 2021-01-15T20:28:43.654260 | 2015-08-14T07:12:26 | 2015-08-14T07:12:26 | 40,569,298 | 0 | 0 | null | 2015-08-11T22:59:45 | 2015-08-11T22:59:42 | null | UTF-8 | R | false | false | 916 | r | genomic.R | #' Get the number of posterior samples available for attribution
get_num_samples <- function() {
return(max(genotype_attribution$Iteration))
}
#' Get the genotypes available for attribution
get_genotypes <- function() {
return(unique(genotype_attribution[,1:8])) # TODO: Make indicies a function of data
}
#' Retri... |
5e5b92f2bc51c3305213f93986799b6cd243c994 | edf92ac27f3c35101ba34583293f41482d560a3c | /boxplot/ini.R | 3761866772f569907142a91dc03c9b0d7d59c453 | [] | no_license | MarcosGrzeca/drunktweets | 9cfd863a566d53c508acbb919ab05b0de2a9ea4f | b0dc296bdd394125f32f39823268f3e612418339 | refs/heads/master | 2023-03-08T15:30:57.956160 | 2020-06-29T23:46:54 | 2020-06-29T23:46:54 | 142,778,753 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 309 | r | ini.R | # library
library(ggplot2)
# create a data frame
variety=rep(LETTERS[1:7], each=40)
treatment=rep(c("high","low"),each=20)
note=seq(1:280)+sample(1:150, 280, replace=T)
data=data.frame(variety, treatment , note)
# grouped boxplot
ggplot(data, aes(x=variety, y=note, fill=treatment)) +
geom_boxplot() |
845e3c88d8843135fce5aff5fd5c6caf82e36861 | f08b26d01bd9380e0650aac130b68ddcdcc90515 | /Assignment 2 solution/Part 1 Q1 Data Wrangling/Part 1 1 a/Assignment2Part1ab.R | 2a150a64e77ee66da0a27a06d6a07824c8d45f0b | [] | no_license | MoreDhanshri/ADS-Assignment | 8b4dd4026522a227b9642c841fb8c5eef29f24f8 | 39c6ea5948ee09a9003afd5218317625290ebf4e | refs/heads/master | 2021-01-20T18:20:29.885366 | 2017-02-14T23:44:53 | 2017-02-14T23:44:53 | 61,416,088 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,761 | r | Assignment2Part1ab.R | setwd("D:\\Northeastern University\\ADS\\Assignment\\Assignment2\\Assignment 2 solution\\Part 1\\")
raw.data<-read.csv("D:\\Northeastern University\\ADS\\Assignment\\Assignment2\\NewData.csv", header = T)
raw.data<-raw.data[raw.data$Units=="kWh",]
raw.data$Date<-strptime(raw.data$Date, '%m/%d/%Y')
raw.data$ye... |
37f367594697e3008d163022364a71cdfc324bb9 | 29585dff702209dd446c0ab52ceea046c58e384e | /cartography/R/getBorders.R | 5178cfb69705909c5999672003be929cbe25fecd | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,615 | r | getBorders.R | #' @title Extract SpatialPolygonsDataFrame Borders
#' @description Extract borders between SpatialPolygonsDataFrame units.
#' @name getBorders
#' @param spdf a SpatialPolygonsDataFrame. This SpatialPolygonsDataFrame
#' has to be projected (planar coordinates).
#' @param spdfid identifier field in spdf, default to the ... |
7f55e44d149d9a12ed0c9ce3d580186e8b60f4e3 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/JSM/R/logLik.jmodelTM.R | f0eb644a10eecd58174314b19f87bd060c8988cd | [] | 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 | 281 | r | logLik.jmodelTM.R |
logLik.jmodelTM <- function (object, ...) {
if (!inherits(object, "jmodelTM"))
stop("Only used for 'jmodelTM' objects.\n")
out <- object$logLik
attr(out, "df") <- nrow(object$Vcov)
attr(out, "n") <- object$n
class(out) <- "logLik"
out
}
|
37831df57a0cb912b703d5c09234519e71318b8c | 088d515a03a785b6d70bdc77bd7bee9d7b212e67 | /main.R | 1d9e8525713f0918d8c26310dc4866a2dfd552a0 | [] | no_license | deronaucoin/diabetespredict | 70a25957d3ff886b0197540ecd1c344ece0f9c53 | 01dfa00c420d4dd10ef7c4adc07d1d488da2f482 | refs/heads/master | 2020-04-19T04:51:49.160478 | 2014-06-09T22:56:55 | 2014-06-09T22:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,821 | r | main.R | rm(list=ls())
library(RSQLite)
library(randomForest)
setwd("~/Dropbox/data/kaggle/practicefusion/mycode")
makeconfusion <- function(y,pr){
prediction <- ifelse( pr> 0.50, TRUE, FALSE)
confusion <- table(y,prediction)
confusion <- cbind(confusion, c(1 - confusion[1,1]/sum(confusion[1,]), 1 - confusion[2,2]/(su... |
9dd953a65361d521911c0ba5d320bdb706dc8041 | c418c599316af9658a21e111cd3259335dd019c7 | /res/PHA-PLA.r | 76bbbdeda4eae46786a97a23efe9403d2e95a66c | [] | no_license | LucasRodolfo/MC861 | 534f0705544e70bd367a9324b5524363e516ee7d | dda343d2685f412e7db562a86d3cb8cabf8c17f9 | refs/heads/master | 2022-12-21T06:48:40.125911 | 2019-11-22T23:34:23 | 2019-11-22T23:34:23 | 201,146,981 | 0 | 0 | null | 2022-12-10T01:27:04 | 2019-08-08T00:20:48 | TypeScript | UTF-8 | R | false | false | 570 | r | PHA-PLA.r | | pc = 0xc001 | a = 0x05 | x = 0x00 | y = 0x00 | sp = 0x00fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc003 | a = 0x05 | x = 0x00 | y = 0x00 | sp = 0x00fc | p[NV-BDIZC] = 00110100 | mem[0x01fd] = 0x05 |
| pc = 0xc004 | a = 0x00 | x = 0x00 | y = 0x00 | sp = 0x00fc | p[NV-BDIZC] = 00110110 |
| pc = 0xc006 | a = 0x05 | x = 0x00... |
08f66676e134b93c1f62fc76472fc91da2e2e16d | 08236e0b88200e44ad104cb02836237883ea4f6a | /rate_functions.R | e114a868ffe2d6593464338d28ab21d1c52e9985 | [] | no_license | inferentialist/hlc-returns | aa1219db18c0dee9b0c52613432d46bf1f2bf909 | fdc0bea9426844da2050e92b7837a327d5ed8454 | refs/heads/master | 2021-01-15T12:25:12.915505 | 2013-09-21T00:24:41 | 2013-09-21T00:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,464 | r | rate_functions.R |
quoted_rate_f = function(xdf)
{
rval = 1 + median(xdf$int_rate) / 100
return(rval)
}
ideal_static_rate_f = function(xdf)
{
quoted_rate = quoted_rate_f(xdf)
monthly.rate = (quoted_rate -1) / 12
## Assume funded_amnt is $1
coup = monthly.rate * (1+monthly.rate)^36 / ( (1+monthly.rate... |
7572c9869cf9b01b158c027cc66d86186b16285a | d4fa07a7d1e586502356dd611643e81e82d74c34 | /mapa2.R | bec09c656c4362d592763341c395f1ce718b3215 | [] | no_license | LucianoAndrian/CC | 855ffea1ee129bb08e452e677a0e668b3b24e4e8 | c82b38c755038392a66c5e24bcf620b48f9d961f | refs/heads/master | 2020-09-03T23:46:49.192192 | 2019-12-02T22:06:23 | 2019-12-02T22:06:23 | 219,604,685 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,512 | r | mapa2.R | mapa2 = function(lista, titulo1, nombre, label){
library(maps)
require(fields)
require(mapdata)
library(ggplot2)
library(metR)
library(RColorBrewer)
library(mapproj)
titulo = c("DJF", "MAM", "JJA", "SON")
for(i in 1:4){
value = array(lista[[i]]*mask, dim = 23*30)
data = matrix(data... |
19c342ca6c758d3db0fe397d7c65c04eaeff11c6 | fc45ee77e310e641c1164db159865e5aea355560 | /man/InverseGWishartPriorFragment.Rd | d581f65545063fd33b89485ee8e7906473442983 | [] | no_license | jatotterdell/varapproxr | 2baee2d0c07a96ebae7ff499293903e9e0c91df8 | b2e9105894e1a9f2ac7366b84d9ed701e8a5cf21 | refs/heads/master | 2023-07-20T15:15:23.772555 | 2023-07-14T03:35:33 | 2023-07-14T03:35:33 | 172,455,526 | 1 | 6 | null | null | null | null | UTF-8 | R | false | true | 453 | rd | InverseGWishartPriorFragment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{InverseGWishartPriorFragment}
\alias{InverseGWishartPriorFragment}
\title{Inverse G-Wishart prior fragment update}
\usage{
InverseGWishartPriorFragment(G, xi, Lambda)
}
\arguments{
\item{G}{The graph matrix}
\item{xi}{The... |
8e06a78bbacfd05efcfb40a781b328dbfc4c9dbf | e02d7135fd71788ead79ec88ade5c582de4e4d4e | /man/bandeiras.Rd | 338aa9a54ce0f55b56583a8a09c2efedc319a4aa | [
"MIT"
] | permissive | curso-r/bandeiras | b20a398d7a84009c99a8adfbf93285ff907d5465 | 8d0c26c8313cefc4a592ebd9a26417c13f46e31d | refs/heads/master | 2022-12-31T12:59:43.151758 | 2020-10-14T22:23:24 | 2020-10-14T22:23:24 | 304,144,326 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 343 | rd | bandeiras.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-data.R
\docType{data}
\name{bandeiras}
\alias{bandeiras}
\title{bandeiras}
\format{
An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 195 rows and 3 columns.
}
\usage{
bandeiras
}
\description{
bandeira... |
f4c659e93cf3b10510a91bab666006f3d791930c | 448a1ff0d4b3d7029b5df32c0a09f32a338c8b65 | /Lab Week 4-2 (Data Frames).R | eb98f3250fc0f43b5c6eefe1530995c7e431fc9a | [] | no_license | LouisJBooth/R | ccdca481d1e5ef78aa18e346046f42163b4ee982 | 6820bf082a3562a74a259ad7688771a2c68e1325 | refs/heads/master | 2020-04-17T15:50:57.087680 | 2019-01-20T23:24:59 | 2019-01-20T23:24:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 833 | r | Lab Week 4-2 (Data Frames).R | mtcars
head(mtcars)
tail(mtcars)
str(mtcars)
lm(mtcars$mpg ~ mtcars$cyl + mtcars$hp)
name <- c("Apple", "MS", "Google", "Honda", "GM", "Volks", "Hyundai", "Amazon")
type <- c("IT", "IT", "IT", "Auto", "Auto", "Auto", "Auto", "IT")
stock <- c(165.5, 55.48, 1119.20, 36.16, 41, 172.06, 162.5, 1429.95)
US <- c(TRUE, T... |
1f0221717d54b13f7875616a755a9a99c0c84b52 | b6c843dba2c3c2f5aa4783b075ec5fb821a6b7d6 | /after_renewal/CREATE/CREATE_P50DATABASENAMES.R | 947d9d010c2bb0dbda2f894577928d80aabfde63 | [] | no_license | bonnfire/P50 | 010da47fe04e128d5d7643c788d9404284962e34 | 0489d770a7660b899d8aaf17c86b72e925233c16 | refs/heads/master | 2021-07-14T08:44:09.714395 | 2021-03-24T01:03:55 | 2021-03-24T01:03:55 | 243,115,463 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 688 | r | CREATE_P50DATABASENAMES.R | ## CREATE P50 DATABASE NAMES
shipments <- list("Meyer" = WFU_Meyer_excel_orig_test_df,
"Richards" = WFU_Jerry_excel_orig_test_df,
"Chen" = WFU_Chen_excel_orig_test_df)
shipments_p50_df <- shipments %>% lapply(., function(x){
x <- x %>% mutate_all(as.character)
x$cohort <- ifelse... |
30efb54d179b56e286304cea98a0678973bb4c09 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/expm/examples/expm.Higham08.Rd.R | 6734286f39792531fac553749efea61a852e6e2e | [] | 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 | 3,022 | r | expm.Higham08.Rd.R | library(expm)
### Name: expm.Higham08
### Title: Matrix Exponential [Higham 2008]
### Aliases: expm.Higham08
### Keywords: algebra math
### ** Examples
## The *same* examples as in ../expm.Rd {FIXME} --
x <- matrix(c(-49, -64, 24, 31), 2, 2)
expm.Higham08(x)
## ----------------------------
## Test case 1 from War... |
b819617edd6f99911eddb09c149112ffb7e66978 | e731c856a93cf0b9f54bb3c44c81073aec82d5bb | /man/MFT.mean.Rd | e8963c8001352882cc7a3a27da7f315e7df4f5e4 | [] | no_license | cran/MFT | 75b22d5e26a552afcaa9b6c26859e2f5c38c4bf1 | db17d0591c9f00a9afe80da6936e894397593a91 | refs/heads/master | 2021-10-22T16:23:32.490875 | 2019-03-11T19:42:55 | 2019-03-11T19:42:55 | 103,674,967 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,281 | rd | MFT.mean.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MFT.mean.R
\name{MFT.mean}
\alias{MFT.mean}
\title{MFT.mean}
\usage{
MFT.mean(X, autoset.H = TRUE, S = NULL, E = NULL, H = NULL,
alpha = 0.05, method = "asymptotic", sim = 10000,
rescale = FALSE, Q = NA, perform.CPD = TRUE, print.output =... |
f7b2eb8c8dfc7498f380c2f2b4b4cda139329423 | db65898c2edba5bca72e85b7d0382ae03e19d244 | /R/timeEstimation.R | 05c4e2958882c70f9f0cdb62803f7b3c762909f9 | [] | no_license | sdcTools/sdcMicro | 9193dd10c9cec6a16d90b32d4f8a78c84283bbd3 | 74ba57c4b579d2953d6e7bfa36a6cd648e7fff10 | refs/heads/master | 2023-09-05T05:20:31.170506 | 2023-08-30T10:54:09 | 2023-08-30T10:54:09 | 12,051,341 | 61 | 32 | null | 2023-08-30T09:52:47 | 2013-08-12T08:30:12 | R | UTF-8 | R | false | false | 1,546 | r | timeEstimation.R | # TODO: Better estimate for the computation in a computer?? Author: Alexander Kowarik n:
# nrow dataset nkey: number of key variables nmean: mean number of categories
predictTime <- function(n, nkey, nmean) {
coef() * (5.297e-12 * n^2 + 1.178e-06 * n * nkey + -2.973e-07 * n * nmean) #FreqCalc
}
coefTime <- functio... |
0dba2691499e85549223660c3cf04ad85a6c5df5 | d11a33caffe439f15351d4d6059cd71a102177e5 | /man/diversity_through_time.Rd | 8c36a0c963a449f9f2718460d5a4d835da91c4c0 | [] | no_license | thauffe/simGDM | 0ec5cda909d39a6415bb9cd1dd24944be896f6e5 | e4a4c98548b261f7bba9dcfcc6c4c0d48e0a513d | refs/heads/master | 2020-07-27T12:48:58.927397 | 2020-02-13T15:11:33 | 2020-02-13T15:11:33 | 209,064,906 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 9,964 | rd | diversity_through_time.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diversity_through_time.R
\name{diversity_through_time}
\alias{diversity_through_time}
\title{Island diversity and events through time}
\usage{
diversity_through_time(Elevation, Topography, Area, Vs, S0, E0, Ms, Iso_t,
Imm, C0, Ana, Emi, Z, ... |
ab9e7b2a824b1a8da8df059ec4b040bda2493593 | e1dbffbeefe6a0e81f2bfcf57e166d282e8daf72 | /plot3.R | 02b143fa34692f7f3216339a2b783a3636d82425 | [] | no_license | JasonSmiegel/ExData_Plotting1 | e9a18269bf30b676bb8c0aa071ad752b1c56ba13 | 69c9d20d910717d1f39ba35d396bfa1ab429c3ba | refs/heads/master | 2021-01-17T12:34:34.259345 | 2016-05-29T18:38:43 | 2016-05-29T18:38:43 | 59,947,253 | 0 | 0 | null | 2016-05-29T14:28:42 | 2016-05-29T14:28:42 | null | UTF-8 | R | false | false | 422 | r | plot3.R | #plot the multiplt line graph with legend
png("plot3.png")
with(electricitydata,plot(datetime,submetering1,type="l",xlab=" ",ylab="Energy sub metering"))
with(electricitydata,points(datetime,submetering2,type="l",col="red"))
with(electricitydata,points(datetime,submetering3,type="l",col="blue"))
legend("topright",col=c... |
429dbec2e7f42d57b279d360c2dbeed98e155d74 | 0e96c2f393292398e6b74a1f26a27d7a549fb84b | /R_Geocoding_Census.R | f6475ac4e34e23032eb8504836be112005f134fa | [] | no_license | lewissearsiv/Metis_Proj1_MTA | 3ed7215afa7050eac3f9fa25af734494b8fdf504 | fb744b26ab9b637e7fe5e927261003abedcb8aba | refs/heads/master | 2022-12-21T22:27:21.602059 | 2020-09-24T23:58:33 | 2020-09-24T23:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,837 | r | R_Geocoding_Census.R | library(dplyr)
## read in trunstile data for getting ids etc
turns <- read.csv('http://web.mta.info/developers/data/nyct/turnstile/turnstile_200919.txt')
#Base url for google maps api
base <- "https://maps.googleapis.com/maps/api/geocode/json?address="
# Census api key
cen_key <- '97d55623ee041618526d685d56a34098681... |
3c889af7dfbca95329d2c63d4abe6a9724d3aa3b | ebad760bbaab9b3c0f06ffe10b3c2c305f5d8e46 | /Resample.R | 5a56b4db304ece2211b6be80004e084b5db26979 | [] | no_license | JuanMatiasBraccini/Git_MACN | 76a9bbe5b1d96a82ff55c2ee10585563a6ba56a2 | 0921271ff4a03eecac85893d2eab522c4ea444ab | refs/heads/master | 2020-06-03T19:51:06.090931 | 2019-06-13T07:08:08 | 2019-06-13T07:08:08 | 191,709,816 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,128 | r | Resample.R |
#Age VS Length
DATA=read.csv("C:/Matias/MACN/Data.csv") #bring in data
#check data
plot(DATA$Age,DATA$DW)
#estimate parameters
vbTypical <- DW~Linf*(1-exp(-K*(Age-to))) #growth function
svTypical.VB = c(Linf=176,K=0.08,to=-1.8) #initial parameter values
fit.vonb <- nls(vbTypical,data=DATA,start=svTy... |
ea0f7ccc7ff657da702e2169c063521abe4d68b5 | 90d47e5658ea7e803d7156dc2601446c456bb91b | /R/4-get_ngrams.R | bdb2a6b8a2642afeffc4011cc83c14b22ab33cb3 | [] | no_license | Auburngrads/text.analysis | a0a5d4d559f442ad2015b66fd72fe02c489c81a0 | 8f6ec3d7a51c4697f39c7cb716a13a7b3f3340b1 | refs/heads/master | 2020-03-23T11:18:31.106745 | 2018-07-18T23:44:02 | 2018-07-18T23:44:02 | 141,496,174 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 435 | r | 4-get_ngrams.R | #' Create data.frame of n-grams
#'
#' @param x A character string of text
#' @param n Number of n-grams to get
#' @param ... Additional arguments for \code{tau::textcnt}
#'
#' @importFrom tau textcnt
#'
#' @export
get_ngrams <- function(x, n,...) {
df <- data.frame(count = unclass(tau::textcnt(x, method = "string",... |
76aa3e0cfa6eb76e2d28215446b35bfbe01d485c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/SoilR/examples/126.Rd.R | a1c2c86a21c0c9468db039c1eecd8e317e6866b5 | [] | 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 | 587 | r | 126.Rd.R | library(SoilR)
### Name: fW.Candy
### Title: Effects of moisture on decomposition rates according to the
### Candy model
### Aliases: fW.Candy
### ** Examples
th=seq(0,1,0.01)
xi1=fW.Candy(theta=th,PV=0.4)
xi2=fW.Candy(theta=th,PV=0.6)
xi3=fW.Candy(theta=th,PV=0.8)
plot(th,xi1,type="l",main="Effects of soil water... |
5f0c55403e384861a9544438e0ee8a03db58113a | ec33ad5603ca1069b1a057d1a283022e64d72637 | /bioifx/cluster/heatmap/scripts/heatmapSF.R | 8bd9ad7c49773b52df0dea50e719a60af7c38ff2 | [] | no_license | vangalamaheshh/dockerfiles | 4800ed98c48cdbb1704872a987747cd9250b9ff7 | 2fa6bac77bd5efbfcdb335a706102b3bf47d1ea7 | refs/heads/master | 2020-12-25T13:45:18.291900 | 2019-08-05T20:48:10 | 2019-08-05T20:48:10 | 63,626,190 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 5,747 | r | heatmapSF.R | ## Load required packages
suppressMessages(library("gplots"))
suppressWarnings(suppressMessages(library("ComplexHeatmap")))
suppressMessages(library("circlize"))
suppressMessages(library("viridis"))
suppressMessages(library("dplyr"))
suppressMessages(source('/usr/local/bin/scripts/supp_fns.R'))
## Enable stack trace
#... |
344c6b1fa25695b2bda88230355e5fc3b7358d1c | 1e079ff677884cc8684f897addc6f4f2d7c648eb | /AoC_day05.R | 926c4a2802781c500b002b49b494361791f71451 | [] | no_license | jmoggridge/AdventofCode2020 | 1f3f341300b10e8fa5816773125b5171d8f19e27 | b0074445147150369d7f4682afd8ea3400d871e0 | refs/heads/master | 2023-02-24T15:21:07.548635 | 2021-02-05T07:05:06 | 2021-02-05T07:05:06 | 326,839,226 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,195 | r | AoC_day05.R | # --- Day 5: Binary Boarding ---
# You board your plane only to discover a new problem: you dropped your boarding pass! You aren't sure which seat is yours, and all of the flight attendants are busy with the flood of people that suddenly made it through passport control.
#
# You write a quick program to use your pho... |
30b1fc666c488873aadbfeca5a86f52c57d675a0 | d7bc977caf5805571319eb7cff1863a0e936b9b9 | /man/estimate_diameter_range.Rd | 51817822690fe1aff4904e90218d2057b4d2585f | [] | no_license | dami82/cellTracker | 5a57540eecde76c4939f94f3ea1c7956b5757b95 | e06c96c0444e1659b1a862c31fae14c0cc95930b | refs/heads/master | 2020-09-28T14:02:17.651596 | 2020-02-19T05:51:37 | 2020-02-19T05:51:37 | 226,792,756 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,434 | rd | estimate_diameter_range.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cellTracker_core.R
\name{estimate_diameter_range}
\alias{estimate_diameter_range}
\title{Detect Paricle Diameters in a Numeric matrix}
\usage{
estimate_diameter_range(x, px.margin = 2, quantile.val = 0.99,
plot = TRUE)
}
\arguments{
\item{x... |
987c59c8ec3fe21a8b46089dee4121b937d2c84d | 7cf5076071b09252510b2cf3579512becdae07e6 | /quiz.R | 6c44cef20e0acbb6f93d83c0bb4731a1975b89cb | [] | no_license | H3runug/Rherunug | 9a67ef245cf56145f4d1082b900d0eeee5605911 | 17412a452757fdacc6aba4702ccfd0bec4060613 | refs/heads/master | 2020-04-24T10:12:33.204611 | 2019-02-21T14:35:40 | 2019-02-21T14:35:40 | 171,885,643 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 439 | r | quiz.R | # nama document : basic R.R
# penulis : Heru Nugroho
# Deskripsi : lat dasar2 R
v_hobi_saya = c("sepak bola", "menulis","otomotif")
v_hobi_saya
matrix_ganjil = matrix(c(1,3,5,7,9,11), byrow = T,nrow = 2)
matrix_ganjil
df_harga_makanan = data.frame(
makanan = c("Pizza","Bakso","Roti","Mie Instan"),
hargany... |
b7fad7bf751195ea1b3b83000930f98d67389b90 | f8c8e0449ad002439578548d1c9b28b9e724e3d9 | /man/Seed.Rd | 7bf8111b76c0977712b0d34b9497812c89ab904d | [] | no_license | cran/MLGdata | b2ddf49578ec1602477b5c0be2521da62cd29079 | 93613b4f0ccaa3f3f0f3c38ad602e9388e7d48ea | refs/heads/master | 2022-12-19T06:04:50.351737 | 2020-09-30T07:50:12 | 2020-09-30T07:50:12 | 300,196,166 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 670 | rd | Seed.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{Seed}
\alias{Seed}
\title{Seed germination}
\format{
A data frame with 20 observations on the following 2 variables
\describe{
\item{\code{fert}}{level of fertilizer used}
\item{\code{x}}{indicator of germinati... |
64ad969648b1fecf18a81fc233021fb2f7d05bfd | 13dc4bce18367002b60fa2063f59660eac2c99b4 | /이상치분석/Func.trans/실습.R | f78d718b963650c1184ae84bf17020857446d9a5 | [] | no_license | bohyunshin/ML | 7c28472b0de702852c174a9afd9bddd7a7ef2604 | e667aee161b63eeb8571222a6286b984e8afea0f | refs/heads/master | 2021-06-21T03:17:10.525171 | 2021-01-20T08:07:25 | 2021-01-20T08:07:25 | 179,795,328 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 895 | r | 실습.R | library(HighDimOut)
data(TestData)
mydata = TestData
# ordinary ABOD
abod.result = Func.ABOD(mydata[,-3],basic=T,perc=1)
mydata[order(abod.result,decreasing=F),] # abod는 값이 작을 수록 outlier라고 판단.
# Fast ABOD
# Feature Bagging
fbod.result = Func.FBOD(mydata[,-3],iter=10,k.nn=5)
mydata[order(fbod.... |
fa6ab7afd8edd86fa1bc2868d721d805b488503f | b64f494df1015a60619f8cddc70465f742652525 | /prediction_lasso.R | 0028f402fa84cc0f41fe5f9c5155d2885c01589a | [] | no_license | hnyang1993/UmbrellaAcademy | 5b604e9caa0d998f580760fb3970138348cec22f | a287c4df9fd342fe93b2204645d693e66bc7cbb2 | refs/heads/master | 2020-05-02T15:31:57.398931 | 2019-04-26T01:32:42 | 2019-04-26T01:32:42 | 178,043,804 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 447 | r | prediction_lasso.R | setwd("~/Desktop/BIOS 735/final_project")
load("prenobns.RData")
it_test = itoken(test_use$comment_text,
preprocessor = prep_fun,
tokenizer = tok_fun,
ids = test_use$id,
progressbar = TRUE)
raw.test.dtm = create_dtm(it_test, vectorizer)
pred <- ... |
f68fdcd1e6ba194a50a60eb18097db714d5469aa | 7085dc3eae63ee59981214bc426b91584b81f6e9 | /2017_Yosemite_ script.R | 8baaace213917075d140c4e177c0f19608501555 | [] | no_license | shumengjun/2017_Carpentry_workshop | 2397d5e23b80f61ca673d9d2d289e3566d1d3b5e | 75c9fff7949ca2e54f5c543dca5c2ab2a8100d15 | refs/heads/master | 2021-01-22T17:38:36.451457 | 2017-08-18T23:07:13 | 2017-08-18T23:07:13 | 100,729,653 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,164 | r | 2017_Yosemite_ script.R | ## Mengjun Shu
## 2017 Yosemite workshop
##08/18/2017
## download.file("https://ndownloader.figshare.com/files/2292169",
## "data/portal_data_joined.csv")
surveys <- read.csv("data/portal_data_joined.csv")
## Explore data
head(surveys)
tail(surveys)
tail(surveys, 12)
str(surveys)
summary(surveys)
dim(su... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.