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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b70f41906a6dfbea830d90663deceae03012f7e | 3ecd225072f2bfbb1ac74387391c23c9cf1add62 | /man/treeSummarizedExperiment-class.Rd | dc7f7ae95ad8adcf0e76237e8cf187db58bc1528 | [] | no_license | jkanche/TreeSummarizedExperiment | 7f4574ef9e9584fcad23be7f85475fd56b64d61d | 566509a1fd43004c001022de70b2b06e593a0731 | refs/heads/master | 2020-05-03T03:30:26.951062 | 2019-03-28T14:01:42 | 2019-03-28T14:01:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,193 | rd | treeSummarizedExperiment-class.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allClass.R
\docType{class}
\name{TreeSummarizedExperiment-class}
\alias{TreeSummarizedExperiment-class}
\title{An S4 class TreeSummarizedExperiment}
\description{
The class \strong{TreeSummarizedExperiment} is an extension class of standard
\... |
94496d61f85dabd4a3fd612477dfb7fbc9ded386 | e4390e4480398bcb82206b705e68711e6a328297 | /cachematrix.R | d17afbd1d21ddfa13d8a85ee59ac2f69e181a3ee | [] | no_license | linwood81/ProgrammingAssignment2 | cce8430f99ae4cc53cc2bddbde6109dab7b355a1 | 1c3d1762099c69eabd1b61d229df2919c81d4dd1 | refs/heads/master | 2021-01-21T05:40:22.711963 | 2016-07-26T04:19:14 | 2016-07-26T04:19:14 | 63,561,222 | 0 | 0 | null | 2016-07-18T01:33:33 | 2016-07-18T01:33:33 | null | UTF-8 | R | false | false | 1,016 | r | cachematrix.R | ## These functions are used to store a matrix and to cache the value of its inverse.
## This function consists of a list of functions to set the value of a matrix, get
## the value of a matrix, set the value of a matrix inverse, and get the value of
## a matrix inverse.
makeCacheMatrix <- function(x = matrix()) {
... |
267b8f90585b383178200aa0df9ffa6c6b3d2edc | 7aaaf4a86c19bceba709168c413f62367c1fc630 | /generate_synth_data.R | 8231d2b7bec2d7556bbba1afa6ff00f15d868cdf | [] | no_license | ChrisMattSam/once | 69c2482b3231617a105e0ad38e68f6561eacc64a | 81c5e63c758b4ad1544bba949239e7b6177c3e7b | refs/heads/master | 2021-02-09T02:09:22.336269 | 2020-03-31T21:44:29 | 2020-03-31T21:44:29 | 244,226,999 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,551 | r | generate_synth_data.R | 'author: Christopher Matthew Sampah'
'date: 20190628'
rm(list = ls())
gc()
library(data.table)
library(plyr)
library(nnet)
library(ggplot2)
library(MASS)
library(lattice)
library(synthpop)
library(tictoc)
dir <- '//Pii_baboon/f/csampah/temp task'
set.seed(8)
tic('Read-in datasets to be synthesized and necessary fun... |
d762cfdeaab1f222775a29381591de906b1ab9d8 | 4f7d405a0f58a965f5d3e7c03429020d377805c9 | /R/getLocationsInRange.R | 06cbf3037beac58f76942a2a07d8bfd1c57e88be | [] | no_license | AFIT-R/instaExtract | 7fa8e8c3441f5da5ce8d327ede36b3fb56d49188 | 360c22eecc78693dccde44846ccad6b72b16637d | refs/heads/master | 2021-09-09T11:10:48.115188 | 2018-03-15T13:11:32 | 2018-03-15T13:11:32 | 112,007,664 | 0 | 3 | null | 2018-03-15T13:04:40 | 2017-11-25T13:59:16 | HTML | UTF-8 | R | false | false | 1,715 | r | getLocationsInRange.R | #'@title Get Current Top Media By Location ID
#'
#'@description Gets the top 9 media posts for a location with the given location ID.
#'
#'@param mapping A location mapping in the form generated by createLocationMapping
#'@param r Radius of search from give coordinates
#'@param lat Double for latitude of sear... |
f4a00ee79983b144623d28cd303a2fffb20efce9 | a623ec4bece7f0a3de574b22cd1a78cea185754d | /coRps_ggplot_week_3.R | ace3324ea39e39079cea5cd59df97468721abbf5 | [] | no_license | cadelson/coRps | 53198a87513e9dbc4f88f2517f0f29edba120101 | 207eb9011c0d702a53cca753a84a00c4d0aa940b | refs/heads/master | 2021-03-26T20:14:54.829418 | 2020-09-18T12:47:45 | 2020-09-18T12:47:45 | 247,746,072 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,088 | r | coRps_ggplot_week_3.R | ---
title: "ggplot Exercises | 2020-04-13"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Overivew
#Below are three questions to work on to test our ggplot skills.
## Setup
```{r}
#Dependencies
library(tidyverse)
library(scales)
#import dat... |
09c4cc5c968ac29590ebd66646b22fd1f9735018 | 2e82eecaecb360e88e883d7841ba53bf856f1e43 | /Workout03/binomial/man/bin_cumulative.Rd | 753a754bc8bd0664a9606b7aece85a77f5884c9c | [] | no_license | stat133-sp19/hw-stat133-devnavani | 055c02c63ae361bb31a68f97d5f8db4aab95d3c5 | a3143c9141220c58093bdbf5bbe33afe6560b961 | refs/heads/master | 2020-04-28T14:48:33.757350 | 2019-05-04T00:56:41 | 2019-05-04T00:56:41 | 175,349,885 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 602 | rd | bin_cumulative.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bin.R
\name{bin_cumulative}
\alias{bin_cumulative}
\title{binominal cumulative}
\usage{
bin_cumulative(trials, prob)
}
\arguments{
\item{trials}{how many trials}
\item{prob}{probability of a success in any given trial}
}
\value{... |
f5f9f7a1efe49fa19eb5449d79022a1582e39e29 | b19d7f066a66952895c841155bcbe48ecdb5b3dc | /man/count_pct.Rd | da1885e2e5cfcb9868d441f08eba34620cac6683 | [] | no_license | cran/explore | 25628e71e0c7776ae6ce9c3819adc54e7bed7143 | 81bc7ac49636fd32db44981a030726b13ec96b71 | refs/heads/master | 2023-01-22T10:53:46.173589 | 2023-01-14T10:10:02 | 2023-01-14T10:10:02 | 236,595,126 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 434 | rd | count_pct.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{count_pct}
\alias{count_pct}
\title{Adds percentage to dplyr::count()}
\usage{
count_pct(data, ...)
}
\arguments{
\item{data}{A dataset}
\item{...}{Other parameters passed to count()}
}
\value{
Dataset
}
\descri... |
067181d5be1d53f6e42c32e2828b1e86bc7fd011 | fbb3e87f431c24fd0a503c974642107a16239d27 | /run_analysis.R | f54db02dcc29da5c1c10b93f941cb9b77aad977a | [] | no_license | asrulnb/Getting-and-Cleaning-Data-Assignment | e8436070d1add8a0a6a12c7d0d74d81de63faf9e | d48ac5776130b1cd69588d9729f67403c1887547 | refs/heads/master | 2021-01-10T19:51:04.458940 | 2015-07-26T17:11:14 | 2015-07-26T17:11:14 | 39,679,314 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,899 | r | run_analysis.R | ###[ Initializing Library ]
rm(list = ls())
library(dplyr)
library(data.table)
###[ Set working Directory to where the R source file is ]
this.dir <- dirname(parent.frame(2)$ofile)
setwd(this.dir)
# < Part 1 : Merges the training and the test sets to create one data set >
###[ Reading Training Data ]
subject.tra... |
d86c88f2ce4f15b9b4b91d151a348a87a947dd17 | 29585dff702209dd446c0ab52ceea046c58e384e | /PAWL/R/tuningclass.R | 021a801fe56fe026046593c4577dfc1fc1e910bf | [] | 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,187 | r | tuningclass.R | ###################################################
# This file is part of RPAWL.
#
# RPAWL is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option)... |
19f5a7a4f973e540157c0c7651be7ecb3d6eeb6f | b67bef2e6295b68a6ba404e78505258a1ac2f95f | /man/kr.Rd | b0616f809a3220ff58f1e7333ce7a3dc63052aa8 | [] | no_license | cran/MGLM | beda91fe76a43884434647620d2bf4aebedc1a59 | e0b8d5d6dec9b3b0dcc74514b0b68438276513d4 | refs/heads/master | 2022-05-01T07:22:15.450258 | 2022-04-13T22:32:32 | 2022-04-13T22:32:32 | 17,680,602 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,315 | rd | kr.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kr.R
\name{kr}
\alias{kr}
\title{Khatri-Rao product of two matrices}
\usage{
kr(A, B, w, byrow = TRUE)
}
\arguments{
\item{A, B}{matrices. The two matrices \code{A} and \code{B} should have the same number of columns.
We also give the user an... |
4344bcd6078aa5746b7e203fa5eba75f935b5e72 | 914c515a6c85356ee148950f5d93be59ee112b4c | /R/regression_ladlasso.R | 10d3ceddd1ccf171443f8899788b1d165789055a | [] | no_license | Mufabo/Rrobustsp | 917fb8e9a353ffc7a838544fa5cd1d39eae34f6c | 1700f4fed27e63cec6dfb67a14a208d8f46e2418 | refs/heads/master | 2022-06-14T22:15:50.045970 | 2022-06-05T12:13:32 | 2022-06-05T12:13:32 | 222,286,547 | 0 | 3 | null | 2019-12-19T14:17:46 | 2019-11-17T17:36:00 | R | UTF-8 | R | false | false | 3,706 | r | regression_ladlasso.R | #' ladlasso
#'
#' ladlasso computes the LAD-Lasso regression estimates for given complex-
#' or real-valued data. If number of predictors, p, is larger than one,
#' then IRWLS algorithm is used, otherwise a weighted median algorithm
#' (N > 200) or elemental fits (N<200).
#'
#' @param y numeric response N x 1 vector (... |
90cfac2d9126d1168684a1d25463829ed3cc468b | af2f37fac72adaa0ae72ebe5789cddc1161d5951 | /man/condrmaxlin.Rd | ba238d50fbd810a684a5e7c17dcf5855e33da04d | [] | no_license | cran/SpatialExtremes | 80d254ea37ac153710b0576e6d35e73a29ba93ab | 9df4b8e6d8eb7042621d46fba6125dbf4f35787b | refs/heads/master | 2022-05-04T17:37:03.474880 | 2022-04-19T09:22:42 | 2022-04-19T09:22:42 | 17,693,743 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,997 | rd | condrmaxlin.Rd | \name{condrmaxlin}
\alias{condrmaxlin}
\title{
Conditional simulation of max-linear random fields
}
\description{
This function generates (approximate) conditional simulation of unit
Frechet max-linear random fields. It can be used to get approximate
conditional simulation for max-stable processes.
}
\usage{
co... |
cd278c9b9d43bf1cab091795337952a7b47495a9 | b9462761c08a291964c512d73d059186d196010d | /Week1 Assignment.R | a6a21d971719ffb09df84748bdcf096dfdaabede | [] | no_license | blin261/Notebooks | 7401b0ba71f44f3537db610b30e2f3bf99df3a20 | 9be5405c2ede1bb033189c08cb2ffe3cd65a2ed3 | refs/heads/master | 2020-05-22T03:59:18.554572 | 2016-12-17T03:00:06 | 2016-12-17T03:00:06 | 63,370,523 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 658 | r | Week1 Assignment.R | #Question1
result<-1
for (i in 1:12)
{
result=result*i
}
print (result)
#Question2
nvect<-(20:50)
nvect<-nvect[nvect%%5==0]
nvect
#Question3
quadraticEquation<-function(a,b,c)
{
if(b^2-4*a*c<0)
{
x1<-complex (real=-1*b/(2*a), imaginary=sqrt(abs(b^2-(4*a*c)))/(2*a))
x2<-c... |
3b2c9fd5eede60820cf7d39ef31bfa0652959f7f | ea1191378907a7857c86b8628a5720074ae8bd7e | /UVAapp_v0.2/ui/ui_intro.R | b0b3ed99e58b19a79d71d8dd96c01417ac3b6fe0 | [] | no_license | simongonzalez/uva | cc10e0badaa97f6bf75aabd9045d8ea16ecbeb11 | 5458c0935ce0ed5830a7e6305735a4d85ff95e76 | refs/heads/master | 2022-12-03T04:10:16.986146 | 2022-11-23T00:44:20 | 2022-11-23T00:44:20 | 211,875,233 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,339 | r | ui_intro.R | tabPanel("UVA",
h2(style="text-align:center", 'Welcome'),
tags$hr(),
HTML('<center><img src="uva.png" height = 300 width="600"></center>'),
div(style="text-align:center",
h1('Ultrasound Visualization & Analysis'),
h4('Visualise and analyse tongue contours fo... |
06c0b7e0caccba448219bb292fe56197883d517a | 98c40fe72bfe9caafc3db5ca0a2c0944cad33988 | /tests/testthat/test-encrypt.R | fc0971f3438536b0bc672133407b817a6afafa6d | [] | no_license | datawookie/emayili | c91d38dc5bf0fc38cff45260dc0ba99bce7e754f | cb0f2f7e6c8738a30ddd88834abd88b63585244c | refs/heads/master | 2023-09-01T00:02:36.105432 | 2023-08-30T10:49:01 | 2023-08-30T10:49:01 | 187,310,940 | 158 | 41 | null | 2023-08-03T06:52:34 | 2019-05-18T03:45:55 | R | UTF-8 | R | false | false | 4,631 | r | test-encrypt.R | skip_if_not_installed("gpg")
library(gpg)
# - If running locally then use random home directory for keyring.
# - Don't do this on CI because GPG doesn't work on macOS with non-default
# home folder.
#
if (Sys.getenv("CI") == "") {
message("Use random home folder for GPG.")
gpg_restart(home = tempdir(), silent =... |
f9fc0c5d5ddcd56c4084f6932a6ea06ebd516466 | 24fcc7a9446871f5affbc82d3ae1ed20d6a7c8aa | /man/set_smc.Rd | 95004a51323197e0a78f9b8dce9e8ff7f676eeaa | [
"MIT"
] | permissive | mrc-ide/malariasimulation | 3188657f6ff9da4ea35646189d0bd75d6e35aa52 | 397a7b7efe90958dd01f97110a1d16c71d041f33 | refs/heads/master | 2023-08-23T11:29:10.050424 | 2023-07-03T15:58:32 | 2023-07-03T15:58:32 | 233,609,741 | 10 | 10 | NOASSERTION | 2023-08-17T15:48:41 | 2020-01-13T14:06:17 | R | UTF-8 | R | false | true | 816 | rd | set_smc.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mda_parameters.R
\name{set_smc}
\alias{set_smc}
\title{Parameterise a Seasonal Malaria Chemoprevention}
\usage{
set_smc(parameters, drug, timesteps, coverages, min_ages, max_ages)
}
\arguments{
\item{parameters}{a list of parameters to modify... |
32ba3d7a7668f0a618983ae38157b0370df33053 | 05945974b558cdddc0bd1207345c5260f5ce967f | /run_analysis.R | 8f952e8b8a66bd649860dfdb8b58c58a15be1401 | [] | no_license | josephyyw00/GCD-Course-Project | 59ad754ed93fe5210ed3fd14fad78b758c95583d | b22c615a0285676f0b70c63dc6f61b02823a35a8 | refs/heads/master | 2021-04-07T17:39:05.841472 | 2020-03-30T03:43:34 | 2020-03-30T03:43:34 | 248,694,251 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,683 | r | run_analysis.R | library(reshape2)
#Read activity_labels.txt
dsActivityLabel <- read.table("./UCI HAR Dataset/activity_labels.txt")
#Read features.txt
dsFeatures <- read.table("./UCI HAR Dataset/features.txt")
#Read Xtest datasets
dsXTest <- read.table("./UCI HAR Dataset/test/X_test.txt")
dsYTest <- read.table("./UCI HAR... |
6f81899b565db547267b9e3548fe9afcd0c945b4 | cb7db765f1bf3d4e621af5e98d1c841581ad0aed | /R/spore-package.R | b0d1b1d6d93ee4d5a10a98c68d699d4fd1f2526f | [] | no_license | noamross/spore | 839c6dfff5bb3de77ee8e25b812a8cede109509f | f44888ffae861104c20de4ed35dd5d8d1b16366c | refs/heads/master | 2021-01-01T19:47:17.817307 | 2015-08-18T04:59:06 | 2015-08-18T04:59:06 | 27,852,035 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 94 | r | spore-package.R | #' @useDynLib spore
#' @importFrom Rcpp sourceCpp
#' @import RcppArmadillo
#' @import BH
NULL
|
03a8ff7651851e637b9587dd5b9f01a14bf99108 | 535cb08d66f59ac8e82794077590200f0b0d4b22 | /R/cent.R | 88b08d602d9b17acf5125bc1569ea2cc86fc1a97 | [] | no_license | cran/Omisc | 0706995957a1b7926575d78863e7169ed0d94510 | ed7e4cbb5d554d639ebf0e69f920ee8c1ce63221 | refs/heads/master | 2022-08-30T17:37:12.518418 | 2022-08-09T13:10:02 | 2022-08-09T13:10:02 | 152,997,312 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 195 | r | cent.R | #' cent
#'
#' @param X vector to be centered
#'
#' @return Returns a centered vector
#' @export
#'
#' @examples X<-c(1:10)
#' cent(X)
cent<-function(X){
X<-X-mean(X)
return(X)
}
|
54d2264d3965d5f5f606af1c2e15d26f9c94ca3d | f8eb55c15aec611480ede47d4e15e5a6e472b4fa | /analysis/_jkb/0018_dow_lower_price.R | 5fadc18acd84b8b5ca2988a85018ef86cbbd3e6f | [] | no_license | nmaggiulli/of-dollars-and-data | a4fa71d6a21ce5dc346f7558179080b8e459aaca | ae2501dfc0b72d292314c179c83d18d6d4a66ec3 | refs/heads/master | 2023-08-17T03:39:03.133003 | 2023-08-11T02:08:32 | 2023-08-11T02:08:32 | 77,659,168 | 397 | 32 | null | null | null | null | UTF-8 | R | false | false | 1,492 | r | 0018_dow_lower_price.R | cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(scales... |
2aee8dadaa9955f43ade997a416aa02de7fe680e | 277dbb992966a549176e2b7f526715574b421440 | /R_training/실습제출/신승현/1029/movie1.R | 611611c92484407e43377d0a309893d9228e3bdc | [] | no_license | BaeYS-marketing/R | 58bc7f448d7486510218035a3e09d1dd562bca4b | 03b500cb428eded36d7c65bd8b2ee3437a7f5ef1 | refs/heads/master | 2020-12-11T04:30:28.034460 | 2020-01-17T08:47:38 | 2020-01-17T08:47:38 | 227,819,378 | 0 | 0 | null | 2019-12-13T12:06:33 | 2019-12-13T10:56:18 | C++ | UTF-8 | R | false | false | 488 | r | movie1.R | url <- "https://movie.daum.net/moviedb/grade?movieId=125080&type=netizen"
text <- read_html(url, encording="CP949")
text
nodes <- read_html(text, "em.emph_grade")
nodes <- read_html(text, "p.desc_review")
html_text(nodes)
review <- html_text(nodes, trim=TRUE); review
review <-gsub("\t", "", review)
review <-gsub("\r\n... |
fef12087dc5692c55cab1d9c9e42d919e1a6e2f1 | 7d90861940bf91667dbfbe19669261f5c76dfd70 | /man/run_abimo_command_line.Rd | 8a4d37f689f18df33fe231bd40a97e4c4dd5873a | [
"MIT"
] | permissive | KWB-R/kwb.abimo | 4dbda8cf9e8a0770ea5a4c362c461d159b4c0c84 | 526d5a5f56eda577bd1e5f019282f8ee7c60fe05 | refs/heads/master | 2023-09-03T15:10:55.202853 | 2022-06-23T11:40:28 | 2022-06-23T11:40:28 | 348,737,659 | 0 | 1 | MIT | 2023-09-02T12:14:17 | 2021-03-17T14:21:55 | R | UTF-8 | R | false | true | 565 | rd | run_abimo_command_line.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_abimo.R
\name{run_abimo_command_line}
\alias{run_abimo_command_line}
\title{Run Abimo on the Command Line}
\usage{
run_abimo_command_line(args, tag = "v3.3.0")
}
\arguments{
\item{args}{vector of arguments to be passed to Abimo}
\item{ta... |
4cd9e30bef584518c659c0089837cca658928dfc | bd7207c29baca3175933c183a23bcca395d57d92 | /R/margins.R | b57bb5f190f22234f578d9ebbd8eac449a7e86db | [] | no_license | datalab-dev/GetDocElements | 89ca5cb17d725202315e86f02b01134f5368e5af | 8e656e27ccb68070693dead7d3789e34391ebe92 | refs/heads/master | 2022-01-19T19:59:17.125643 | 2019-07-07T19:42:16 | 2019-07-07T19:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,267 | r | margins.R | margins =
# XXX Deal with rotation when the text is actually rotated.
# Specifying @rotation = 0 for case when there is a rotate line of text identifying how
# the document was retrieved, e.g. downloaded by UC Davis.....
#XXX should we extend this to get top and bottom.
#XXX and deal with a set of ... |
ddb3cc8de5fa84d3c87b2439327c47b6322eab15 | 90f01699b697ed9ad7746f483ce537b70fe8f75b | /datascience_course/上課程式碼/week_2/loadData.R | 83e31f7ec7292bc63025a002e658f9f7e1df2fe3 | [] | no_license | bill0812/course_study | ca581499c13ff88587e1ffdb099fec5ddc36abfa | 7c964cae8e42cb47597673ea60b54d7e707b396b | refs/heads/master | 2021-02-08T01:31:28.093497 | 2020-05-13T13:47:54 | 2020-05-13T13:47:54 | 244,093,750 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 230 | r | loadData.R | uciCar <- read.table( # Note: 1
'http://www.win-vector.com/dfiles/car.data.csv', # Note: 2
sep=',', # Note: 3
header=T # Note: 4
)
# Always Exploring your data first
class(uciCar)
summary(uciCar)
dim(uciCar)
|
f4a6fbe4c5d0f25a7f76b0758ac84e6e36889b07 | 35093296dd3fc9d3e392967cef4ae8930d6bd0ae | /R/IFPCA.R | 085401095725e1a6d5c64d945e765e1d0288e572 | [] | no_license | celehs/IFPCA | 27a4c1b98d1cc7713f71f71bbcdbb6ca1e1cc3ae | dee0a813e37da605b1e98ed7006e67d504f6879a | refs/heads/master | 2023-02-02T18:01:03.227356 | 2020-12-14T14:30:42 | 2020-12-14T14:30:42 | 289,030,885 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,648 | r | IFPCA.R | #' @importFrom utils head
#' @importFrom graphics hist
#' @importFrom stats IQR approx bw.SJ bw.bcv bw.nrd bw.nrd0 bw.ucv density dnorm optimize
NULL
VTM <- function(vc, dm) matrix(vc, ncol = length(vc), nrow = dm, byrow = TRUE)
GetPK <- function(id, t, tseq, fu) {
id = as.character(id)
PK <- rep(NA, length(fu))
... |
8c3e90f019f12d776947cd0cdb1fa6a06ac574e1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/geozoning/examples/searchNODcrit1.Rd.R | f99281780c019c6b600d32b01590fed66b772bc5 | [] | 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 | 291 | r | searchNODcrit1.Rd.R | library(geozoning)
### Name: searchNODcrit1
### Title: searchNODcrit1
### Aliases: searchNODcrit1
### ** Examples
data(mapTest)
qProb=c(0.1,0.2,0.4);criti=correctionTree(qProb,mapTest) # 2 zonings at last level
res=searchNODcrit1(qProb,criti)# best one is frist element of last level
|
9370c33b8b50948d5012d1c36d8c685988fb3fc1 | 80a2a1366bb284db761c908a7c61581e96c03fe7 | /R/title.R | b29665005392526ec509052ec6ca93e4d36da312 | [
"LicenseRef-scancode-warranty-disclaimer",
"CC0-1.0",
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | USGS-R/gsplot | cfe3816af99d43821fd8f8a31ea123cf269dd2b2 | 4e6adae6ac53decc4e26d59165c44dfc41c26548 | refs/heads/main | 2023-04-13T04:55:29.029629 | 2023-04-08T13:03:13 | 2023-04-08T13:03:13 | 37,219,882 | 5 | 20 | CC0-1.0 | 2023-04-07T23:12:03 | 2015-06-10T20:08:10 | R | UTF-8 | R | false | false | 1,663 | r | title.R | #' gsplot title
#'
#' Adds a title to the plot. See \code{\link[graphics]{title}} for more details.
#'
#' @details Additional graphical parameter inputs:
#' \itemize{
#' \item{\code{main}} {character string that goes above the plot}
#' \item{\code{sub}} {character string that goes below the plot}
#' \item{\code{co... |
9b089a8e55bbbf9f537ceb31cce709006816e475 | 3d926948a26a7152d08256b2b6c9a325ef225ace | /Course 3/C3S3Assessment.R | 221e822bab68926dba9fcb969f1a7afc89d1d859 | [] | no_license | ConnorBruce/HarvardxDataScienceCertificate | 0b2a5fe26e683aea7e8070582c8ba1646d39c2f4 | 692bea94eb8cb0e9c1d5582f483eda0eeaacd211 | refs/heads/master | 2023-06-11T17:02:26.665645 | 2021-07-08T16:30:30 | 2021-07-08T16:30:30 | 379,970,786 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 514 | r | C3S3Assessment.R | avg = .2*1-.8*.25
sd = 1.25*sqrt(.2*.8)*sqrt(44)
1-pnorm(8,avg, sd)
set.seed(21)
S = replicate(10000, {
guess = sample(c(1,-.25),44,prob = c(.2,.8),replace = T)
sum(guess)
})
mean(S>8)
.25*44
sqrt(44)*1*sqrt(.25*.75)
p=seq(.25,.95,.05)
avg2 = p*44
sd2 = sqrt(44)*sqrt(p*(1-p))
data.frame(p,100*(1-pnorm(35,avg2,sd... |
3dac513c84b75d883834773b73d88c02a92025dd | a9178519e4577716b3d1f46fb89776825ecf468d | /analysis/parliamentary-secretary.R | 59edd5d97fe23a2ecc993d2f42a8487b1fd92350 | [] | no_license | lchski/parliamentarians-analysis | c8fca90481a7bd11e4561d265c99b751ba315b51 | 95ce1e314436092b753d6ebbc9217e1412887097 | refs/heads/master | 2021-06-21T21:07:51.805505 | 2020-11-28T20:42:24 | 2020-11-28T20:42:24 | 140,504,009 | 1 | 0 | null | 2020-10-01T23:56:03 | 2018-07-11T01:08:38 | R | UTF-8 | R | false | false | 2,805 | r | parliamentary-secretary.R | roles %>%
filter(GroupingTitleEn %in% c(NA, "House of Commons Roles"))%>%
filter(str_detect(NameEn, "Parliamentary Secretary|Parliamentary Assistant")) %>%
count_group()
View()
## Find the secretaries
## Could also do `ministers %>% filter(str_detect(NameEn, "Parliamentary Secretary|Parliamentary Assistant"... |
290502ac8a544fc335cd592edca36ac12418bf61 | 67a6f1af8a7e28e3e64f123ce48fff3017364094 | /R/mirnaEnrichment.R | c99637153eeb8437ed1ab3a1ceede7d59c9ec1a7 | [] | no_license | tastanlab/NoRCE | 3257f0af8da9cbff2152313edc9df9e3b2b4dd1c | e8779cec9bdece0e71a8f85389259a8d1714465f | refs/heads/master | 2020-05-28T14:17:11.643250 | 2019-05-26T12:11:24 | 2019-05-26T12:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 45,736 | r | mirnaEnrichment.R | op <- options(warn = (-1))
options(readr.num_columns = 0)
#' GO term enrichments of the microRNA genes with mRNAs that fall in the given upstream/downstream regions of the microRNA genes
#'
#' @param gene Input microRNA gene. It supports both pre-miRNA and mature miRNA, however, when target prediction is performed(tar... |
a042c6fb276596dd45d3868d7a5167032fff8f48 | 2e00cb2b8561865fee56455ec46037287bc62495 | /test.R | 6dcd819a828f12497701f83698201b04b55aaac6 | [] | no_license | shivamg13/DynamicWindow | e2ddf5c771b89c6edc08501607d5cbdd97d60653 | a88d640014a62c6e55c8fc1930d08a1355a1705d | refs/heads/master | 2021-01-21T13:18:26.452205 | 2016-04-27T14:18:22 | 2016-04-27T14:18:22 | 54,929,839 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,208 | r | test.R | library(stats)
getDemand <- function(N,p,b,i){
if(b==0)
print("Error! b cant't be 0.")
return (N*(1-p/b)+RandUni[i])
}
getRegret <- function(T,N,P,b,PP){
#PP: Price Pulled
RegVec=rep(0,T)
for(i in 1:T){
if(i!=1)
RegVec[i]=RegVec[i-1]+ max(P*N*(1-P/b[i]))-(PP[i]*N*(1-PP... |
003cb59b13ddc42f4a8d74c1a7a3c42f252f82de | c5b0584a453517869b6c03166bb7d3b2729866fc | /man/dataextr.time.Rd | 273da117799a986b21ab8ed35b0ac8ec8ecc5943 | [
"MIT"
] | permissive | nealhaddaway/predicter | 9fed1ff27e0b4636df7bdf5373ef95dba144727a | 14b168f28f2378e4dd3e4a913f4d31b742460bf3 | refs/heads/master | 2022-09-26T08:52:22.056061 | 2022-07-29T11:56:19 | 2022-07-29T11:56:19 | 192,175,432 | 11 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,085 | rd | dataextr.time.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataextr.time.R
\name{dataextr.time}
\alias{dataextr.time}
\title{Time needed to extract full data from all included records}
\usage{
dataextr.time(ca.number = 76.12213, dextraction.day = 6.9,
dextraction.checked = 0)
}
\description{
This f... |
c4646f9e413c60f55f60af54a21dd9678de2bbd6 | f995416a8fad3e9089e66bad8c8bcea30209fbaa | /tokenize.R | a7314c1c8de21a50142fb5965b644d9b35bc193f | [
"CC0-1.0"
] | permissive | bschousek/dss_capstone | bb8f7e4728cc0a79b3118825c2cc361e997e1ef4 | 27d52f1bc6066f7d9b2865c3c26df2e953b097f4 | refs/heads/master | 2016-09-06T20:01:02.867761 | 2015-07-18T03:29:39 | 2015-07-18T03:29:39 | 39,259,550 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 688 | r | tokenize.R | pathname='~/coursera/data/split'
filename='en_US.train1.txt'
wd=getwd()
setwd(pathname)
if (!file.exists('wordlist.txt')) {
print('wow')
system2(file.path(wd,'proctext.sh'),paste(pathname,filename,sep=" "))
}
#fix proctest for spaces
wordlist=read.table('wordlist.txt',header=F,colClasses = c('integer','character'... |
7b0236eafe9d8db29ad6225af97a363288150fa2 | b38d44a88c1406384a4d3cde3e07353578bd7ccc | /R/plotit.R | 4afe5669d2f76b94a860c12bc77428a33d01481f | [] | no_license | danno11/SMVCIR | e35dc5e644119c450c95620e31ef9d8a398a50ec | 6d5d61129c3bcbec7de74cf1da92f2727ba7477e | refs/heads/master | 2021-01-21T04:41:20.944765 | 2016-07-18T21:55:37 | 2016-07-18T21:55:37 | 55,713,558 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,065 | r | plotit.R | plotit<-function (x, dimensions = c(1, 2), groups = 1:10, GL = FALSE,
ID = FALSE, build_svm = FALSE, kernel = NULL, svmModel, method = "SMVCIR")
{
if(class(x)=="smvcir"){
groupnum<-x$groups
groupcol<-ncol(x$direct)
compcases<-x$compcases
datmat<-x<-x$direct ####add x double assignment
... |
eaf9044f4c80640f002dd831fa1ddfebd4baaf73 | 6b286ff42ae9135bcaeb1d8d537460f532ebab45 | /man/dynBGBvariance-methods.Rd | a75a6a16efe87627448ab8eadc254fba274d4859 | [] | no_license | cran/move | 6864db092eba41580170d4a09c5124758986b3ea | 559c7a0ff40bd070373b82b43b880a862d4a33e2 | refs/heads/master | 2023-07-21T16:48:30.636533 | 2023-07-06T22:10:02 | 2023-07-06T22:10:02 | 17,697,651 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,031 | rd | dynBGBvariance-methods.Rd | \name{dynBGBvariance}
\alias{dynBGBvariance}
\alias{dynBGBvariance,.MoveTrackSingle,numeric,numeric,numeric-method}
\docType{methods}
\title{Calculates the Bivariate Gaussian Bridge motion variance}
\description{A function to calculate the dynamic Bivariate Gaussian Bridge orthogonal and parallel variance for a movem... |
dc32525a100314d9f2f7c9f63b55832cc36b3f0c | 59cc9ac7cbd4d2e903d27841a0dd67c8588b12de | /man/extract_shots.Rd | 22935f2c92782ec216972b7f5ba7b76dab80cb89 | [] | no_license | imadmali/NBAsportvu | aa792709e56ba193a5e92a319ff50fddc98a26a5 | 8575cc9bb52f552e5c3ecac4465c5b7455787ce3 | refs/heads/master | 2021-07-13T07:52:32.513932 | 2017-10-11T06:28:29 | 2017-10-11T06:28:29 | 106,061,914 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 822 | rd | extract_shots.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_shots.R
\name{extract_shots}
\alias{extract_shots}
\title{Extract Shots from SportVU Data}
\usage{
extract_shots(obj, pbp, margin = c(3, 3))
}
\arguments{
\item{obj}{A data frame returned from \code{\link[NBAsportvu]{sportvu_df}}.}
\... |
c549f548639acea49e2be54e31a4744d909ef708 | f64974370c08f6bf7f5856cbd1c086b24257304f | /R Code/Creating corridor weight layer_AW.R | 0a6acbd05d708cdc8d55b0131698433afe038504 | [] | no_license | nzwormgirl/RSP | 73b7c746a36205d99e45b900e955de425ada3ac8 | 8adc616bad7937da689c7409d1212955d09d274d | refs/heads/master | 2021-01-23T13:17:33.934321 | 2015-05-20T10:46:40 | 2015-05-20T10:46:40 | 8,638,618 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,237 | r | Creating corridor weight layer_AW.R | rm(list=ls())
library(raster)
library(rgdal)
library(maptools)
computer <- "//654cw-20990/Amy"
LH.zonation.dir <- paste0(computer,"/GIS_data/Hunter/zonation/corridor/")
# import region mask for LHSA
LH.mask <- raster(paste0(computer,"/GIS_data/Hunter/mask files/LH.mask.tif"))
LH.mask[!is.na(LH.mask)] <- 0
# LHSA ur... |
85ae2874cd30b217c29b63ef9cf19adda57142bd | 587008b3a4dcafb2c9cc2f83033c6b3bbdb9a6e5 | /dataset/nba_stats.R | 9a0492f85d109cf8fe9c82d66870aed2563937e6 | [] | no_license | matisdpz/programmation-r | 5ca5d0b1543b7f91cb50fa65dafeb64c0bc9b715 | e15d58a0f180b67c93b6fa363fa31dfc6f96c06a | refs/heads/master | 2023-05-30T21:04:23.270204 | 2021-06-07T12:07:55 | 2021-06-07T12:07:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,395 | r | nba_stats.R |
#Etude statistique sur les tirs tentés sur la saison 2014-2015
df <- read.csv(file = "nba.csv", sep = ";",
header = FALSE, dec = ";")
> nrow(nba)
> ncol(nba)
> colname(df)
> srt(df)
> df$Period <- as.factor(df$Period)
> df$PTSTYPE -> as.factor(df$PTSTYPE)
> as.factor(df$SHOOTER)
> lenght(level(df$Perio... |
503eea4d4c1d641f83512fa02d67737b13df0ab1 | a3b4006dd6b77ff0818c751d9c6ae6d32c8a0377 | /tests/testthat/test-xml-namespaces.R | a5bbb4800a8c131c78768f56958732885109b7e5 | [
"BSD-2-Clause",
"MIT"
] | permissive | tidyverse/readxl | 98a61dbb111848100783d5c977becee6cf3cd749 | 3aa8c2ddf9f1d8921f2a8b42ae0bdfa69a22ed9b | refs/heads/main | 2023-07-20T16:12:41.510109 | 2023-07-07T02:58:27 | 2023-07-07T02:58:27 | 32,161,666 | 432 | 130 | NOASSERTION | 2023-02-08T23:07:26 | 2015-03-13T14:50:20 | C++ | UTF-8 | R | false | false | 757 | r | test-xml-namespaces.R | ## #268, #202, #80
## what is special about nonstandard-xml-ns-prefix.xlsx?
## note `ns:id="rId3"` vs `r:id="rId3"`
## `ns:id` has been seen in xlsx written by 3rd party tools
## `r:id` is typical of files written by Excel
# <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
# <bookViews>
# ... |
85c39804e80aec3ca4e0880173ed6ececa28fadc | f80be39f96264e74ea19de9ceac7921804c24c26 | /R/copulaWrappers.R | 69ecbb5b75cc9b0ab56ed2557bd84072e105ef65 | [] | no_license | DianaCarrera/VinecopulaedasExtra | f0f8f0d43d6da4e4ca9e695661a140a0573a26f4 | 85913df8feb314eeaa89c874fb2df91b6468b7da | refs/heads/master | 2021-04-29T22:12:21.124752 | 2018-02-19T16:17:05 | 2018-02-19T16:17:05 | 121,633,160 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 437 | r | copulaWrappers.R | dNormalCopulaWrapper <- function (u, copula) {
eps <- .Machine$double.eps^0.5
u[u < eps] <- eps
u[u > 1 - eps] <- 1 - eps
copula@parameters <- max(min(copula@parameters, 1-eps), -(1-eps))
copula:::dnormalCopula(u, copula)
}
dMatClaytonWrapper <- function (u, copula, log=FALSE, ...) {
eps <- .M... |
da6cf8f95c1912abcc06f0d218e510c445783be4 | bd8a7c215d851e6b3c44165baec15e3f13efb665 | /man/es_file_present.Rd | f87a06f92dd2329ad021390be1da206b4247d536 | [] | no_license | mYstar/easyshiny | dfe36d11f97d390cb3e7e5548f64d6939b9de36a | 9987d571a65ecdb6004cfa112ad80f027694b0fd | refs/heads/master | 2020-04-12T15:02:55.283045 | 2019-06-19T08:19:46 | 2019-06-19T08:19:46 | 162,569,346 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 518 | rd | es_file_present.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/es_filechecks.R
\name{es_file_present}
\alias{es_file_present}
\title{Check for File}
\usage{
es_file_present(filesets, setnumber, filename)
}
\arguments{
\item{filesets}{the fileset to search in}
\item{setnumber}{the number of the set to se... |
471f684cc54074690a11fd673a9f988863ae4011 | 4a00f3e59dfbebff23885165097e2946b891fb6e | /tests/testthat/test_rob_summary.R | 770a81fd8b9b01adfe3a3b491b23ef7b6272440b | [
"MIT"
] | permissive | rdboyes/robvis | bcd5b423574698b46a740f608f7b6f852e5583fc | c7d672cf56fec1953c2bba395baa414562f04834 | refs/heads/master | 2023-03-03T23:48:21.601915 | 2021-02-17T20:58:41 | 2021-02-17T20:58:41 | 309,497,302 | 0 | 1 | NOASSERTION | 2021-01-27T22:05:12 | 2020-11-02T21:16:53 | R | UTF-8 | R | false | false | 3,312 | r | test_rob_summary.R | context("Check summary plots")
test_that("ROB - Summary", {
vdiffr::expect_doppelganger("ROB2 - Basic", rob_summary(data_rob2, "ROB2"))
vdiffr::expect_doppelganger("ROB2 - Overall", rob_summary(data_rob2[1:6], "ROB2", overall = FALSE))
vdiffr::expect_doppelganger("ROB2 - Colour - cochrane", rob_summary(data_rob2... |
91095fe1ee958f61e618fa4cb973c5a0a13e93ed | fb014eedac7b6198cd989cdbda15a44d86182478 | /palouse_climate.R | 92871525b379458fdc2cbcabc29d0f8c1c89b009 | [] | no_license | erichseamon/palouse_climate | c6eeb81813d93590060f36da99f57f86fc2d5fec | 003dc0372ec13238ea13641d01b3022b4128e9e7 | refs/heads/master | 2020-03-19T00:37:45.593426 | 2018-05-30T20:29:00 | 2018-05-30T20:29:00 | 135,494,125 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,374 | r | palouse_climate.R | library(plyr)
setwd("/dmine/data/USDA/agmesh-scenarios/palouse/summaries")
files <- list.files(pattern = '\\_summary')
tables <- lapply(files, read.csv, header = TRUE)
combined.df <- do.call(rbind , tables)
#2007-2015
combined2.df <- subset(combined.df, year >= 2007 & year <= 2015)
combined2.df <- data.table(combi... |
72a65f0da5f977a0c87a26b4072f1f5b57c597af | bc698e4121e87ed44191ccc2b4dd49651d04c294 | /VTR.R | 2c6fa1bf7a634642177bcfcf3fb4a5e2632197db | [] | no_license | oztalha/2015-11-01-Elections-Turkey | 9cdb91462aaf483f37228ba5b121bd124a1a5595 | ddaf4340ba2a46fe64e0f57860d7822fd6b680f2 | refs/heads/master | 2021-01-10T05:22:08.172119 | 2015-11-19T06:59:27 | 2015-11-19T06:59:27 | 45,372,055 | 15 | 4 | null | null | null | null | UTF-8 | R | false | false | 4,219 | r | VTR.R | merres<-function(Bb,n,x,t,X,T,p1x,p2x,p1y,p2y){
Bw<-(T-X*Bb)/(1-X)
bb<-(x*t-Bw*x*(1-x)+Bb*(1-x)^2)/(x^2+(1-x)^2)
bb[x==0]<-0
bw<-(t-x*bb)/(1-x)
bw[x==1]<-0
notinbox <- ifelse(bb>=0&bb<=1&bw>=0&bw<=1,FALSE,TRUE)
dp1 <- (Bb-p1x)^2+(Bw-p1y)^2
dp2 <- (Bb-p2x)^2+(Bw-p2y)^2
p12x<-ifelse(dp1<dp2,p1x,p2x)
bb[notinbox] <- p12x[... |
175bc6b31e81a028ffbbeba9c26fa7be11316eb2 | 6a28ba69be875841ddc9e71ca6af5956110efcb2 | /Linear_Algebra_And_Its_Applications_by_David_C._Lay/CH1/EX1.21/Ex1.21.R | 79b528a687834409fc20667a3a9d5326ca8820eb | [] | permissive | FOSSEE/R_TBC_Uploads | 1ea929010b46babb1842b3efe0ed34be0deea3c0 | 8ab94daf80307aee399c246682cb79ccf6e9c282 | refs/heads/master | 2023-04-15T04:36:13.331525 | 2023-03-15T18:39:42 | 2023-03-15T18:39:42 | 212,745,783 | 0 | 3 | MIT | 2019-10-04T06:57:33 | 2019-10-04T05:57:19 | null | UTF-8 | R | false | false | 906 | r | Ex1.21.R | #Chapter 1 - Linear Equations In Linear Algebra
#Linear independence of vectors
#Page No.42 / 1-30
#Prob 1
#1.7.1
#clear console
cat("\014")
#clear variables
rm(list=ls(all=TRUE))
print('given vectors u, v and w are')
uv<-c(5,0,0)
um=matrix(uv,
nrow=1,
ncol=3,
byrow=TRUE)... |
8ad4624457a35c133dbeed392d343b7609f71e66 | dc108bf7f57d87f8d56c9587d382313d4ccf9be0 | /model-files/verification/hwysummary_marinvsmtc_v2.R | 58a8018307775d97d9c7e1ed7587630a9ad8b37c | [] | no_license | BayAreaMetro/travel-model-two | ac7066ab72e4c54c2b575b055259a51183b6a2eb | ced0a27a9a850f9ae59adf030d506c34d4863884 | refs/heads/master | 2023-08-13T22:34:16.576626 | 2023-04-10T18:33:34 | 2023-04-10T18:33:34 | 24,194,131 | 10 | 12 | null | 2023-04-12T22:17:39 | 2014-09-18T15:41:03 | Java | UTF-8 | R | false | false | 13,226 | r | hwysummary_marinvsmtc_v2.R | #Marin vs MTC highway assignment summary script
#Khademul Haque, khademul.haque@rsginc.com, August 2018
# Libraries
library(foreign)
library(dplyr)
library(tidyverse)
library(ggplot2)
## User Inputs
# Directories
WD <- "E:/projects/clients/marin/HighwaySummary"
DataDir_marin <- file.path(WD, "data/assign/marin")
Da... |
0a422ba6d8a6e8ab2579d7697c9a7cba2a4cdb13 | 24101c3cbac3bdaa84ecb9a93ff9c47528169f2f | /07_Metanalysis_depth_effect.R | 50951dc35fecd9a788cc15cf2abe30032082ee71 | [] | no_license | jordipages-repo/seagrass_Cstocks_pub | 4fb5dafd2a7a70769fb15dd53b636c99277c2086 | 7640f03c041770e4e93917d27e60a0bc88d4d626 | refs/heads/main | 2023-04-13T15:39:44.596829 | 2022-10-18T09:25:30 | 2022-10-18T09:25:30 | 446,396,065 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,292 | r | 07_Metanalysis_depth_effect.R | # # # # # #
# Analysing the Forqurean's data set provided by Hilary Kennedy
# Jordi F. Pagès
# 15-10-2019
# University of Barcelona
# # # # # #
# # # # # # # # #
# LIBRARIES ----
# # # # # # # # #
library(tidyverse)
library(tidylog)
library(stringr)
library(forcats)
library(RColorBrewer)
library(metafor)
# # # # #... |
4302044590b2ec0aa595f91cbe874c6f581d443c | 43292259e34c3738d1775d5d55bc0b83f027607c | /material original/Problemas_y_Talleres/problemas_MATIII/inf_gestion_old/prob9.R | c9d9be97114b37ff1fafb619fcca71eae3b02b16 | [] | no_license | fenixin15/curso-estadistica-inferencial | 12543ddac6fe43b41e713753b677d17088a84d2d | f655b56aff2f1ef69cd46301f202c05b258ee93e | refs/heads/master | 2020-08-21T18:42:07.514819 | 2019-10-19T10:58:30 | 2019-10-19T10:58:30 | 216,220,287 | 1 | 0 | null | 2019-10-19T14:36:36 | 2019-10-19T14:36:36 | null | ISO-8859-1 | R | false | false | 1,076 | r | prob9.R | x<- c(4 , 4 , 2 , 10 , 1 , 9 , 5 , 3 , 4 , 5 , 6 , 6 , 7 , 6 , 8 , 7 , 6 , 8 , 7 , 6 , 5 , 4
, 4 , 4 , 5 , 6 , 6 , 7 , 5 , 6 , 6 , 7 , 5 , 6 , 6 , 7 , 5 , 6 , 4 , 3 , 2 , 6 , 6 , 7
, 7 , 8 , 8 , 9 , 8 , 7)
x
table(x)
mean(x)
sd(x)
sort(x)
length(x)
length(x)*20/100
sort(x)[length[x]-length(x)*20/100]
sort(x)... |
82942a664a99ed34a3ec3b0670d89d5950a73fdc | 0299ee5e21a9d468d0c20345621b5c0b1e3ceebf | /Week 2 HW CSDA 5330 Alex Cline.R | 8cb03b009d6588b390da6a9e9aadb74d679e0e1c | [] | no_license | AlexCCline/Apriori | 67a6a0a541f556343f1634e385c7440e6c78e20d | f665c3db77b8a1ef2ac043568b3f1cc18a9bceb3 | refs/heads/master | 2022-11-19T00:02:56.528926 | 2020-07-08T01:57:45 | 2020-07-08T01:57:45 | 277,664,959 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,569 | r | Week 2 HW CSDA 5330 Alex Cline.R | library(arulesViz)
library(plotly)
library(arules)
#CSV
SAMCLUB.df<-read.csv("SAMCLUB.csv")
#3a summary of results
summary(SAMCLUB.df)
SAMCLUB.binary<-as(split(SAMCLUB.df[,2], SAMCLUB.df[,1]), "transactions")
inspect(SAMCLUB.binary)
#SAMCLUB rules
SAMCLUB.rules<- apriori(SAMCLUB.binary, parameter = li... |
4b9bd678ca457f8f07a5b800fc17c1b1d7f97213 | 309c47cad0e7c2f795efe301277869b2bf192cfa | /_resampling/02_resampling_sPlot_within_the_PC1-PC2_environmental_space.R | 7724e071b44e1b5dd5bdfeb698df610f8e8c9d61 | [
"CC-BY-4.0"
] | permissive | sPlotOpen/sPlotOpen_Code | 9d19e0242f2082c1ce47b10fdc4743840861c769 | cf5d2c396c4beeb94064f877a42fa6bef985f983 | refs/heads/master | 2023-02-01T09:59:08.621448 | 2020-12-18T13:01:20 | 2020-12-18T13:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,881 | r | 02_resampling_sPlot_within_the_PC1-PC2_environmental_space.R | #
# 01 February 2017
#
library(spdep)
library(raster)
library(maptools)
library(fBasics)
library(devtools)
library(parallelsugar)
library(colorRamps)
library(Rcpp)
library(bigmemory)
library(RcppArmadillo)
library(RcppParallel)
#
data(wrld_simpl)
#
# Loading the header data from the sPlot database v2.1... |
4962732affecddcfdd6ebc4d93b7a4a1597c57b0 | f1530c8481b0ef3cc06402dacaf42426f16050df | /scripts/EDA.R | a0ef73ca3b6cf5e0a0ae912ddfad35f40145595d | [
"MIT"
] | permissive | hadleyd2/group_09-1 | 4a749dc0751f2a2a4cac03d1e9ca6d5df720eb32 | f486d6669e9b928aa3897618d79b1ee4c2c4045e | refs/heads/master | 2021-02-18T18:50:00.838873 | 2020-04-07T23:58:54 | 2020-04-07T23:58:54 | 245,224,513 | 0 | 1 | MIT | 2020-03-23T16:55:34 | 2020-03-05T17:19:38 | R | UTF-8 | R | false | false | 4,989 | r | EDA.R | # author: Kristina Wright
# date: 2020-03-06
# edited by: Daniel Hadley
# edit date: 2020-03-13
"This script creates price density plots (density vs. listing price per night),
a correllogram (longitude, price, minimum stay, review number, host listings number),
and a violin plot (price vs. district) for exploratory d... |
ef48e46afa7ea85a87ded7c97a4d5171bb757b13 | f349f6b265cda79de039508796618d0747f2250b | /assignment2_example.R | 8a559f8859f38e04a5b9e2880acd617e630a0968 | [] | no_license | tlpgalvao/ProgrammingAssignment2 | 7daeaf22ee3671030bc066e802e915dcf1314c29 | fe3267700d403c431ff915acc85503d2454903fd | refs/heads/master | 2021-05-04T06:56:20.857302 | 2016-10-11T22:27:59 | 2016-10-11T22:27:59 | 70,531,536 | 0 | 0 | null | 2016-10-10T21:46:55 | 2016-10-10T21:46:54 | null | UTF-8 | R | false | false | 1,712 | r | assignment2_example.R | ###
# object x is initialized as a function argument
makeVector <- function(x = numeric()) {
# object m is initialized as an object, within the makeVector()
# environment to be used by later code in the function
m <- NULL
# First, the set function is defined
set <- function(y) {
# The <<- assignment operato... |
20f5cd4cd36ecd2be75307c6abda355e7699b503 | 74fbc04141004ee21aa1fdcb903c083ed3c46e03 | /final code.R | e0ea15be26864293c7617c7f21687fe584af8785 | [] | no_license | moose9200/Housing_Regression_Price_Analysis_R | 52dca0573e0b75138fc800f26f3dac5e603e83be | 59e1641e6287a54393a987a55069d056290ea07f | refs/heads/master | 2020-12-02T21:25:09.509588 | 2017-07-06T07:34:21 | 2017-07-06T07:34:21 | 96,312,775 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,879 | r | final code.R | rm(list=ls())
library(ggplot2)
#set current working directory
setwd("C:/Users/Moose/Desktop/housemarket kaggale")
train = read.csv("train.csv")
#####################################################################
mis=sapply(train, function(x) sum(is.na(x))) # missing values by column
mis= as.dat... |
19b6cbc5a148534392f1d8e520a11cd9e0edd633 | 2a4c61d88ed173ceb6cfae08c951e4c414cdafba | /R/BPM.R | 6d39ac37be00cf7a15e4f8ceb81447d476dca3c1 | [
"MIT"
] | permissive | VanAndelInstitute/cardiocyte | cc7ea01b19523c8179842c991c9888f188fddfca | feb74a83d597e10da0e1fe68e92ac47d5d1d3b1a | refs/heads/master | 2021-07-23T08:10:46.448452 | 2020-07-09T20:33:13 | 2020-07-09T20:33:13 | 194,689,843 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 486 | r | BPM.R | #' bpm
#'
#' Calculate the BPM of the transient (beats per minute)
#'
#' @param x vector of trace data
#' @param framerate the framerate
#' @param ... additional parameters to pass to find_peaks
#' @return The BPM of the transient
#' @export
#' @importFrom baseline baseline
#' @importFrom DescTools AUC
#' @examples
#'... |
f77eac47cc7690b36845a7b234ef7ebb63b8df57 | f146b737d5caf14c047123f999fcf418fa57ed7e | /man/autoInitConv.Rd | 291257f1214383b8b87b3bfd9d667d8911f49d32 | [] | no_license | Kiki1017/FluHMM | a935b5010576e7e48968a5a1487b5d6003cd9209 | 4ddc2900cdede6a6e193712925e82f30fba633ac | refs/heads/master | 2021-06-22T09:00:21.874467 | 2017-08-10T07:51:50 | 2017-08-10T07:51:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,977 | rd | autoInitConv.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/autoUpdate.R
\name{autoInitConv}
\alias{autoInitConv}
\title{Run MCMC iterations until initial convergence}
\usage{
autoInitConv(x, iter = 5000, maxit = 95000, Rhat = 1.1)
}
\arguments{
\item{x}{An object of class `FluHMM', from which to gene... |
c5985f89b610e8ea13a54deb1c27186792db9db8 | 4d967585341ab6e5260aa57e4da93c83c1d7707a | /man/splitTable 2.Rd | 8d2649d2d15a03984a30a4e7ec2b57762cf374da | [
"MIT"
] | permissive | arnevpladsen/CARMA | 34f081ba7b8b9b92693f8e18c1055842d33e4abc | ff8f36bf15955bcb5d6b30d4d41d2a1f6c887bae | refs/heads/master | 2021-12-03T06:54:21.799686 | 2021-08-10T13:56:41 | 2021-08-10T13:56:41 | 233,879,898 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,373 | rd | splitTable 2.Rd | \name{splitTable}
\alias{splitTable}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Split a CARMA score table
}
\description{
This function will not be called directly by the user. The function is used by the \code{normalizeCARMA} function to split a CARMA score table into a list containing samp... |
c87ad16977faed6ed89c75eef965a20c3cb5002b | d143e583889c388ea98e2486f365b441260116a7 | /R/AnalyseDE.R | f8cf195dbdd2f8270599dc503d48cb3dce86adab | [] | no_license | hobrien/LabNotes | 8c69355af679af100e7e14ad612660ebdf5ba262 | 557c06ca384526aa164760208a443b19a7309693 | refs/heads/master | 2021-01-24T09:21:14.425123 | 2017-09-06T13:19:45 | 2017-09-06T13:19:45 | 49,435,493 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 10,793 | r | AnalyseDE.R | library(tidyverse)
library(GO.db)
#library(DOSE)
library(org.Hs.eg.db)
#library(topGO)
#library(GSEABase)
#library(clusterProfiler)
source("~/BTSync/FetalRNAseq/LabNotes//R/FormatGGplot.R")
GetFoldChanges <- function() {
Fold_changes <- read_delim("~/BTSync/FetalRNAseq/Counts/MvsF_12_HDBR_FDR_0.1_edgeR/tables/Malevs... |
08f140b419aaceeb65943687a091c9ca08bd794c | 95dd00f2a52b8a8ed2e99ffd392b00efbfd3612a | /inclass_0420.R | 5d5ff00a13b16ed6cc0959cda30a89c99b33e394 | [] | no_license | Yueyang-Li-Elfa/DataAnalyticsSpring2020_Lab_YueyangLi | 321f920a983a164690e6020db8ea9eb2c9a1ec09 | 35ac5ee65708a6ed3be16d3999aa5b4880f6ca98 | refs/heads/master | 2020-12-19T19:18:51.658251 | 2020-05-05T02:59:00 | 2020-05-05T02:59:00 | 235,826,702 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,587 | r | inclass_0420.R | # In-class practice
# Apr 20
## LOWESS example using the Cars dataset
data(cars)
str(cars) # 50 * 2
# plot: speed vs distance
plot(speed ~ dist, data = cars)
# We can see a positive relationship between them
# the documentation for the lowess function
?lowess
# use the lowess() function: return values
lowess(cars$... |
daea0e897aa20f2e90e86a085f87e4646fdb4d56 | f24d543bd6186ba4570a8969f204d22da9e3764f | /R/functions/normalize_height.R | 4afb516c35b47e305a8d6b569872159a3151eb40 | [] | no_license | robintrayler/collagen_demineralization | 10b9b29fc1b715874818a5a33ae11799e6cda875 | d7af30b23b625f6cb771556ef66a9e275a4b66dd | refs/heads/main | 2023-08-23T15:35:44.397224 | 2023-08-05T01:39:25 | 2023-08-05T01:39:25 | 411,031,242 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 536 | r | normalize_height.R | # data <- all_data %>%
# filter(time_min == 5)
# position = 1650
# width = 20
normalize_height <- function(data,
position,
width) {
# find the local maximum
divide_by <- data |>
filter(between(wavenumber,
left = position - width... |
31879b521a348f6be51ff307bfa59dc9fd19a16c | 0563103cc766f0cb981ccb8103594357e277dc74 | /man/point_Hexp.Rd | bb4ade6711eed0f228994084a1f4c93e5ae59cb0 | [] | no_license | pblischak/polyfreqs | a140631ae572753ca6123180474f2b067508c27f | b03ec79562842f259ff89b368b6f8a1bf983c6bc | refs/heads/master | 2021-01-21T03:33:59.306182 | 2016-12-16T22:05:25 | 2016-12-16T22:05:25 | 34,615,921 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,159 | rd | point_Hexp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/point_Hexp.R
\name{point_Hexp}
\alias{point_Hexp}
\title{Estimation of expected heterozygosity}
\usage{
point_Hexp(p_samp, genotypes, ploidy)
}
\arguments{
\item{p_samp}{A posterior sample of allele frequencies from \code{\link{polyfreqs}}.}
... |
0f0ccce1aa44a4943d4d3ca39ae90e0b2a106320 | 354b7cc2a9f9ac132090f2afff0fa112b8254f1c | /man/ia_files.Rd | 9c90cbd12e84ffd8a421f201b91f31e8ae2f3909 | [] | no_license | cran/internetarchive | ea833746e939c66bc447e1fb020a41a91b9f4f38 | 7e9bf3d100440ba3ed79c3f42aba27d5003f53dd | refs/heads/master | 2021-01-15T15:31:34.753794 | 2016-12-08T19:38:21 | 2016-12-08T19:38:21 | 32,833,711 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 667 | rd | ia_files.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ia_files.R
\name{ia_files}
\alias{ia_files}
\title{Access the list of files associated with an Internet Archive item}
\usage{
ia_files(items)
}
\arguments{
\item{items}{A list describing an Internet Archive items returned from
the API.}
}
\va... |
60a8031b4a6994889bc2bcabbe4ad2c092440fd6 | 6b18cafb5a709929ac6f653ee93c367ea1bf417b | /R/display.r | 95ca823e99f2e94e86bf20e47cacad2a7b36a48d | [] | no_license | skranz/bbsvg | 9ef19d08183959252ad2420a6bbd2af7279f8ff0 | a7f5dba91507aead66c783be2a08482d7abf95de | refs/heads/master | 2022-10-14T15:26:34.231135 | 2022-10-06T14:47:04 | 2022-10-06T14:47:04 | 92,750,599 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 147 | r | display.r |
init.geom.display = function(geom, display) {
if (identical(display,"whisker")) {
return(paste0("{{display_",geom$id,"}}"))
}
display
}
|
c80e1b06668769579db8173924532f7018bf1ddc | baebdc762e7cf14157645eaae0e2bb642dfc1708 | /inst/tests/test-stat-smooth.r | 1e4b64bf3e67c76b70e2c992a08061944ba335ff | [] | no_license | AmeliaMN/gg2v | d6bcab7d1b2da8cfbfac4cbce9b07f037c0aad6f | 7c8a03bf4d352a4463d58c94d71446a10959139f | refs/heads/master | 2021-01-18T05:04:47.553697 | 2013-07-16T22:20:54 | 2013-07-16T22:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 505 | r | test-stat-smooth.r | context("stat-smooth")
set.seed(1014)
library(ggplot2)
df <- data.frame(
x = 1:10,
y = (-5:4) ^ 2 + rnorm(10),
z = factor(rep(1:2, each = 5)))
base <- ggplot(df, aes(x, y)) + geom_point()
base + geom_line(stat = "smooth")
save_spec("stat/smooth.js")
base + geom_line(stat = "smooth", method = "lm", formula = y ... |
311aa0443637fea1f6217aff5c3cb3c3d53972b1 | 14c80ea0be9edea6bda1114a5bcf55cec002309c | /Plotting/PlotDistributionFits.R | a59b5a2685b5fe0269e0f70535fa84e7b237272d | [] | no_license | fahmidah/bridge.collapses | 3c0b7bae9a854096d2848c4e690ac746480a5ca3 | 3710a254a67575f77e96a4e447fd50eebe14c187 | refs/heads/master | 2022-02-26T17:24:53.110648 | 2019-10-28T14:35:07 | 2019-10-28T14:35:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,528 | r | PlotDistributionFits.R | # Plot panel of
PlotDistributionFits <- function(BridgesDataFrame,ls.df, TYPE = "USGS", SAVE = FALSE, TEXT = TRUE, ONLY = "LP3", ANY=NULL, labelsType = "yearsState",
SCALE = "LINEAR", LEGEND = "NONE", outputType = "PRINT", SIZE = c(4,13),
ANNOTATE_LOC ... |
9d7c047c504408ea48d0841ce9f4944bd9438464 | b437086cb1c76af82e408ae60119e8119e7d0ddf | /make_stuff/make_2/main.r | 4ca65664b31003c3ed144e8c7cb4963ab9ed0dc7 | [] | no_license | Zyoto/Demo | ea2eb76a007b8321eefdf30e3ce385be55a36cf5 | 501476aeb0ef2d66b074ccdd54daf3e3cc66a787 | refs/heads/master | 2016-09-03T03:18:06.165419 | 2013-09-27T16:51:35 | 2013-09-27T16:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 579 | r | main.r | p = P
q = Q
paq = p&q
poq = p+q
piq = p->q
pbq = p<->q
drawtable(paq)
dRawtable(poq)
drAwtable(piq)
draWtable(pbq)
p = R
q = S
drawtable(paq)
dRawtable(poq)
drAwtable(piq)
draWtable(pbq)
dma = -(P&Q)<->(-P+-Q)
drawtable(dma)
isanything(dma)
dmb = -(P+Q)<->(-P&-Q)
drawtable(dmb)
isanything(dmb)
dmc = -(-P&-Q)<->(P+Q)... |
89105d52a46ecd062952b62b90096d1dbfbefbe7 | a9bc25c88e84546a5347f5d31dae56dd10ddd09e | /Aula03/Rmd_distprob_fonte/Goodcoin.R | bc2f3fe00bf390da9e128e60375486ce75233f2b | [] | no_license | yadevi/2020 | 7215d15d5ee2bc85515869cb9fef11d07ea335ad | 599708bbe5ca8c4be3a76b82d55d32c5f3c70232 | refs/heads/master | 2022-07-05T11:04:07.781681 | 2020-05-13T18:06:24 | 2020-05-13T18:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,834 | r | Goodcoin.R | # Simulacao
# rodando este script np RStudio, observe em Plots
# suppress warnings
options(warn=-1)
cat ("\nDado um valor a receber em moedas de R$1.00, metade da quantia\n")
cat ("eh oferecida em moedas com um balanceamento de referencia,\n")
cat ("e metade em moedas falsas, conhecidas por balanceamento distinto.\... |
bd9af2ded3a1de40b226169a32c9df8074668364 | eb8642cd2853dfbd0d425ae2c80224d45c82a890 | /week4 assignment/R code for week4 assignment.R | 47e4e19a0499a7509df08e436e02e7afc9633fda | [] | no_license | vinod-desireddy/Coursera-Reproducible-Research | 7e6fc3952d4a1d8598315ba0ae3e1a80776b3945 | 4b204fd56b4bbc117a593d3f756238e44ac6649d | refs/heads/master | 2022-07-16T16:50:57.697699 | 2020-05-18T15:36:13 | 2020-05-18T15:36:13 | 264,501,506 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,175 | r | R code for week4 assignment.R | #https://rpubs.com/vinod-desireddy/616194
url = 'https://d396qusza40orc.cloudfront.net/repdata%2Fdata%2FStormData.csv.bz2'
download.file(url, 'data', 'curl')
data = read.csv('data.csv')
str(data)
library(dplyr)
library(lubridate)
data1 = data %>%
select(EVTYPE, MAG, FATALITIES, INJURIES,
PROPDMG... |
cc67f9fc9e76f8113a2de57d07130a56c442acb9 | 7906d9809924c2d9d6f7652aca712144e095cf35 | /man/relatedness.Rd | b0279dc1d6bc2025cc57e0ff2ba5602df6da9561 | [
"MIT"
] | permissive | rdinnager/slimrlang | 999d8f5af0162dbcc8c42ff93b4dc5ae2f0cb7fc | 375a2667b0b3ab4fa03786fb69c5572f6367d36b | refs/heads/master | 2022-10-19T04:02:43.013658 | 2020-06-14T10:31:45 | 2020-06-14T10:31:45 | 262,492,066 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,688 | rd | relatedness.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slim_lang.R
\name{relatedness}
\alias{relatedness}
\alias{Individual$relatedness}
\alias{.I$relatedness}
\title{SLiM method relatedness}
\usage{
relatedness(individuals)
}
\arguments{
\item{individuals}{An object of type Individual object. Se... |
8c46841235c7e93d07b184dd6a025c221c89e3ec | 75b9ad06c919b6ef8e4df9df2188a85fbb69f6d7 | /02122020-KMEANS/02122020-KMeans-R.R | feba694edd1f9263d713fe4dc92f81307557ed3d | [] | no_license | jcms2665/LCF-UNAM | 5218e188cbc52b90568b4ac2ba0523544f799d3d | c3ec6c3b4d7d6563aa11aaf58f50ea8f0a167777 | refs/heads/main | 2023-02-09T02:41:40.616777 | 2021-01-03T07:43:02 | 2021-01-03T07:43:02 | 310,419,641 | 1 | 14 | null | null | null | null | ISO-8859-1 | R | false | false | 3,039 | r | 02122020-KMeans-R.R | #--------------------------------------------------------------------------
# Creacion: 02-12-2020
# Autor: Julio C.
# Contacto: jcms2665@gmail.com
# Objetivo: Análisis de conglomerados: k-medias
# Datos: Latinobarometro_2018_Esp_R_v20190303.Rds
# Github: ... |
5e69ef6ece0da7e521c49f91e1e18eef4c1b009b | 501bdb50a57af61e43ed72b14d74865bcdec052c | /sentiExExJunc.R | 4b03a526955ada67a535059aa30af42b3d1f4187 | [] | no_license | gughi/eQTLPipeline | cf790a2772e0cc1a6f3f7b15e5553ab3816ff37d | 5c98367321035e6cdc09f15e564ef1e86fd1e4ff | refs/heads/master | 2021-03-24T11:05:02.336066 | 2016-06-01T11:41:36 | 2016-06-01T11:41:36 | 18,880,513 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,310 | r | sentiExExJunc.R | #######################
### Sentinalisation ###
#######################
rm(list=ls())
library(devtools)
library(doParallel)
library(foreach)
load_all()
# Caprica
setwd("/home/seb/projectsR/eQTLPipeline/")
# Apollo
# setwd("/home/guelfi/eQTLPipeline/")
cl <- makeCluster(20)
clusterExport(cl,c("LDsentExonExonJunc","... |
4ea17201fb6b292289066828af5f272cb70039e5 | 49b5cb2296130f97d75033bda87ecf97871b008e | /cachematrix.R | 36516ecdee457257d114cb75db883d1e6129b0ea | [] | no_license | vinaymiriyala/ProgrammingAssignment2 | 1b7836c9621bd7c13b8497d6b6f3bc98847a6f60 | f6d8594f3105a455b2e33dfa81ea7af6e2044937 | refs/heads/master | 2020-02-26T13:22:16.727761 | 2014-10-26T06:31:33 | 2014-10-26T06:31:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,568 | r | cachematrix.R | ## The following functions can be used to solve the inverse of a matrix. The inverse of a matrix will be
## returned readily if it has already been cached before, instead of being computed again.
## This saves time when doing time consuming computations.
## The first function, makeCacheMatrix creates a special matrix... |
3d430b52d54c2975f2b6babffa55edc1a6074b77 | 753e3ba2b9c0cf41ed6fc6fb1c6d583af7b017ed | /service/paws.xray/man/get_service_graph.Rd | f4e8d1ffaa71ae5cfa014ff9501c77bb9a22e2ed | [
"Apache-2.0"
] | permissive | CR-Mercado/paws | 9b3902370f752fe84d818c1cda9f4344d9e06a48 | cabc7c3ab02a7a75fe1ac91f6fa256ce13d14983 | refs/heads/master | 2020-04-24T06:52:44.839393 | 2019-02-17T18:18:20 | 2019-02-17T18:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,357 | rd | get_service_graph.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.xray_operations.R
\name{get_service_graph}
\alias{get_service_graph}
\title{Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result}
\usage{
get_service_graph(StartT... |
030c1a580884f38de6cf0c810952f72ca0100f06 | 906467a7822ddefdfa585ba2c43d0e0db956667a | /man/getLogspaceNames.Rd | cdf442063d0144f02067cf295430373bc37c1898 | [] | no_license | chiphogg/gppois | 47f0958f9cd18af94a6f89415257be858c9119cd | 85137bfd7f659b0ac094d2e0e05a9cdfa045adfb | refs/heads/master | 2020-05-18T12:57:26.688557 | 2012-07-20T15:05:03 | 2012-07-20T15:05:03 | 4,561,808 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 469 | rd | getLogspaceNames.Rd | \name{getLogspaceNames}
\alias{getLogspaceNames}
\title{Names of "scale"-type parameters}
\arguments{
\item{\dots}{Not used.}
}
\value{
Names of parameters to be optimized in logspace.
}
\description{
A character vector of names, indicating which parameters
are considered to be \dQuote{scale} parameters. (Read... |
adad165d097fbda30cb5ac4629f43faaa603b843 | 44598c891266cd295188326f2bb8d7755481e66b | /DbtTools/pareto/man/PDEcls.Rd | 4af059c468b3ebcd728bc5fbb19112052f1d51e9 | [] | no_license | markus-flicke/KD_Projekt_1 | 09a66f5e2ef06447d4b0408f54487b146d21f1e9 | 1958c81a92711fb9cd4ccb0ea16ffc6b02a50fe4 | refs/heads/master | 2020-03-13T23:12:31.501130 | 2018-05-21T22:25:37 | 2018-05-21T22:25:37 | 131,330,787 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 432 | rd | PDEcls.Rd | \name{PDEcls}
\alias{PDEcls}
\title{PDE class}
\description{
This function plots PDE densities for each class.}
\usage{
PDEcls(data, cls, show_legend=FALSE)
}
\arguments{
\item{data}{numeric matrix of data to be plotted.}
\item{cls}{numeric vector. class number for each dataset. }
\item{show_legend}{l... |
6989bce07324cff2a97f1c51b5e919735fe14bad | bbc167551a93d2a6d7ea43f00fc901ff967a8c62 | /man/funcEnrich.GSEA.Rd | bf320206aa8e17ef812296cfe8944ac83fbfef77 | [
"Apache-2.0"
] | permissive | jyyulab/NetBID | 0c4c212cddd0180b96506e741350e6b7cfcacfce | 86d62097eda88a6185b494491efdd8b49902e0c3 | refs/heads/master | 2023-04-30T04:16:40.752026 | 2023-02-28T02:57:04 | 2023-02-28T02:57:04 | 118,371,500 | 34 | 10 | Apache-2.0 | 2022-08-23T13:44:58 | 2018-01-21T20:33:57 | R | UTF-8 | R | false | true | 3,432 | rd | funcEnrich.GSEA.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pipeline_functions.R
\name{funcEnrich.GSEA}
\alias{funcEnrich.GSEA}
\title{Gene Set Enrichment Analysis by GSEA}
\usage{
funcEnrich.GSEA(
rank_profile = NULL,
use_gs = NULL,
gs2gene = NULL,
min_gs_size = 5,
max_gs_size = 500,
Pv_a... |
75279125772b208642b551eee3f5f82f7efd5c28 | f434d9eabe9d0864063bf0e7daca622ba17db850 | /malta.R | 83d3059a64b7e008a6ae25451d74e2014921aed2 | [] | no_license | edwindj/eu_maps | 2dfc2e726551634d43792a9a7f884caf1c87d8a1 | 0c6b5c9f9eb533702125c235065f6eda1cc7c1f0 | refs/heads/master | 2021-01-19T22:17:22.233810 | 2019-04-12T06:49:01 | 2019-04-12T06:49:01 | 88,789,935 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,455 | r | malta.R | library(sf)
library(dplyr)
europe <- st_read("data/europe_map.geojson") %>%
st_set_crs(3035)
# fix two country codes...
country_code <- c( "FRA" = "FR"
, "NOR" = "NO"
, "GBR" = "GB" # coded in StatLine with gb instead of uk
)
i <- match(names(country_code), europe... |
a6b0cfd886d1d32db05af8f0d8d4836eb71beefe | 7c326a26ffdd5f56d0dbdaf2eff8ceef11c35ae5 | /First R Codes/DataManagement.R | 4833c870b08e2578e591b62e8105c544397458b0 | [] | no_license | NiteshTiwari/Forecasting_in_R | ea562a09054deff3938693235ce8bf030468de41 | c6ced0278fba78659fa088d9a4bcb4bf43207cc7 | refs/heads/master | 2021-06-03T23:37:55.368271 | 2016-09-14T12:52:31 | 2016-09-14T12:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,960 | r | DataManagement.R | #Opens a Stata data file. Since Stata files automatically have headers, no need to specify that.
mydata<-read.dta("Y:/okofm/ElectoralRulesJuly2015/dataSTATA/DataExpTaxEmpPC.dta")
#Note that I call the dataset I open "mydata". Thus, I can refer to it by writing its name. For example, next line asks
# R to give the na... |
0f76641da1e98b2a368725b43325df8e5a56e8e4 | eb5756859c948b31c31839d94b36acf2a730a2df | /man/is_connection.Rd | 7cbf65049c07fe4c8bf83fc5e3cdc0af7b30d453 | [] | no_license | cran/assertive.files | 9073bf416e95bf74b104c2d94ac278b71797ac54 | ce4c9f1d5291b89197fadb2370bf1f71bb6984ff | refs/heads/master | 2021-01-21T14:08:40.275117 | 2016-05-10T10:30:32 | 2016-05-10T10:30:32 | 48,076,797 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 6,517 | rd | is_connection.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/assert-is-connection.R, R/is-connection.R
\name{assert_is_bzfile_connection}
\alias{assert_is_bzfile_connection}
\alias{assert_is_connection}
\alias{assert_is_fifo_connection}
\alias{assert_is_file_connection}
\alias{assert_is_gzfile_connecti... |
552901b3d2051d5a13f4fa424fde0e4f73f0b36b | e0733e54c3a9078e046663ad84ca5e7488489efd | /man/climateChangeMats.Rd | 6f6b79ab7e11554f05db264ea8943f148f595e03 | [] | no_license | npp97-field/hadsstR | 7afde0ff9e00bf48020d6b1043e7846c4a088d98 | f218bfc992b96e413a6186fac00cd4f063564b2b | refs/heads/master | 2020-12-28T23:16:19.584989 | 2015-04-24T14:23:44 | 2015-04-24T14:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 736 | rd | climateChangeMats.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\docType{data}
\name{climateChangeMats}
\alias{climateChangeMats}
\title{Climate Change matrices for 1960-2009}
\format{A \code{hadsstMats} object with a variety of matrices
\describe{
See \code{\link{getClimateChange}} for details of parts of object
}}
\source{
\... |
122c844ef88d667f0f5c146ffdb86f794cafc509 | 7f7d496444333e6e7fb457af654ad07aeb0516dd | /mypgm01.R | 71a47d4304545549dd0ed6839236f3024cf98ba8 | [] | no_license | navnathsatre/DS_R | c0b07710e9511354fccb2f17952b502c3173169b | 06c2f4def40e3ff3b7c0e1a1f8c90e4a21fe5b39 | refs/heads/main | 2023-01-30T02:30:50.419891 | 2020-12-17T11:32:01 | 2020-12-17T11:32:01 | 320,799,516 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 443 | r | mypgm01.R | getwd()
#setwd("F:\\R.mypgm1")
# my first pgm in R
2+5
5^6
exp(2)
var1<-5
2>6
3*5+6
exp1
exp(1)
sqrt(2.6)
pi
pi
x<-5
x<-3
y<-6
z<-8
x+y+z
# R is case sensitive language
6*pi-688
2*pi*6378 # circomferance of earth at equator
This.Year
This.Year<-2020
nath <- c(1,2,3,4)
nath
vec <- c(10,20,30,4... |
9331de255d9cb81a85606c3d92b1a453267da337 | 92a5c49b416ad9bc6f6166d65abfb31e8bc64d01 | /src/11-Three_data_features.R | 34c94a2099570a84b912516178c0758b7aec175e | [
"MIT"
] | permissive | chunjie-sam-liu/Immune-checkpoint-blockade | e87f131b97581008d4368e2a07f297d3410958bf | e1daf00b2b3661df3b415b4531c13594252a6235 | refs/heads/master | 2022-03-26T04:53:41.337724 | 2019-12-11T00:29:24 | 2019-12-11T00:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 22,490 | r | 11-Three_data_features.R | #use the all enriched functions' gene as features(GO,KEGG)
library()
#GO interaction-------------------------------------------------------------------------------------------------------
read.table("/data/liull/immune-checkpoint-blockade/New_batch_effect_pipeline/melanoma_PD1/up_enrichGO.txt",
header = T,... |
9064c4c8d4b8080fed5c65738b857d6bef6cdc09 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/spotifyr/examples/get_albums.Rd.R | 5103590a8e76b4391c03c36558a910d9ceed1dbc | [] | 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 | 246 | r | get_albums.Rd.R | library(spotifyr)
### Name: get_albums
### Title: Get Albums
### Aliases: get_albums
### Keywords: albums
### ** Examples
## Not run:
##D artists <- get_artists('radiohead')
##D albums <- get_albums(artists$artist_uri[1])
## End(Not run)
|
3a20a754bee62d62e13dba005e79116ede7ed4bb | 07305c42feb0b90dda0769a820e3a9495f1d7eb3 | /tests/testthat/helper-dummy-vars.R | 9c80c3511c9e5a459efe28a4da2219468adb6844 | [
"MIT"
] | permissive | cderv/proxyconfig | 46080c5984a2df07ee71670a8f62c1d681e053f8 | b2f89ab5fa2a463960700a0d106ab3935a31a629 | refs/heads/master | 2020-03-09T08:01:59.853232 | 2019-10-06T17:40:16 | 2019-10-06T17:40:16 | 128,679,659 | 15 | 1 | null | null | null | null | UTF-8 | R | false | false | 355 | r | helper-dummy-vars.R | dummy_proxy_url <- "http://user:pwd@proxy.info:5656"
dummy_env_var_lc <- c(http_proxy = dummy_proxy_url,
https_proxy = dummy_proxy_url,
no_proxy = ".dummy.domain")
dummy_env_var_uc <- purrr::set_names(dummy_env_var_lc, toupper(names(dummy_env_var_lc)))
dummy_env_var <- c(d... |
e0c7f996f0e87bab0455e7f1ca8275ca0755ca4e | e9a5a9e952a9ccac535efe64b96cc730b844677b | /man/XLC.Rd | 75c4ba761f8e1e2207ffb539d2ad2209aa662b81 | [] | no_license | miraisolutions/xlconnect | 323c22258439616a4d4e0d66ddc62204094196c9 | ae73bfd5a368484abc36638e302b167bce79049e | refs/heads/master | 2023-09-04T05:27:42.744196 | 2023-08-30T07:10:44 | 2023-08-30T07:10:44 | 8,108,907 | 114 | 35 | null | 2023-08-30T07:10:46 | 2013-02-09T11:17:42 | R | UTF-8 | R | false | false | 4,660 | rd | XLC.Rd | \name{XLC}
\alias{XLC}
\title{
XLConnect Constants
}
\description{
List structure defining several constants used across \pkg{XLConnect}.
}
\format{
The format is:
\preformatted{
List of 90
$ ERROR.WARN : chr "WARN"
$ ERROR.STOP : chr "STOP"
$ DATA_TYPE.BOOLEAN : chr "BOOLEAN"
... |
26c84cb5a456edea6b95cfce655793e8277f75f1 | 5fea5696e21e120581c12a086a6cf1e01d08e20a | /bagofword.R | a474bffe0825bdaa8245dc58531dc790e7c0cc8c | [] | no_license | lamelia/titanic | 696eb87e1f99d197e2d44edf45c26a42d14019f5 | 49373413b40db9734a10c97ee88278e180fc0959 | refs/heads/master | 2021-01-10T08:03:57.296767 | 2016-03-07T15:31:37 | 2016-03-07T15:31:37 | 51,232,672 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,054 | r | bagofword.R | #export data to csv format
all_complete <- read.csv(("all_complete_titanic.csv"))
#text mining
require(tm)
# build a corpus
all_complete.corpus <- Corpus(VectorSource(all_complete$Name))
# make each letter lowercase
all_complete.corpus <- tm_map(all_complete.corpus, content_transformer(tolower))
# remove punctuati... |
69eb6add882b3b1f065359b764dd330bb461b80b | 4419dcaad86d41cca6ad026a6a6c72e408fa62eb | /R/bind-iterations.R | 0615620235f3b733ea358db33aacc34596cfa90d | [
"MIT"
] | permissive | poissonconsulting/mcmcr | c122a92676e7b1228eedb7edaebe43df823fdeb8 | ca88071369472483e7d73914493b99fd9bda9bd5 | refs/heads/main | 2023-06-24T09:43:04.640793 | 2023-06-13T00:19:29 | 2023-06-13T00:19:29 | 70,411,531 | 15 | 3 | NOASSERTION | 2022-06-21T03:07:27 | 2016-10-09T15:18:09 | HTML | UTF-8 | R | false | false | 1,388 | r | bind-iterations.R | #' @export
universals::bind_iterations
#' @export
bind_iterations.mcarray <- function(x, x2, ...) {
chk_s3_class(x2, "mcarray")
if (!identical(pdims(x), pdims(x2))) {
abort_chk("`x` and `x2` must have the same parameter dimensions")
}
if (!identical(nchains(x), nchains(x2))) {
abort_chk("`x` and `x2`... |
eae2f5a6da8fd88f34b9e8cb3a972271b12a0c7f | 0a9051c89c5087c8152ef06601ec3200a10a4a2d | /src/eRNA.target.correlation.xyplot.R | e17e852849c979eb59a70a927b3233280c671880 | [] | no_license | sterding/BRAINcode | cfd79ab37f43f8db9126cc276d92e1d86d465275 | 7b4c5e816ff1cf9af86041326b71cf3f3e2e4bf6 | refs/heads/master | 2021-07-12T20:52:30.163069 | 2021-05-24T14:50:51 | 2021-05-24T14:50:51 | 1,508,241 | 11 | 6 | null | null | null | null | UTF-8 | R | false | false | 564 | r | eRNA.target.correlation.xyplot.R | args<-commandArgs(TRUE)
inputfile=args[1]
outputfile=args[2]
df=read.table(inputfile, header=T)
rownames(df)=df[,1]; df=df[,-1]; df=t(df); colnames(df)=c("eRNA","target_gene"); df=as.data.frame(df)
df1=log(0.005+df)
reg1 <- lm(target_gene ~ eRNA, data=df1)
pdf(paste(outputfile,"pdf",sep='.'))
par(cex=.8)
plot(target_g... |
36e42bfcacbeafea88a223728426bbc80a2ed919 | b73ba9d91f872931cbf88d50999411c0bb7c211e | /man/prepare-metadata.Rd | 14583f251f51c6e3f470fd75f9d165fb2825269c | [
"MIT"
] | permissive | weecology/portalcasting | 73347ce66f8c1e5c080a1f1029ec17026c912588 | a35a77214d41dbdaa50bb39452b5fe49c3763a83 | refs/heads/main | 2023-08-20T12:48:59.392495 | 2023-05-23T01:16:33 | 2023-05-23T01:16:33 | 129,144,321 | 8 | 12 | NOASSERTION | 2023-05-23T01:16:34 | 2018-04-11T19:34:03 | R | UTF-8 | R | false | true | 1,649 | rd | prepare-metadata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prepare_metadata.R
\name{prepare metadata}
\alias{prepare metadata}
\alias{prep-metadata}
\alias{metadata}
\alias{prepare_metadata}
\title{Prepare a Model-Running Metadata List}
\usage{
prepare_metadata(
main = ".",
datasets = prefab_data... |
aa58ea06c68820bb1010dca1ea13ae50fab10ab0 | cc541c98fa97f871643e4c83784180404368cc94 | /tests/testthat.R | a06512ae5a97bcf62ef72023a62561cd12e94c77 | [] | no_license | ojessen/ojUtils | 34e81a8511b96039b5ebb24e08f1d191eefe4b37 | ce748448fdd71f4d9a459a94ea2b912da75e79a4 | refs/heads/master | 2018-11-06T06:50:41.609782 | 2018-09-10T19:02:49 | 2018-09-10T19:02:49 | 21,038,018 | 0 | 1 | null | 2014-06-20T14:55:59 | 2014-06-20T13:01:13 | C++ | UTF-8 | R | false | false | 58 | r | testthat.R | library(testthat)
library(ojUtils)
test_check("ojUtils")
|
eb04e0574d312a88378c0ebb427fab8b5b8d5cca | 45d0314e631abe9743a594424b9f76db540cc3dc | /man/add_heroku_key.Rd | f2ccdf675d20ce2621be0d728a613df71de114fb | [] | no_license | isabella232/circleci | ab93b3c34359c311058b426e40fdd1455b4e9132 | 9756f339d11af3885b83dcbba478dbc9a36ee174 | refs/heads/master | 2022-04-12T21:07:02.652984 | 2016-08-09T14:42:10 | 2016-08-09T14:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 463 | rd | add_heroku_key.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/endpoints.R
\name{add_heroku_key}
\alias{add_heroku_key}
\title{Add Heroku key to Circle CI}
\usage{
add_heroku_key(...)
}
\arguments{
\item{...}{Additional arguments passed to an HTTP request function, such as \code{\link[httr]{GET}}... |
772a43406ff4fc9a24506b1a463d7e66353849ac | bb1e610719504eadec848afaeea6dcb0069bedc4 | /EPL_League create features.R | 18272ec15c70d0b8ae9474143acd9e20b00f1091 | [] | no_license | batemansogq/R_cde_bkup | c8a5a4ef3a5bf8024f631c79bf0063c485d08946 | 8b4a9f51ee28c067e869df538bdf3634d09b142b | refs/heads/master | 2020-12-07T23:02:32.150473 | 2020-03-17T10:54:40 | 2020-03-17T10:54:40 | 67,341,827 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,081 | r | EPL_League create features.R | #############################################################
# create the additional features
#############################################################
# read in source data
setwd("E:/R/Football")
df_data_rds <- read.csv2( file="df_data_rds.csv", header = TRUE, sep=";")
df_data_lad <- read.csv2( file="df_data_la... |
eea6f8cb653363b835a6fdb2bdf38cd24c7e2c2f | 78651b8c0ee5e2de85d786d2c3879268592bb281 | /Estudio-enfermedades-autoinmunes/v4/GenerateHeatMaps.R | cbce8fb2acc343248e286a3f61c378f8e96ee490 | [] | no_license | kdis-lab/IMIBIC-projects | 3a42b34f7b5ea6119dd312939a85c300cf169cd2 | bd4e222fa61f089a576ba1f5e6d82056cf876e78 | refs/heads/master | 2020-11-23T22:41:21.153444 | 2019-12-16T12:57:31 | 2019-12-16T12:57:31 | 227,834,349 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,025 | r | GenerateHeatMaps.R | library(pheatmap)
library(Cairo)
setwd("/media/oscar/DATA/OneDrive - Universidad de Córdoba/workspace/IMIBIC/")
PlotHeatMap<-function(data, imgName="HeatMap", format="png", smplDist= "euclidean",
clstDist= "ward.D", viewOpt="detail", rowV=TRUE, colV=TRUE, border=TRUE){
classes <- data[ncol... |
fb950ff3eb0edee26567a0d826cd6c66060c08df | fabdac62fcb0951d98d71a8ec0604900479bfba8 | /tests/testthat/test-docs.R | 5a1cdc66631c3febd1ac20ab0224a32fa6c273f3 | [
"MIT"
] | permissive | r-lib/generics | bec3bcb8b7f55fbda1e22998b562d067e6cb268a | 387397154bb8488a0b6dfbcbba91b781d598ee0e | refs/heads/main | 2022-07-11T20:36:04.652473 | 2022-07-05T21:25:22 | 2022-07-05T21:25:22 | 137,095,400 | 53 | 18 | NOASSERTION | 2022-07-05T21:23:47 | 2018-06-12T15:55:26 | R | UTF-8 | R | false | false | 1,296 | r | test-docs.R | test_that("generics methods can be reexported and extended", {
local_load_all("testGenericsExtension")
expect_snapshot(methods_rd("tidy"))
})
test_that("multiple packages have multiple headers", {
local_load_all("testMultiMethod")
local_load_all("testMultiPackage")
expect_snapshot(methods_rd("multi_method"))... |
d956e3f39ff3460d2204e5b92e80d6c2c7432691 | 77f742348fd6b898343aa54adc849e1026be345e | /code/BEdaily2_grid_membership_usa_state.R | 23982997ddb282acb7294bf211cc9e50dfc7f9f3 | [] | no_license | jshrader/data_weather | 07df2d30b85436b52a7b09b8386e6507abef3257 | 8937b766cc967cdea4d4f41dd1b6e01108f16dec | refs/heads/master | 2022-12-25T08:36:40.399001 | 2022-12-14T17:16:16 | 2022-12-14T17:16:16 | 431,595,709 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 6,297 | r | BEdaily2_grid_membership_usa_state.R | ## R code to find the state membership of data from Berkeley Earth.
##
## Code by Jeff Shrader
## 2021-05-20
##
## To do:
##
## Sources and citations:
# Preliminaries -----------------------------------------------------------
rm(list = ls())
packages <- c('sp','rgeos','grid','ggplot2','sf','reticulate',
... |
4714c878f136784ae35974e64014ec287b31dd2e | 330224d3b01919ef0cdab07a4cbb2271951a9d67 | /R/Clayton.Markov.MLE.R | 45289a73c6f88445439bd03973fd1a5010848ab6 | [] | no_license | cran/Copula.Markov | 28923cdffa68a2ea69b02007080204bf5f02878b | f27c0753c1d586d5c12f1579ddba6754d84f64b4 | refs/heads/master | 2021-12-08T22:36:21.425421 | 2021-11-29T04:40:13 | 2021-11-29T04:40:13 | 32,750,024 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 13,624 | r | Clayton.Markov.MLE.R | Clayton.Markov.MLE <-
function(Y,k=3,D=1,plot=TRUE,GOF=FALSE, method = "nlm"){
n=length(Y) ##sample size##
log.L = function(par){
mu = par[1]
sigma = exp(par[2])
alpha = exp(par[3])
g_yt = dnorm(Y, mean = mu, sd = sigma)
G_yt = pnorm(Y, mean = mu, sd = sigma)
... |
8be25edd35997b2a30b06e1063cf0fc29da54ddb | 13b3e061b3f603c4a9ddaf0e37ae60fdc7e39855 | /src/investmentscleanup.R | 1c7cc6a5ab0ec71e52d061db7b8821fbbfa0fac6 | [] | no_license | akma327/VCNetworks | a14705683d8c49869c29ca0dd353d2453f8ca871 | 1ae323e18cbf562039a46b7dba76ab50641f9b8b | refs/heads/master | 2020-06-11T04:52:03.384461 | 2016-12-09T05:40:18 | 2016-12-09T05:40:18 | 76,002,427 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,630 | r | investmentscleanup.R | investments_start <- read.csv("../data/investments.csv", header = TRUE, stringsAsFactors = FALSE)
library(plyr)
#Remove investments without investor name and companies that are listed as investors
investments <- investments_start[investments_start$investor_name != "",]
investors <- unique(investments$investor_name)
co... |
f7e6461924fed4bae484462ad112086af4f27c9a | 18ba9ff84fc08d91bf675e86d3a596ffe777da93 | /src/assignments/sba2/code/get_intersect.R | 7160ea836b78b904a8b56c0f60bff7dce7659345 | [] | no_license | supersubscript/compbio | 0656e2da1ac77d845b87da9ff026a022443b166b | e705b317078ea3cb3582ef80ddd71d5072a22965 | refs/heads/master | 2021-01-17T18:45:56.893352 | 2019-08-01T16:26:33 | 2019-08-01T16:26:33 | 80,166,886 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,711 | r | get_intersect.R | setwd("/home/henrik/compbio/src/assignments/sba2/code")
mol1.data.mine = as.character(read.table("../data/3uon_within_5.dat.unique")[, 1])
mol1.data.key = as.character(read.table("../data/3uon_key_binding_sites.txt", header = F)[, 1])
mol1.data.key = mol1.data.key[-c((length(mol1.data.key) - 1):length(mol1.data.key))]
... |
ef4e6b8a9b79ccbc35815f8aa229159fe6465008 | 744394478c9cb10d7d762003a5f1c0ba41174fbb | /tests/testthat/test_request_time_bounds.R | e274119588738376b835eeb30d8ca94cf2f9144c | [] | no_license | jjvanderwal/climates | 8dc06d66a50123fdd08e47b916e45a70e0b87848 | 51952d2c3c69018a975e3e93e1d41d2f10a03cdc | refs/heads/master | 2016-09-06T11:34:13.984914 | 2015-11-24T14:44:51 | 2015-11-24T14:44:51 | 15,891,417 | 5 | 4 | null | 2015-11-24T14:44:51 | 2014-01-14T04:03:59 | R | UTF-8 | R | false | false | 862 | r | test_request_time_bounds.R | library(climates)
context("Test request_time_bounds function")
test_that("daymet time stuff is handled correctly.",{
ncdf4_handle<-c()
# daymet time units format.
ncdf4_handle$dim$time$units<-"days since 1980-01-01 00:00:00 UTC"
#Silly 0.5 time dimension is a real problem.
ncdf4_handle$dim$time$vals<-sequen... |
0854f5808b3f96d9ab3341f8cad4a36e319f3035 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/RNeXML/examples/nexml_publish.Rd.R | a477600b21f66d5c407b8a88ec699b662cd1f3cd | [] | 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 | 315 | r | nexml_publish.Rd.R | library(RNeXML)
### Name: nexml_publish
### Title: publish nexml files to the web and receive a DOI
### Aliases: nexml_publish
### ** Examples
## Not run:
##D data(bird.orders)
##D birds <- add_trees(bird.orders)
##D doi <- nexml_publish(birds, visibility = "public", repository="figshare")
## End(Not run)
|
923e6737462a9dfb82163dd779450a81cf127667 | 3241454d7786ac05bf7e711a03fcd22085cc3c0c | /R_Chicago_Crime_NetworkAnalysis/R_and_Rmd_Files/ChicagoCrime_ExploreBipartiteSplitCrimes_KP.R | ded85abbf1522a92556bf0cd4f3bd96322de7655 | [] | no_license | karipalmier/DePaul_Projects | d20df481ce6b2be62d1541ffa9f241353db309cb | b8718d9a5a7a3e198a3af3a5407d5206293f8584 | refs/heads/master | 2021-04-12T09:54:21.911225 | 2019-03-29T04:42:23 | 2019-03-29T04:42:23 | 126,392,388 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,409 | r | ChicagoCrime_ExploreBipartiteSplitCrimes_KP.R | ######################################################################################################
#
# ChicagoCrime_ExploreBipartiteSplitCrimes.R
#
# The file performs analysis on the bipartite crime projections of the
# violent and non-violent Feb 2017 Chicago Crime datasets. The first step is to
# crea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.