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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b1115418185b733b34d4882e911197a0877c8dd2 | 73942206c0ef2162a60c33c7b6bedb7d58c023a2 | /Treningowe/PART 2/Statystyki graficzne 2.R | 2fbcef93be9164506635737ecb53d228f1d0f6a6 | [] | no_license | adrian00b/GNU-R-basics | 61a659da3c3e27c4b12ddc6d6bde0fc178766121 | 9a5d0cd14f931aa0699c7232edca6824f56ea7c6 | refs/heads/master | 2021-07-08T04:25:35.000088 | 2021-01-15T12:39:39 | 2021-01-15T12:39:39 | 221,065,059 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 870 | r | Statystyki graficzne 2.R | library(Przewodnik)
library(dplyr)
library(car)
boxplot(daneSoc$cisnienie.skurczowe, daneSoc$cisnienie.rozkurczowe
, names = c('skurczowe','rozkurczowe')
, main = 'Ciśnienie'
, horizontal = F
)
boxplot(wiek~wyksztalcenie, data = daneSoc
, col = 'lightgrey'
, ylab = 'Wiek'
... |
41611dfa2832575b639a5fa2eb4da694a25256c7 | e56c763de315654d5f4b801eca86b2475b2461d1 | /presentation.R | d2060e806a1fb71f90418b01c95d3bafed975d11 | [] | no_license | usuallycwdillon/world-systems-project | c8385eb1551045a44052bc403cad813945d75131 | aac50d2d03f575a70ace4dff33a19e08aca0dd63 | HEAD | 2016-09-05T19:36:18.383059 | 2014-12-03T17:18:40 | 2014-12-03T17:18:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 522 | r | presentation.R | library("rstudio", lib.loc="~/R/x86_64-suse-linux-gnu-library/3.1")
library("R6", lib.loc="~/R/x86_64-suse-linux-gnu-library/3.1")
library("slidify", lib.loc="/usr/lib64/R/library")
library("slidifyLibraries", lib.loc="/usr/lib64/R/library")
#author("presentation")
setwd("presentation")
slidify("index.Rmd")
# ```{r ... |
0591f9a0a03797fdd43fe7361d04341376f31a62 | d080effd2b36deb9be0e0e7d9fed15267adccea1 | /man/reexports.Rd | ead1c4bca0050f5f27f28d0f0abbebd202476455 | [] | no_license | xiangpin/tidytree | cf2246e2746a50b493ed0295ad35738917888087 | ea4bf11d0b2f45312a22afad10c1b3f397248a5c | refs/heads/master | 2023-08-18T02:11:11.826299 | 2023-07-15T07:57:00 | 2023-07-15T07:57:00 | 227,064,787 | 0 | 0 | null | 2019-12-10T08:19:15 | 2019-12-10T08:19:14 | null | UTF-8 | R | false | true | 1,369 | rd | reexports.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/reexports.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{as.phylo}
\alias{\%>\%}
\alias{\%<>\%}
\alias{as_tibble}
\alias{tibble}
\alias{filter}
\alias{arrange}
\alias{select}
\alias{rename}
\alias{mutate}
\alias... |
834703a3161a65557afbc597ffa7b62f8f0da058 | 143b4224abf9cd7fb8fd9b01d7903a3a44a64fed | /2) Summary.R | aacfd7dc0f411edbc5e6d96e00e398325ec0c743 | [] | no_license | SebPouliot/E85-survey---data-and-code | 991097193ba78dc079a713cea0ec65d58d0d0601 | 147b2105481052448429cad59eaff35ea2ede54d | refs/heads/master | 2020-03-18T22:54:16.575559 | 2018-10-15T18:10:02 | 2018-10-15T18:10:02 | 135,365,097 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,951 | r | 2) Summary.R | # Clear memory
rm(list = ls())
#########################
### Load packages ###
#########################
if (!require("pacman")) install.packages("pacman")
pacman::p_load(dplyr)
pacman::p_load(xlsx)
pacman::p_load(readxl)
pacman::p_load(stringr)
pacman::p_load(tidyverse, ggplot2, actuar, viridis)
pacman::p_load(e... |
8546a76cda791bb2d3c31b29b51ca91f99248f7b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/regclass/examples/see_models.Rd.R | 49c9a479fcc10119a8653ac66f53be9035e805a0 | [] | 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 | 500 | r | see_models.Rd.R | library(regclass)
### Name: see_models
### Title: Examining model AICs from the "all possible" regressions
### procedure using regsubsets
### Aliases: see.models see_models
### ** Examples
data(SALARY)
ALL <- regsubsets(Salary~.^2,data=SALARY,method="exhaustive",nbest=4)
see_models(ALL)
#By default, reg... |
5327b27f84c1fe98f7e54119ffbd9d6477d52933 | 27b622ba3d99a98cd886c75fa321592c387b42ef | /Wyjsciowki/W2/gr1/NowikowskiAndrzej/sample/app.R | 0079df15b40545ae5a0dc56d30063b9fb7ff2159 | [] | no_license | Kaketo/2020Z-ProgramowanieWR | 76c560d06b1705a6ba8ab904bbab7fafba035d99 | d4c3b8654666716ac93f7c55c841e0f79fc9cd01 | refs/heads/master | 2020-08-05T15:44:34.804707 | 2020-01-30T07:13:43 | 2020-01-30T07:13:43 | 212,601,214 | 1 | 0 | null | 2020-01-30T07:09:58 | 2019-10-03T14:30:35 | HTML | UTF-8 | R | false | false | 2,020 | r | app.R | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(DT)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application... |
8613ab7b2ed3d7bcad261f9d1535aaebcf411f97 | 6eeffc5b83a920bc7f357af3312970fa0a5a84d3 | /man/ols_prep_rstudlev_data.Rd | 6d976ce110b9e57b772e73df58d612f3d084beee | [] | no_license | cran/olsrr | 81fe16ddb7b43e33254a7262283d39e37ce4a533 | 215958dfa67b03943c34a12cf6e3774d628fcda7 | refs/heads/master | 2021-06-24T07:12:32.809254 | 2020-02-10T11:00:02 | 2020-02-10T11:00:02 | 90,952,056 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 500 | rd | ols_prep_rstudlev_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ols-plots-data.R
\name{ols_prep_rstudlev_data}
\alias{ols_prep_rstudlev_data}
\title{Studentized residual vs leverage plot data}
\usage{
ols_prep_rstudlev_data(model)
}
\arguments{
\item{model}{An object of class \code{lm}.}
}
\des... |
ac22d5b0f5a48f239db38177a410db2d85937a0e | 7ab0b6d8bad7e7824528d1f05c10792759cabab1 | /man/department_quotes.Rd | ccba087271d30631db3f33ecce1478d6ecd5a054 | [] | permissive | tbradley1013/dundermifflin | a4711e3cd02d494885a30a34ddca877f04cb2ff9 | 691045dbfe6ab526caa4db4240ea378f81f5262d | refs/heads/master | 2020-05-01T06:33:37.546458 | 2020-02-27T13:18:15 | 2020-02-27T13:18:15 | 177,332,858 | 20 | 1 | MIT | 2020-02-04T14:45:54 | 2019-03-23T19:42:59 | R | UTF-8 | R | false | true | 614 | rd | department_quotes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/departments.R
\name{department_quotes}
\alias{department_quotes}
\alias{sales}
\alias{accounting}
\alias{customer_service}
\alias{hr}
\alias{reception}
\alias{corporate}
\title{Get quotes from different departments of the office}
\usage{
sale... |
068c71eefa30fa78878a9b7978c270cef5aff2d9 | 2c38fc71287efd16e70eb69cf44127a5f5604a81 | /inst/pipelines/_targets_r.R | 61c9de9106602159dd4d5cdaaea1520db11d7885 | [
"MIT",
"Apache-2.0"
] | permissive | ropensci/targets | 4ceef4b2a3cf7305972c171227852338dd4f7a09 | a906886874bc891cfb71700397eb9c29a2e1859c | refs/heads/main | 2023-09-04T02:27:37.366455 | 2023-09-01T15:18:21 | 2023-09-01T15:18:21 | 200,093,430 | 612 | 57 | NOASSERTION | 2023-08-28T16:24:07 | 2019-08-01T17:33:25 | R | UTF-8 | R | false | false | 747 | r | _targets_r.R | # Generated by targets: do not edit by hand
library(targets)
lapply(
X = list.files(
path = file.path(targets::tar_path_script_support(), "globals"),
pattern = "\\.R$",
full.names = TRUE,
all.files = TRUE,
recursive = TRUE
),
FUN = function(path) {
eval(
expr = parse(file = path, kee... |
df14280deed5134b1b846a3c90849d209b3d7a68 | 0a1bc1eb634a00bc9d540ef166316f1920ec2df8 | /man/search_criteria.Rd | cfbada3bbc5e11634ba2d7a6ff9a421281cfe788 | [] | no_license | gorcha/vision6 | 58809b277e3f8052ad348d5d1755d2a776ba5890 | e3d2a1036bbe88d0237f5686b2de450c7bd563b9 | refs/heads/master | 2021-06-03T05:32:29.461543 | 2019-01-31T00:33:49 | 2019-01-31T00:33:49 | 26,483,732 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 4,390 | rd | search_criteria.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search_criteria.R
\docType{class}
\name{search_criteria}
\alias{search_criteria}
\title{Vision6 Search Criteria}
\description{
Vision6 Search Criteria
}
\section{Introduction}{
The API includes search methods for most of its objects. Overall... |
fb114921c85d80da6018c8de58c8ba9a50e946a9 | 12bceb84f607a7de1d7f30f8f31aef8a2a794491 | /Project 2.R | 1c156b6816dc03f840438ecf3515db4195c8c4ff | [] | no_license | K-Shao/RML | 74be4cd00bb8aeb60f33c0c754017e736176a385 | 43c8016bb6edba2f386c6c61b4d3e6dc1e9e7c94 | refs/heads/master | 2020-03-16T23:24:00.420221 | 2018-05-28T00:58:18 | 2018-05-28T00:58:18 | 133,075,699 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,605 | r | Project 2.R | library("png")
library(class)
library(magick)
library(randomForest)
library(MASS)
library(party)
#GENERAL
rawtrain = read.csv(("C:/Users/imjef/Documents/Schoolwork/Machine Learning/Project 2/mnist_train.csv"))
for(i in 1:784) {
colnames(rawtrain)[i+1] = paste(toString(ceiling(i/28)),toString(i%%28),sep = ".")
}
co... |
7e3ee5fa6ceb5c1bbb67c154e3457aa42b6877df | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/coalitions/examples/pool_austria.Rd.R | cbfaf21b8af26ebee7871771b84ea82c1b81c32d | [] | 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 | 298 | r | pool_austria.Rd.R | library(coalitions)
### Name: pool_austria
### Title: Pool surveys from different pollsters
### Aliases: pool_austria
### Keywords: internal
### ** Examples
library(coalitions)
library(dplyr)
latest <- get_latest(surveys_sample)
pool_surveys(surveys_sample, last_date=as.Date("2017-09-02"))
|
30bbc0c9f0afc3ab37f9f6c228e447e197b3091e | 0baf34856c8799b5005029618cda2d75ee37f85a | /run_analysis.R | b1df6fca7e074553c9a0de41d4d97b6cc06e5121 | [] | no_license | jroemer01/R-ProgrammingW4 | f9ed5d201340d7612806b01369e506244d2e5be4 | 1b9e5e2140a4ed6c086d7a67dffdd7c5c32041a0 | refs/heads/master | 2021-01-23T04:45:08.532828 | 2017-02-04T21:55:15 | 2017-02-04T21:55:15 | 80,380,827 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,925 | r | run_analysis.R | # Program to analyze and produce a clean dataset from the a wearable data set
# Goals of the assignment
# Merges the training and the test sets to create one data set.
# Extracts only the measurements on the mean and standard deviation for each measurement.
# Uses descriptive activity names to name the activities in t... |
096a8a007bb0952b53d1a06217cd05e53d1341f0 | 0bd8aa996d316ba43987899fa5aab62f4e807fad | /inst/testdata/nmrData.R | 2bb780929a588be9daeff06c02f6476e521d4ebc | [
"BSD-2-Clause"
] | permissive | clabornd/pmartR | 060e2c848558669787ef06d78b3f990d76f5053a | 6cf6edc071a7d4689d2eca845b71e19d9028025e | refs/heads/master | 2023-04-14T08:56:05.621140 | 2023-03-01T21:40:51 | 2023-03-01T21:40:51 | 146,666,950 | 0 | 0 | BSD-2-Clause | 2023-03-01T21:40:52 | 2018-08-29T22:44:12 | R | UTF-8 | R | false | false | 1,205 | r | nmrData.R | # The purpose of this script is to demonstrate how the e_data, f_data, and
# e_meta data frames were created. It should NOT be rerun because the data sets
# in pmartRdata will change over time and this will lead to errors in the unit
# tests.
# Construct the data to test the as.nmrData function. ----------------------... |
f2771334d206bec13e3bb5dce7e2ed83141bf111 | 2449a7f03f9abeb0deb99988f8c3a1a2edbaa7b6 | /R_Churn_Assignment.R | 5acd39f603407dbd2344831e5616899b3fd5554e | [] | no_license | parag-123/R_Assignments | 4cd45340c94671bf00a86b97d9499472b569125d | 43408ebf8614edb8d1635f9886479fe0cf166056 | refs/heads/master | 2021-09-05T13:48:20.253123 | 2018-01-28T10:48:27 | 2018-01-28T10:48:27 | 113,855,940 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,685 | r | R_Churn_Assignment.R | setwd("D:\\Project\\parag Personal\\aegis")
getwd()
churn_data = read.csv("Churn .csv")
str(churn_data)
summary(churn_data)
names(churn_data)
head(churn_data)
class1 = subset(churn_data,Churn ==1)
class0= subset(churn_data, Churn ==0)
smpsize1 = floor(0.70 * nrow(class1))
smpsize2 = floor(0.70* nrow(clas... |
11ce94033b8bef030a0f27b6b20300b91a2fde98 | 0284de80cfff37487af4e7ad3323cb1b0f189c3c | /svm_trend_follower.r | 83d1f3d53c5887efddd8b41ddbf1aee2d32de526 | [
"MIT"
] | permissive | dkanu/quantpac | f12bce1092550331d3d4a7c4a29f69bbf2444eb7 | b3a00dffb9f8e98f67b7563356661e35f2f59921 | refs/heads/master | 2020-04-27T00:58:12.651924 | 2019-03-12T02:57:38 | 2019-03-12T02:57:38 | 173,951,299 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,440 | r | svm_trend_follower.r | ####################
## SVM Model
## Kernel types - linear, polynomial, radial, sigmoid
####################
##############################
## MODELS
##############################
kern_type = "polynomial"
#TSLA
tsla.svm.factors <- c('LR1.2', 'LR3.2','LR1','LR3','LR1.1','LR3.1','LR1.10', 'LR3.10')
tsla.svm.formula <- a... |
778141a37c886ceb977cb83c28a26e67c1bd2f55 | 68a25655e8c34aa342358292db38ceaca9b77352 | /man/walk_git.Rd | fff2e99dd84dcfe5a2846d37995b02b417d7dcbc | [
"MIT"
] | permissive | maurolepore/checkout | 5071bd4df7fae1563b2073b563882a43f6dc298c | 904634713fd80242ad28bef0db4a49913287bd64 | refs/heads/main | 2023-02-14T16:23:22.612469 | 2021-01-07T22:23:42 | 2021-01-07T22:23:42 | 326,776,447 | 0 | 0 | NOASSERTION | 2021-01-08T00:48:06 | 2021-01-04T18:41:41 | R | UTF-8 | R | false | true | 1,372 | rd | walk_git.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/walk_git.R
\name{walk_git}
\alias{walk_git}
\title{Pipe-able, vectorized, and lightweight implementation of git in R}
\usage{
walk_git(path, command, verbose = FALSE, stop_on_error = TRUE, ...)
}
\arguments{
\item{path}{Path to one or multipl... |
f439827b1129286f7d9b3b4558ee644983652cc5 | 51952fc1aff4919a94dafadbe41e62f6662aabe0 | /man/panel.function.demo.Rd | 8a0cfc3d3c33585055332da5ae1cbb9ef688da4c | [] | no_license | claus-e-andersen/clanLattice | 6bcdec4cebcf055fe7f38e799b82f3f28b9421c0 | 1a5c691d8d8fc65e757b13435248daaae4274690 | refs/heads/master | 2023-04-06T13:36:34.638721 | 2023-03-20T18:40:53 | 2023-03-20T18:40:53 | 22,569,616 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,219 | rd | panel.function.demo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subscript-groups-panel-function-demo-function.R
\name{panel.function.demo}
\alias{panel.function.demo}
\title{Demonstration of how to write a panel function (subscripts and groups)}
\usage{
require(grid)
require(lattice)
pp <- panel.functio... |
edac18622eba8e9a9c24aac8d8676a630bb0a50c | c1ab4b3a822f1407267e60819925dfe027e1a603 | /utils/runApp.R | 1c7932fcaf80b17e2444910eb3ee1635f345f87c | [] | no_license | Gnolam/shinyNodeProxy | abd752bd3cbf09db345101751c7cb05611b2ed0b | 99ed425438d239fc7db234d2747a03e75d4a680f | refs/heads/master | 2021-01-17T21:32:27.874444 | 2015-10-02T09:48:45 | 2015-10-02T09:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 404 | r | runApp.R | # lauch app using given port
args <- commandArgs(TRUE)
appWd = file.path(args[2])
port <- as.integer(args[1])
Sys.setlocale("LC_ALL", 'en_US.UTF-8')
print(sessionInfo())
message(paste('Set working directory to',appWd))
setwd(file.path(args[2]))
if(dir.exists('packrat')){
message('Packrat found. Initialisation.'... |
4d23c85870e7aec7ce5c70f29017fd9b6c3b10a4 | 5749c63ff48ff868bff23f9bcb4fddd5870c0b40 | /R/modify_sql.R | 183a73d7f934d0a949d5e68a03cd4df00b0eee50 | [
"MIT"
] | permissive | thuyetbao/pool.extra | 234164a3f23f196d7b12fdda663322a8b20b9346 | 6ab7dee7e49fe815a9082b3eb3942a90903d2d8b | refs/heads/master | 2023-03-31T18:54:41.457249 | 2021-04-02T18:05:52 | 2021-04-02T18:05:52 | 352,385,884 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 670 | r | modify_sql.R | #' Modify SQL
#'
#' @description build-in function to manage SQL statement for pool method with binding fields features
#' @export
modify_sql <- function(pool, statement, ...) {
#' Arguments
parameters <- rlang::enquos(...,
.named = FALSE, .ignore_empty = "all",
.homonyms = "error", .check_assign = TRUE
... |
2f225a5decf6a96f951a6c531ff911b9cc026161 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/MRH/examples/plot.MRH.Rd.R | 49fb454e1e4ea751d330cace30d4dee3aabe5783 | [] | 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 | 1,813 | r | plot.MRH.Rd.R | library(MRH)
### Name: plot.MRH
### Title: Plots the hazard rate (with credible bands) of an MRH object.
### Aliases: plot.MRH
### ** Examples
# These MRH fit portion of the examples are from the
# estimateMRH() help page.
# They do not need to be re-run if the objects
# are already in the active workspace.
dat... |
6f0c04750246d00087ad1703c36e0ee45d38daaf | 3b11f8cf2b040254ab2d178be28645564746f9e5 | /graphs_displayed_in_post.r | 4c95dfa053f7707bfbef7e190171455f0acb959d | [] | no_license | rcuevass/GAMs_exploration | 6dea3ecad24f225e070e99d61d26e2b87e3683a5 | 3c56953ab89b3b5617ef805a7bd374381aebf995 | refs/heads/master | 2020-12-30T14:01:00.153118 | 2017-05-16T02:10:08 | 2017-05-16T02:10:08 | 91,277,926 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,148 | r | graphs_displayed_in_post.r | install.packages("demandr")
library(mgcv)
library(demandr)
library(grid)
library(ggplot2)
library(splines)
### Simulated data
set.seed(3)
x <- seq(0,2*pi,0.1)
z <- sin(x)
y <- z + rnorm(mean=0, sd=0.5*sd(z), n=length(x))
d <- cbind.data.frame(x,y,z)
d1 <- cbind.data.frame(data.frame(predict(smooth.spline(x=d, spar=... |
d824c97952b4d879a5eb6f5eab4dc2e04686b3c4 | eb4667b178e418d936c35569383e5cb0663f93ad | /R/MVA.trajplot.R | 4e48c68d320cfd64a670734ee58ee2442b800453 | [] | no_license | cran/RVAideMemoire | 21081d49de9999a7438c40de05ab67a145336a02 | 6a48aaa7facac606e954b06a9cc1ea46b387d575 | refs/heads/master | 2023-08-31T00:44:09.327145 | 2023-08-23T07:30:05 | 2023-08-23T09:30:39 | 17,692,998 | 7 | 7 | null | null | null | null | UTF-8 | R | false | false | 5,507 | r | MVA.trajplot.R | MVA.trajplot <- function(x,xax=1,yax=2,trajects,trajlab=NULL,scaling=2,set=c(12,1,2),space=1,xlab=NULL,ylab=NULL,
main=NULL,pch=16,cex=1,trajlab.cex=1,col=1,lwd=1,lty=1,points=TRUE,allpoints=TRUE,arrows=TRUE,labels=NULL,
main.pos=c("bottomleft","topleft","bottomright","topright"),main.cex=1.3,legend=FALSE,legend.... |
d432c6d91ece6ca65a9098f262529ab0be539db7 | c3e04ef4e700775930070ad531746e2b3fab08ef | /13_factors_i/13_factors_i.R | fe465dbff05251b162bd44e2936c61734572a303 | [] | no_license | pinkstonax/r-training | fa27190959c14d68db3406f01a31b2ec5df6d8af | 49e6a4955e0c0aa9f66d363e338ea11b09643754 | refs/heads/master | 2021-05-18T16:16:16.566183 | 2020-05-29T03:01:18 | 2020-05-29T03:01:18 | 251,313,316 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 5,171 | r | 13_factors_i.R | ##### Factors Part 1 (R for Data Science, chapter 15)
##### Amanda Pinkston
##### May 14, 2020
setwd("C:\\Users\\Amanda\\Documents\\work stuff\\r-training\\13_factors_i")
library(tidyverse)
### Factors are used to work with categorical variables,
### variables that have a fixed and known set of possible val... |
6a92a9075c5a317e6dbbe89a4a9af33c32ee7801 | 089f560b12e6de236bc52852a05c6ad6c09df17e | /man/dengue_nowcast.Rd | f41f5cd630941f7a265bea2b904ca23ebfa96851 | [
"MIT"
] | permissive | mlamias/delphiepidata | e392c518f6f4c0c0d1c8d102c62845243e75ec30 | 7dc9eb67a3530cc027e66d3ccc7e31003cd7f536 | refs/heads/master | 2022-01-15T20:01:27.577372 | 2019-05-29T12:18:00 | 2019-05-29T12:18:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 450 | rd | dengue_nowcast.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/f.R
\name{dengue_nowcast}
\alias{dengue_nowcast}
\title{Fetch Delphi's PAHO Dengue nowcast}
\usage{
dengue_nowcast(locations, epiweeks)
}
\arguments{
\item{locations}{a \code{list} of \link{delphi_regions} and/or \link{dephi_states}}
\item{e... |
727cce8aeeac4be890938c73eab0e5447cc2b1e3 | 8a4c12aa2cee6ccefb9dee6d512654edab7cef49 | /man/add_site_metadata.Rd | eeae4a3e71f076842b7d7de8e674d3d0a4ec66d6 | [
"MIT"
] | permissive | KWB-R/kwb.pilot | f44701480daf2616ee0c5393bfc2d1aad63e134a | e7189f774e3b675a30410a05c13bcd075c07fe92 | refs/heads/master | 2023-03-26T00:59:41.048255 | 2022-10-25T05:37:38 | 2022-10-25T05:37:38 | 224,645,693 | 1 | 0 | MIT | 2022-10-25T05:37:39 | 2019-11-28T12:11:19 | R | UTF-8 | R | false | true | 750 | rd | add_site_metadata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/import_data_basel.R
\name{add_site_metadata}
\alias{add_site_metadata}
\title{Helper function: add site metadata}
\usage{
add_site_metadata(
df,
df_col_sitecode = "SiteCode",
meta_site_path = package_file("shiny/basel/data/metadata/meta... |
8958937bab3da8dc41db1c23bcfd1ef8ca7859ea | 12e3d5f8618bbc113e6f039b7346fc5d723015c9 | /Stats_I/Class14/2-way Lab Practice ForClass.R | 2e9e4485d10263f9f4f12203bdee61e6c6504763 | [] | no_license | raschroeder/R-Coursework | 4af2ded6e9af2c0c64697dcc796a12e508f38ae4 | 1e9800b00f84cb4092c956d9910a710729b9aff3 | refs/heads/master | 2020-04-05T12:44:28.824912 | 2019-02-06T15:59:07 | 2019-02-06T15:59:07 | 156,878,511 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,268 | r | 2-way Lab Practice ForClass.R |
# Load necessary packages
library(ggplot2)
library(afex)
library(dplyr)
library(emmeans)
################################
######## Readin data ##########
################################
setwd("/Users/rachel/Box\ Sync/R\ Coursework/Class14")
DataSet<-read.csv("PracticeData.csv", sep = ",")
DataSet$Training <... |
4d48053b7ea238438e30a716a63f71f6bc665ab5 | c54c80b4a54bbfc73249f5cb500183ff2e3c89cd | /man/calc_abundance.Rd | 430f9e317568a3738a6af8cf7e8331d3bba8a266 | [
"MIT"
] | permissive | friedue/SCEdjvdj | 23822d84cae0c882fafe327b6f28a3b5e5e3f8c0 | de4976f60fea0bb45f464a0796475753fa0af72e | refs/heads/master | 2023-04-04T14:25:35.593631 | 2021-04-19T18:58:16 | 2021-04-19T18:58:16 | 339,117,840 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 852 | rd | calc_abundance.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_abundance.R
\name{calc_abundance}
\alias{calc_abundance}
\title{Calculate clonotype abundance}
\usage{
calc_abundance(
SCE_in,
clonotype_col = "cdr3_nt",
cluster_col = NULL,
prefix = "",
return_SCE = TRUE
)
}
\arguments{
\item{... |
e859370dc2a4331575769ac21fddfd082ce09d2f | 929c1c7a62e838e09ff576a41e96b6799d355508 | /R/percentageAlignment.R | 302c507d63f25d667377fcb9cbdeeb40ccef7306 | [] | no_license | pjiang1105/TimeMeter | be6ac05bcda96f1089387bdde7c6f5ad66b95707 | 970970b5b3b495f789c0e6a532d9436e856300ca | refs/heads/master | 2022-02-11T07:42:49.654558 | 2022-01-27T02:23:15 | 2022-01-27T02:23:15 | 251,404,867 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,161 | r | percentageAlignment.R | #' Percentage of Alignment
#'
#' This funciton calcualtes the percentage of alignment for query and for reference, respectively: the length of reliable aligned time interval in query (or in reference) divided by total length of query (or reference) time interval.
#'
#' @param timePoints_query A vector containing time p... |
f4fea42f409bb799045766cd0025481057c82ea7 | 2a3a7c24fa92e7bc167a3b058dfc0f49ecb749b4 | /cachematrix.R | 9f98729d744a30ba1abc8069e5affebe91b0ca3e | [] | no_license | lclaudiotj/ProgrammingAssignment2 | acf04710ffadac4138103b33fdfb9a5f0ef20772 | 39686adba18bf8394a97eec497345ddb7df9c0b7 | refs/heads/master | 2020-12-25T11:31:55.561996 | 2015-02-21T00:28:54 | 2015-02-21T00:28:54 | 31,077,236 | 0 | 0 | null | 2015-02-20T17:58:36 | 2015-02-20T17:58:36 | null | UTF-8 | R | false | false | 1,550 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## This function returns a list containing four functions: set, get,
## setmatrix and getmatrix
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) { # This f... |
76a52e50e10453fdce156a09f367b93725f8e5f7 | 818dd3954e873a4dcb8251d8f5f896591942ead7 | /Mouse/S1_S2_AIL/preprocessing.R | 6f9054080ebdf80d06730d4d20149ea4d21db74e | [] | no_license | DannyArends/HU-Berlin | 92cefa16dcaa1fe16e58620b92e41805ebef11b5 | 16394f34583e3ef13a460d339c9543cd0e7223b1 | refs/heads/master | 2023-04-28T07:19:38.039132 | 2023-04-27T15:29:29 | 2023-04-27T15:29:29 | 20,514,898 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,575 | r | preprocessing.R | setwd("D:/Edrive/Mouse/S1_S2")
locusxdnaheader <- unlist(strsplit(readLines("Humboldt_Univ_Zu_Berlin_MURGIGV01_20191205_LocusXDNA.csv", n=16)[16],","))
locusxdnasnps <- unlist(strsplit(readLines("Humboldt_Univ_Zu_Berlin_MURGIGV01_20191205_LocusXDNA.csv", n=18)[18],","))
locusxdna <- readLines("Humboldt_Univ_Zu_Berlin... |
bd24bb70ea4bc0699ddf067e565ff81c82d279fc | 283409d2a37155d58855bc9be3b78e0ad7cdacb8 | /Assignment-1/4.R | f0fdc658ed9b5fb84ffa119172e5bec9a395d9ae | [] | no_license | VivianeLovatel/Brasil_2019 | ddca243336145336c94ce09ff97d1918bf67e95d | 82128b52ed7fa47d343cfaccf6da698f44e9883a | refs/heads/master | 2020-07-07T00:45:58.305182 | 2019-08-20T15:20:36 | 2019-08-20T15:20:36 | 203,190,340 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 99 | r | 4.R | z=8460.2
print(z)
as.numeric(z)
print(as.numeric (z))
as.integer(z)
print(as.integer(z))
print(z>0) |
14256aafee76d7e38696e2adda1aed7e1f331984 | c442d726a8e6301ccc17557ca91bde15f71372af | /man/dryad_metadata.Rd | f35982b217dbeae900a28360e2653267751bb8ba | [
"MIT"
] | permissive | alrutten/rdryad | 5dcad01bcef7167e2d47c0eac99fad39d717f83e | 134707a89a1156f4e6d0b3cf4f5ab6e11501ecd8 | refs/heads/master | 2020-12-28T04:17:47.720281 | 2019-12-09T14:44:49 | 2019-12-09T14:44:49 | 238,179,247 | 0 | 0 | NOASSERTION | 2020-02-04T10:26:21 | 2020-02-04T10:26:20 | null | UTF-8 | R | false | true | 884 | rd | dryad_metadata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dryad_metadata.R
\name{dryad_metadata}
\alias{dryad_metadata}
\title{Download Dryad file metadata}
\usage{
dryad_metadata(doi, ...)
}
\arguments{
\item{doi}{(character) A Dryad DOI for a dataset of files within
a dataset}
\item{...}{Further ... |
dbab06a1fcaea8d059cdbd6ac877feb7049f03dd | 8b053a2925e8a6bd7a494ef3ec32a755030435e9 | /figCode/fig4.R | 39fff42e4b7972af068e9fccfe12f105c309bd9d | [] | no_license | nofarbardugo/BCR_lineage_Trees | 95f05fffa96eb78c3cf7b6aa833110a123102175 | 2228349d0b01ec07be627e5ab3bf97cef934aa63 | refs/heads/master | 2021-01-10T05:41:47.028043 | 2015-12-05T18:09:40 | 2015-12-05T18:09:40 | 47,058,408 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,477 | r | fig4.R | source.dir <-'/home/nofar/Desktop/project papaers/dataForFinalGraph'
source.dir <-'/home/nofar/Desktop/LabProject/data'
setwd(source.dir)
library(ggplot2)
library(reshape2)
library(grid)
library(scales)
library(plyr)
library(gridExtra)
library(cowplot)
library(lattice)
library(RGraphics)
grid_arrange_shared_legend... |
2bbb5f2387f0b75ae7c863e4e6f48e0a65ad58b9 | 5212d838901fc5172dbc995b87ed014d2766a7f2 | /sensitivity_analysis/exo1.R | 8868a7c8e6061c1c74f94a11ecf40531201d0119 | [] | no_license | fideledegni/small-data-emse | cb92db1abcb4844807ecaecbc82a8b28bf12f980 | dddbd436ae54a0a4eecf92992e4fdd137f93f659 | refs/heads/master | 2021-05-13T16:56:25.677353 | 2018-01-12T18:11:36 | 2018-01-12T18:11:36 | 116,806,472 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 2,169 | r | exo1.R | #####################################################
# Compte rendu de TP Sensibility analysis #
# DEGNI Fidèle #
# RODRIGUES Leticia #
#####################################################
rm(list=ls()) # cleaning up
#setwd('~/Dropbox/IC... |
2babd926e8fe0bc85be5b516a2155bf1bc33f626 | 2a1b80a49c7aaf7a97ed8721dc95b30f382fb802 | /MI_RBIG_2016_copy.R | 4f7214faafa483a4c9b3e19513a7ae9e315f3f65 | [] | no_license | thaos/RBIG | 42a334c61edebc2177a435d078031620adaa075a | 9b9e5177943eed770aeebf748a57a9e361e1d669 | refs/heads/master | 2021-01-13T03:47:12.220454 | 2017-02-03T09:04:03 | 2017-02-03T09:04:03 | 77,227,106 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,421 | r | MI_RBIG_2016_copy.R | # Multi-information estimation using RBIG
#
# The user can choose two orthogonal transforms:
#
# 'PCA' = PCA
# 'RND' = Random Rotations
#
# USE:
#
# [MI] = MI_RBIG_2016(dat,N_lay,transform,porc,precision)
#
# INPUTS:
# dat = data ( #dimensions , #samples );aim
# N_lay = number of layers (default N_lay = 1000)... |
3d091a3ce884bb33d40a78d87cb140329bd65e0c | 3622743043d910d9893c9f9a19a035e4ead1c275 | /man/cumQdate.Rd | 2708f42955f06282c115b4a082322f8e36382dc9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | cran/EGRET | 1513c548cfc95a8882e216438bafe1f6c0779150 | 89bec3ad99d63be00eac2ca5817ac2c7fca7fbc8 | refs/heads/master | 2023-04-29T13:23:05.071777 | 2023-04-18T15:30:02 | 2023-04-18T15:30:02 | 26,901,518 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,822 | rd | cumQdate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cumQdate.R
\name{cumQdate}
\alias{cumQdate}
\title{Cumulative flow calculation}
\usage{
cumQdate(eList, paStart = 10, paLong = 12, fract = 0.5)
}
\arguments{
\item{eList}{named list with at least the Sample and INFO dataframes}
\i... |
78db640d9fcce234e5acf6890283bf0fdc6b7c66 | d47118bb523fd113bd0a092e0664389bd39ed0a3 | /code/Ailaoshan_species_richness.R | dbd5fec5f7900be29c64b0f63d51939f311f46f4 | [
"MIT"
] | permissive | bakerccm/ailaoshan | 7b23087e6ed8e0cc617fb2813c5df22694f399e8 | 1be8d47fb88718997f2a2cec63e442c67ce1f55e | refs/heads/main | 2023-01-05T18:10:50.056963 | 2020-10-28T22:30:35 | 2020-10-28T22:30:35 | 308,143,689 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,950 | r | Ailaoshan_species_richness.R | # R code to examine difference between species richness and community occupancy
library("here")
library("tidyverse")
library("R2jags")
########################################################################################
# input and output file names
filenames <- list(
modeldata.LSU.rdata = here("rda... |
ebe3bbbc7f5beb429fe4e2cf175d463520fffd15 | 11eb0ab12619b909519e47113b90441afc0fa272 | /bloom filter.R | 7c66ed16eab2f491a80a82d4fda5f47fad5f417b | [] | no_license | pareshg18/Spam-Detection | b67ac8c826896ac39e0b3f13725c728081832705 | 89ae5474bf65abe51ee8cc8e1fd87f3330f49832 | refs/heads/master | 2020-04-12T02:50:31.306496 | 2018-12-18T10:35:37 | 2018-12-18T10:35:37 | 162,255,510 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,510 | r | bloom filter.R | #Bloom Filter
install.packages("digest")
install.packages("bit")
library(digest)
library(bit)
spam <- read.table("listed_username_30.txt", sep = "\t", stringsAsFactors = FALSE)
colnames(spam) <- "usernames"
str(spam)
n <- nrow(spam)
p <- 0.07
m <- ceiling(-n*log(p) / (log(2)^2))
k <- ceiling(m/... |
b17fa2d17665d1c0aad5401a2ace698a21c853c6 | 52e7fbbac675d80127e7a5a9dc838c66b494cc15 | /plot4.R | 7d3193cb42b51698a7804c1a268246980135ae32 | [] | no_license | greenisagoodcolor/ExData_Plotting1 | 1bbeccf68d5901b72e537b52fd9093854c1762e4 | bb64a48019faae23672051874601d64afdf0e835 | refs/heads/master | 2021-01-18T11:25:50.312575 | 2014-05-11T15:57:57 | 2014-05-11T15:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,043 | r | plot4.R | #plot 4
elec <- read.table("household_power_consumption.txt", sep=";", header=TRUE, na.strings="?", colClasses="character")
elec[, 1] <- paste(elec[, 1], elec[, 2], sep= " ")
require(lubridate)
elec[, 1] <- dmy_hms(elec[, 1])
mar <- with(elec, elec[year(Date) == 2007 &
month(Date) == 2 & day(... |
30c38c037d99eb804779060ef0a3af74d67a391a | 8d50d409e7aa23e8d6cb45dd4999eda36043f08d | /man/SW.Study-class.Rd | 794854bdacb202e84b8681f5fd41b27b6e2c13fc | [
"MIT"
] | permissive | mattmoo/stepmywedge | edaa2f50dc2665be0c5bd9fdfd924262dd40a9c5 | 2e1ac9853998a8258978610b48b87bc748f0aab2 | refs/heads/master | 2023-04-28T01:16:41.150738 | 2023-04-13T01:09:57 | 2023-04-13T01:09:57 | 178,087,618 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 5,750 | rd | SW.Study-class.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SW.Study.R
\docType{class}
\name{SW.Study-class}
\alias{SW.Study-class}
\alias{SW.Study}
\title{A Reference Class to represent a stepped-wedge cluster-randomised trial.}
\description{
A Reference Class to represent a stepped-wedge cluster-ran... |
07e9a13c184a13d473646b1cef5782f50ca4bc38 | 3c7cc5d2ebea22a3d44b5fb04051dd1980b422cd | /rscript.R | 8e9995be817c0448757cf6b6f885fe76ff623bde | [] | no_license | karinahrne/uppsala-workshop | 18c95e3a1f0db7ce8ba2ae483e3b78c6c89ee746 | 16a28872b0c9e8ff703635751ee3a75dbd979fba | refs/heads/master | 2020-03-31T22:08:30.733014 | 2018-10-12T13:10:23 | 2018-10-12T13:10:23 | 152,607,389 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 413 | r | rscript.R | cats <- read.csv(file = 'data/feline-data.csv')
str(cats)
typeof(cats$likes_string)
str(cats$likes_string)
typeof(TRUE)
typeof(3.14)
typeof(3L)
typeof(1+1i)
another_vector<-vector(mode='character',length=3)
###work on cats dataframe to clean
if(!dir.exists('cleaned_data')){
dir.create('cleaned_data', showWarnings =... |
cda33de86ef1051496581b4de13295efb95e6bef | 8a08e766f0e12d6679ad32164f8f4e022db6128c | /8-02_GeneratorPurchasingProblem.R | 9c6b65b4a3147cd3093561738d0fc8481b2eddff | [] | no_license | earnor/IM3 | ff0198c235901023e7af5c91cb936a90490ddd0d | 6f2ed42f27832ae90ef85ccb1dec1377dc546fbc | refs/heads/master | 2021-01-19T15:19:19.098957 | 2017-09-07T15:40:52 | 2017-09-07T15:40:52 | 100,959,855 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,211 | r | 8-02_GeneratorPurchasingProblem.R | # *-----------------------------------------------------------------
# | PROBLEM NUMBER: 8.2
# | PROBLEM NAME: Generator Purchasing Program
# | UPDATE: AE
# | DESCRIPTION: Minimising purchase cost is the ultimate goal in
# | the search for generators to be puchased to meet
# | dema... |
07aaba988f0ddeedff83e2262e301f597d5ddb92 | 094ec4bbec762605f83d6af1b4de8266c7c6e0a6 | /man/pickPeaks_rcpp.Rd | ee55dec08512e811cf40159d391b18cd9f9f7b97 | [] | no_license | tkimhofer/jres | 09ada8e14ba4fe6f62babb722a304d7da2ba8bc9 | 2929fb11eb5581292ecf2386b620e9ef355f0fdd | refs/heads/master | 2023-04-21T05:27:26.463814 | 2021-04-29T11:23:16 | 2021-04-29T11:23:16 | 242,622,984 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 842 | rd | pickPeaks_rcpp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{pickPeaks_rcpp}
\alias{pickPeaks_rcpp}
\title{Perform peak picking and get bounding box dimensions}
\usage{
pickPeaks_rcpp(jr, f1hz, f2ppm, noise, boundary, sf, dbug)
}
\arguments{
\item{jr}{Jres matrix, f1 in rows and f2 ... |
63bb32927d8ee9c1ad9017b8069ccc76af1433aa | ed20ede20b5d75036148e771d353ca742a4bffce | /code/TT_es_calc.R | 45dbdb5aa7b7ffdafd0d6643ba057cd147044481 | [] | no_license | yaroslavtsevam/TT- | 4048befb6b4f8bc8ea489f8fd01f5c618c5157ba | 31093aff8360a16fc04b079f55a45e9c44d57016 | refs/heads/master | 2023-08-23T03:48:06.459193 | 2021-09-22T15:10:39 | 2021-09-22T15:10:39 | 238,436,254 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,369 | r | TT_es_calc.R | source("code/TT_Moscow_data_collection.R")
library(pracma)
# for wind interpolation
library(zoo)
library(tidyquant)
#Loading weather data
#AllData = BLTNdata[[2]]
BLTN = AllData %>% filter(Site=="BOLOTNAYA")
BLTN = BLTN %>% BEFadd( verboseFlag = "con")
BLTN = BLTN %>% left_join(read_delim("data/Bolotnaya_growth.cs... |
5c351740e5b7d8c264a1b9ec327aaaa5d66222a1 | 29585dff702209dd446c0ab52ceea046c58e384e | /discrimARTs/R/methods.R | eb7aafed99a9a133cbf72b38d7311f79c795116c | [] | 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 | 2,406 | r | methods.R | print.discrimARTs <- function(x, ...) {
.dat <- x[c('method', 'convergence','neglogLik','pars.init','MLE.est')]
.dat$pars.init <- unlist(.dat$pars.init)
print(.dat)
}
plot.discrimARTs <- function(x, npoints=1e3, main=NULL, xlab='Measured trait',
legend=T, legend.x=0.9, legend.y=0.9, legend.digits=3, l... |
08c184fc22778aa81c8d41ba655ed5653e7e64d9 | 6d03d53a99e228c29a9cdadbb58508de30905e16 | /man/gg_miss_span.Rd | b0844d4b3d1ddd78a6c04cd95b5f87b33cb9591a | [] | no_license | rpodcast/naniar | 4e8f6547d4aed9cbe7d7b189ce93cd25ea76b554 | b67795b110a25315894e02c433433e3965127d68 | refs/heads/master | 2021-06-22T06:39:47.063573 | 2017-07-31T08:52:15 | 2017-07-31T08:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,070 | rd | gg_miss_span.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{gg_miss_span}
\alias{gg_miss_span}
\title{Plot the number of missings in a given repeating span}
\usage{
gg_miss_span(data, var, span_every)
}
\arguments{
\item{data}{data.frame}
\item{var}{a bare unquoted variable name from... |
33cf2ac875a033997b5d6e777a919482e002e5e0 | 49679b97305617476aa1acd685ae31e0c7fadb87 | /All data extract/All data extract EXP5 EARLY AP5.R | 7a36038c6f6eb94e6b20f312568053723e309b4f | [] | no_license | mvegavillar/Accumbens-Rew-learning | 2541e07dc6e93f7ea1b39516f783f75f97470a20 | be221cf5777ec62365927213c613bc9dd6066664 | refs/heads/master | 2020-05-24T11:19:13.151823 | 2019-07-09T17:01:57 | 2019-07-09T17:01:57 | 187,246,076 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 97,474 | r | All data extract EXP5 EARLY AP5.R |
#############################################################
### EXPERIMENT 5A: EARLY AP5 VS VEH TEST ###
#############################################################
### LOAD IMPORTANT LIBRARIES
install.packages("matrixStats")
install.packages('ez')
library(matrixStats)
library(ez)
... |
9285175071535db093eb4c3fa115636fbd12d746 | 27cf5892118e03c3102ae3bb87c863820b36fa09 | /Basics/SVM.R | 2ad360d168b580a7bc197466e0881c92f9d904fb | [] | no_license | Mayuri666/Datascience_R_Codes | 76cd3bd11591dd8afc65a4aa8663446502da89e3 | 82392e03a566e601f63973117f51949879a7d452 | refs/heads/master | 2020-12-29T14:42:39.830894 | 2020-06-16T16:31:45 | 2020-06-16T16:31:45 | 238,641,937 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,004 | r | SVM.R | ####support vector machine###
##optical character recognition
letterdata<-read.csv("C:/Users/Mayuri/Desktop/R/letterdata.csv")
#divide into training and test data
letters_train<-letterdata[1:16000,]
lettersdata_test<-letterdata[16001:20000,]
#training a model on the data
#begin by training a simple linear SVM
library... |
dbd321260b5f307f168992d95582f14f6ecdc01c | 5c81fca53d67d7d542b249e358867302b8785aef | /chapter3.R | fa38883db3048eb844ffdb6b68da1ade8a1c3981 | [
"MIT"
] | permissive | standardgalactic/Principles-of-Strategic-Data-Science | ddc5fca95ebf6325e13a555c256d1a79f50f690e | 076f1bf0e6c97d3948a74ea43e1e7aeb2fdba396 | refs/heads/main | 2023-02-22T20:59:14.546675 | 2021-01-22T08:58:20 | 2021-01-22T08:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 586 | r | chapter3.R | ## Chapter 3
library(tidyverse)
library(datasauRus)
ggplot(filter(datasaurus_dozen, dataset %in% c("dino", "away", "star", "bullseye", "slant_up", "dots")), aes(x = x, y = y)) +
geom_point(colour = "#002859") +
theme_void(base_size = 20) +
theme(legend.position = "none") +
facet_wrap(~dataset, ncol=3)
ggs... |
61f48f9725609c1b55c9fcaf357afe3a8af82f8c | 1455df4c711d01ffb2f92a0141e541c8650068a7 | /man/bivariate.mixalg.Rd | ec454ef36d52aedce3ae61657cd68aa073b97060 | [] | no_license | cran/CAMAN | f3b9528fdb3c9bdbb68493e1b76b97340b4ebbb9 | 1321cb8e6fcc69c38eb403b1a3882ba875414559 | refs/heads/master | 2023-04-13T23:43:11.142110 | 2023-04-10T22:50:12 | 2023-04-10T22:50:12 | 17,678,211 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,957 | rd | bivariate.mixalg.Rd | \name{bivariate.mixalg}
\alias{ bivariate.mixalg }
\title{ EM algorithm and classification for univariate data, for bivariate data and for meta data }
\description{
Function}
\usage{
bivariate.mixalg(obs1, obs2, type, data = NULL,
var1, var2, corr, lambda1, lambda2,
p,startk, numiter=... |
2de9078fac4c34d82bc96188ee22d97c3e49e560 | 6203d49517402d700771023ce2f0644eb599c0a6 | /Lake Shenandoah PIT array.R | 95c0365383da8f57df0b48221d85cbc69b991ba1 | [] | no_license | Petersen-n/Shenandoah_Ladder | 8904341fd2049e0146465f17484098e97bfb0be5 | 4937440fe61d34424986a3e386580535e099fbf0 | refs/heads/master | 2022-12-02T04:54:02.944009 | 2020-08-17T17:42:14 | 2020-08-17T17:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,660 | r | Lake Shenandoah PIT array.R | ##########################################
#####Lake Shenandoah PIT Tagging Data#####
##########################################
library(PITR)
library("xlsx")
library(dplyr)
library(lubridate)
##set working directory for file locations##
setwd("Z:/BBP Projects/Herring work/Lake Shenandoah ladder/Analysis")
#####2013 ... |
de0891fed2592baf67296705d9fc1d61917b79c7 | 446373433355171cdb65266ac3b24d03e884bb5d | /man/saga_polygonshapeindices.Rd | 35f285c0b8868cce993bab87070b6e6b2d84bfde | [
"MIT"
] | permissive | VB6Hobbyst7/r_package_qgis | 233a49cbdb590ebc5b38d197cd38441888c8a6f3 | 8a5130ad98c4405085a09913b535a94b4a2a4fc3 | refs/heads/master | 2023-06-27T11:52:21.538634 | 2021-08-01T01:05:01 | 2021-08-01T01:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,047 | rd | saga_polygonshapeindices.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/saga_polygonshapeindices.R
\name{saga_polygonshapeindices}
\alias{saga_polygonshapeindices}
\title{QGIS algorithm Polygon shape indices}
\usage{
saga_polygonshapeindices(
SHAPES = qgisprocess::qgis_default_value(),
INDEX = qgisprocess::qg... |
74cb0d9a5400b799da50f30598b882607f2fa09d | 300164a320c3c7dd68e9df178f1f10d076d543fc | /man/url.exists.Rd | 5c80fc8aca54c4b01dc6e122a26980111089679f | [] | no_license | TuCai/phuse | 948fbe71cd10c69dd825dd880b7da1c74a7e585e | 7d55ffa8a2c5f5a87e06d8d7014446d1c323183b | refs/heads/master | 2022-09-25T11:25:49.612286 | 2022-08-27T21:56:19 | 2022-08-27T21:56:19 | 104,520,487 | 5 | 4 | null | null | null | null | UTF-8 | R | false | true | 621 | rd | url.exists.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/url_exists.R
\name{url.exists}
\alias{url.exists}
\title{Check URL based on httr package}
\usage{
url.exists(
url = "https://github.com/phuse-org/phuse-scripts.git",
show = FALSE
)
}
\arguments{
\item{url}{a URL for a remote r... |
e754660867b3577f17a6cc136f1d3b6074223712 | 86fec6bb6508d40823a0d13a3e21d150533ef718 | /man/aa.Rd | 6570c49c523e053bba599755cca945745220f5cc | [] | no_license | cran/ra4bayesmeta | 13a3db75206fdf536dda4143fa2f69bd92affc39 | 0f99279a852f29aed717c733781cf17a5745667b | refs/heads/master | 2023-04-09T06:14:44.552987 | 2021-04-23T06:50:03 | 2021-04-23T06:50:03 | 360,933,475 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,171 | rd | aa.Rd | \name{aa}
\alias{aa}
\docType{data}
\title{
Auricular acupuncture data
%% ~~ data name/kind ... ~~
}
\description{
Meta-analysis data set including 4 randomized, controlled trials comparing treatment completion among
cocaine dependents treated with auricular acupuncture versus sham acupuncture.
%% ~~ A concise (1-5 ... |
834b7115145364c213c30aec647d32d38cd90f8c | bae1fac453e2dab83be5be06d4361a79a18d331f | /TobiasDienerowitz/r/curation.R | 088a60b2d6a3c6d26276aeab42ad602966f817c0 | [] | no_license | TPeschel/life-for-postgraduates | 95d96cf4f1cfc3753164814aad0493f10ee5cb37 | cd77d99badb188c4164fc5fa9397b28795049673 | refs/heads/master | 2021-01-20T08:20:26.815652 | 2017-12-15T17:11:58 | 2017-12-15T17:11:58 | 90,131,311 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,483 | r | curation.R | rm( list = ls( ) )
hlpr4life::load.pkgs(
c(
"hlpr4life",
"lifecuration",
"ggplot2",
"dplyr",
"reshape2" ) )
load( "sent/2017.09.14/raw.dat.Rd" )
load( "data/main/main.table.2017.09.29.Rd" )
names( main.1205 )
obs.non.usable <-
read.csv( "sent/2017.09.14/non_usable_ob... |
e6ba5be3704103c31a02eebdec64cab48cf582f1 | dd4cbe0993d048caf2d42a36ba366cd160e81c98 | /R_code/AverageReads_boxplot.r | 911a8b662e45d3bc75048b2ebfac69a073f3a1c8 | [] | no_license | WilsonSayresLab/XY_RNAseq | d4d566d90b2d19d01ed95d08896598513d85eb20 | e0952a303f9bf4fa4f5095ea16f0ff168a3d62c8 | refs/heads/master | 2021-01-20T02:16:31.827701 | 2018-12-11T20:56:19 | 2018-12-11T20:56:19 | 101,312,363 | 3 | 3 | null | 2017-08-24T16:36:17 | 2017-08-24T15:49:19 | null | UTF-8 | R | false | false | 55 | r | AverageReads_boxplot.r | # Averagere reads mapped per trimming per tissue type
|
eff4f9ab5461524ffdcd48143c9303352d6efb80 | c1463667cf3ff1057859b4bbd956b7e1737bc187 | /Deploying an RShiny app.R | 11b11dfc40b81acf76f541a6787f8ddd3da86185 | [] | no_license | kshirasaagar/R-U-Ready | 0c6ce8d8d0bb297a754d2229c86ff268755720d7 | 1caf81814cdd9cc779771f763f34bbfa2fc424c9 | refs/heads/master | 2021-08-03T19:23:51.091305 | 2021-01-28T23:06:36 | 2021-01-28T23:06:36 | 30,675,127 | 1 | 1 | null | 2021-01-28T23:08:06 | 2015-02-11T23:24:22 | R | UTF-8 | R | false | false | 126 | r | Deploying an RShiny app.R |
#Deploying an RShiny app
library(shinyapps)
shiny::runApp()
shinyapps::deployApp('ui.R')
shinyapps::deployApp('D:\\shiny') |
9610dfb5887e2e9496bde476b81bc2fccf71b214 | 9bd345ce451e3710781394dfd90c6e187395d11b | /man/ProbLFacil.Rd | 959cfe51b67f93d6e2bea9804ceb0a2ceaed430e | [
"MIT"
] | permissive | farias741/Lotto | 76a4b63317c5eb513aef6e4185e62ca3dd690727 | 00539ad7817a5f4d47873d1267ee2be679bcd917 | refs/heads/master | 2023-07-20T14:50:42.943991 | 2021-09-02T14:15:39 | 2021-09-02T14:15:39 | 376,154,345 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 763 | rd | ProbLFacil.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ProbLFacil.R
\name{ProbLFacil}
\alias{ProbLFacil}
\title{Lotofacil lottery game probability}
\usage{
ProbLFacil(x, y)
}
\arguments{
\item{x}{number}
\item{y}{number}
}
\value{
number
}
\description{
The player simply chooses and dials betwee... |
da0813bcccc7edf665bb4e5d164cc861294e53fb | 52364584b0ef82609cbaaed17cbbdc399fd0ae17 | /Part4/graph1.R | 9793772c8ed4e97aa478f791ee4c5296ebca2b19 | [] | no_license | Pis02/R-Lecture | b8bdedfe9d68079921b3e06a4d08823bab22c1a7 | 805d0bf171e3bc5867bc453d577076008ed1ea39 | refs/heads/master | 2020-05-30T22:06:56.577331 | 2019-06-10T08:48:20 | 2019-06-10T08:48:20 | 189,987,169 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,812 | r | graph1.R | # 그래픽 기호
setwd("D:/Workspace/R_Data_Analysis/Part4") #setwd() -> directory 설정하기
getwd() #getwd() 설정된 directroy 확인하기
var1 <- 1:5 #1:5 = c(1,2,3,4,5)와 같음
plot(var1) #plot() <- R에서 그래픽 관련 가장 많이 사용되는 함수
var1 <- 5:1 #5:1 순서로 표현
plot(var1)
var2 <- c(2,2,2)
plot(var2)
x <- 1:3
y <- 4:2
plot(x, y)
plot(x, y, xlim = c(0, 5),... |
0237bfd897c6ef456397847bb49d271f3bb0ee46 | b5dc57aabe210849d34f7fa336c67e4916fcf599 | /man/rdd_robust_bw.Rd | dc26ee165b6e334dfcfbbdd73c7c84464a2870c2 | [] | no_license | shommazumder/shomR | ce9ad2ad591d095baa77ee38377376b79af080b5 | 29431d80e0f601b7186f89185ef95eeafcc60ae1 | refs/heads/master | 2020-03-21T09:38:54.136715 | 2018-12-20T19:14:34 | 2018-12-20T19:14:34 | 138,410,300 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 955 | rd | rdd_robust_bw.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r_utils.R
\name{rdd_robust_bw}
\alias{rdd_robust_bw}
\title{Robustness to bandwidth choice}
\usage{
rdd_robust_bw(data, forcing, outcome, cutoff = 0, weights = NULL,
ylab = "Outcome", xlab = "Running Variable", bw = NULL, se = T)
}
\argumen... |
999bb4202a5b600de1efdd69b7569198fc434781 | 5df4825b51b52eec94fcd80fb5fea637f31e6e16 | /tests/testthat/test-vignette-numbers.R | f56ca1bb1f4c67c94b991618e2ae918b891134ae | [
"MIT"
] | permissive | tidyverse/tibble | 4963bbc2f50ed2be854a68521bdc841700605c69 | 4de5c153ca5411fe2a02804a8cafb0edd9c664dc | refs/heads/main | 2023-09-02T03:16:56.769783 | 2023-05-28T02:09:45 | 2023-05-28T02:09:45 | 45,148,983 | 578 | 144 | NOASSERTION | 2023-05-27T07:18:08 | 2015-10-28T23:57:00 | R | UTF-8 | R | false | false | 60 | r | test-vignette-numbers.R | test_that("numbers vignette", {
test_galley("numbers")
})
|
6d27b6de317e7880ae999f005705119ac2d05062 | 0c45b9e10dcbc6401e661056972d4d7315c68e11 | /branches/micEconIndexEKS/data-raw/generateData.R | eccea7ffeba53c6e965357ec102d41b33e189e1f | [] | no_license | scfmolina/micecon | f102528c1f306f0d3906438de97ccca0b55b6f6e | a61aae42d5c5bfdd4d0e34c4f44171fbabcff148 | refs/heads/master | 2023-02-10T07:24:28.365680 | 2021-01-07T13:10:32 | 2021-01-07T13:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,417 | r | generateData.R | # Run this part:
library(devtools)
set.seed(100)
nProd <- 10
nFirms <- 100
# Max: 26
prodNames <- letters[1:nProd]
outputPriceMat <- matrix(runif(nProd * nFirms), ncol = nProd)
colnames(outputPriceMat) <- paste0("P", prodNames)
outputQuantMat <- matrix(runif(nProd * nFirms), ncol = nProd)
colnames(outputQuantMat) <... |
5dbb63da54e51efd32313fa7c90b2648801ec197 | 74b185b24f88e23f3627f64dcce8b6ed660b8beb | /src/functions/HistoricalDataFunctions.R | 06c6819550720ef59ce77c40d310e74f7ebcba36 | [] | no_license | CD-LINKS/factsheet | 6765752288e0a58a52348542451d67afb13ec6a1 | e12d3bf39d33a226fd291b67b64c9e22ff3cca88 | refs/heads/master | 2021-12-03T18:09:04.978258 | 2021-11-17T14:48:30 | 2021-11-17T14:48:30 | 57,221,386 | 3 | 3 | null | null | null | null | UTF-8 | R | false | false | 3,637 | r | HistoricalDataFunctions.R | CreateEmptyIEA_energy <- function(IEA_energy, regions_iea, iea_flows, iea_products)
{
# region, FLOW, PRODUCT, period
periods <- sort(unique(IEA_energy$period))
#iea_tfc_flows <- c("TFC", "TOTIND", "TOTTRANS", "RESIDENT", "COMMPUB",
# "ELMAINE","ELAUTOE", "ELMAINC", "ELAUTOC",
# ... |
9f5e256cbfbc9d4524af06a200896162495bdebd | 520ee4fc8b70b11576f45a3822bba505bd453aa6 | /fastq_pooled/REC8/peaks/PeakRanger1.18/ranger/MYC_Rep2_input_p0.05_q0.05/REC8_MYC_Rep1_peak_profiles/motifs/weeder2_bg_armranLoc_200bpseq/distribution/matchPWM_genome/matchPWM_genome.R | 8fb46ffb30e93cf19cf9a202e6ebfddf4eed65bf | [] | no_license | ajtock/170920_Chris_ChIP_REC8_histone | a749ccd1178c27749e1d305c197b71dfe4f13c15 | 4b28f3d184b5c32cc8a17a0f32ad0ea51b906c66 | refs/heads/master | 2020-06-19T04:43:10.322900 | 2019-07-12T11:55:59 | 2019-07-12T11:55:59 | 196,566,913 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,514 | r | matchPWM_genome.R | # Identify genomic loci that match motifs enriched at REC8 peaks
# Profile REC8 and nucleosomes at these loci
# Profile base composition (proportion and -log10(probability)) in regions flanking these loci
library(Biostrings)
library(BSgenome.Athaliana.TAIR.TAIR9)
library(segmentSeq)
library(regioneR)
#library(zoo)
lib... |
4ba9aed3ad6de0db979e6229705562f202b4e8f1 | 2d9b846c51e54b8d7ba85b37a071dcb64c95f4e9 | /R/produto5.R | 9226dac6e749a0a18e715633073f908f4a3d9f92 | [] | no_license | mikael83/git-produto5-OPAS | 10b34500341d8652282f4d69db1b97dce8ea77cd | 6d6ecc00a176dd6051cb303598f1c2904a442b59 | refs/heads/master | 2022-04-17T10:33:22.598271 | 2020-04-14T05:55:51 | 2020-04-14T05:55:51 | 255,521,728 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 180,401 | r | produto5.R | ############ Produto V ##########################
##################################################
###### script desenvolvido por Mikael Lemos ######
###### versão 1.0 - 23.03.2020 ##################
##################################################
######
### Carregando / instalando pacotes
######
#in... |
3ebdf86c26e87edf68a98a9d130b4f0c8381b646 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/fBasics/examples/stats-interpKrige.Rd.R | 7c6bee67b3c40ba3850beeea317b20ade0afa6a9 | [] | 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 | 514 | r | stats-interpKrige.Rd.R | library(fBasics)
### Name: krigeInterp
### Title: Bivariate Krige Interpolation
### Aliases: krigeInterp
### Keywords: programming
### ** Examples
## No test:
## The akima library is not auto-installed because of a different licence.
## krigeInterp - Kriging:
set.seed(1953)
x = runif(999) - 0.5
y = runif(999) - 0.... |
30f07808bf660282ecb4ae97b73e0a6f13b9760f | 9c546f0daf168a9f3ec674d4d0b479daf9b7fe67 | /Practica 11/p11/practica11c1.R | d77fc90962ff890995c8e39501567dce38bd3fe0 | [] | no_license | cynthia9305/Tareas | 45ab2a2c555853b0605fff058cf4646bc78a8d04 | f17fda52f3fe9221af1a1514b63ef38048666d63 | refs/heads/master | 2021-05-04T21:14:18.174290 | 2018-06-12T03:30:33 | 2018-06-12T03:30:33 | 119,905,234 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 724 | r | practica11c1.R | pick.one <- function(x) {
if (length(x) == 1) {
return(x)
} else {
return(sample(x, 1))
}
}
poli <- function(maxdeg, varcount, termcount) {
f <- data.frame(variable=integer(), coef=integer(), degree=integer())
for (t in 1:termcount) {
var <- pick.one(1:varcount)
deg <- pick.one(1:... |
9cf60af5805dc0a8b65e31bb786db97377ad7bb6 | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /RGtk2/man/pangoAttrIteratorNext.Rd | 0413dbded5a178ba98331fac21d591801dad8ee4 | [] | no_license | lawremi/RGtk2 | d2412ccedf2d2bc12888618b42486f7e9cceee43 | eb315232f75c3bed73bae9584510018293ba6b83 | refs/heads/master | 2023-03-05T01:13:14.484107 | 2023-02-25T15:19:06 | 2023-02-25T15:20:41 | 2,554,865 | 14 | 9 | null | 2023-02-06T21:28:56 | 2011-10-11T11:50:22 | R | UTF-8 | R | false | false | 464 | rd | pangoAttrIteratorNext.Rd | \alias{pangoAttrIteratorNext}
\name{pangoAttrIteratorNext}
\title{pangoAttrIteratorNext}
\description{Advance the iterator until the next change of style.}
\usage{pangoAttrIteratorNext(object)}
\arguments{\item{\verb{object}}{[\code{\link{PangoAttrIterator}}] a \code{\link{PangoAttrIterator}}}}
\value{[logical] \code{... |
6747a14e7d99d90085b2669e260f77c3aa1da080 | d54431bde7faa4032d044991668845269188772e | /Formação Cientista de Dados/Atividades/Machine Learning/20 - Aprendizado Baseado em Instância.R | 6b81ed9a2d8d5cf401a35464bd0082fe34a818d5 | [] | no_license | lucianofbn/Data-Scientist | 194ea599cb078898d71f5c4e758076345e8e8ff6 | bf250e2d3a277e68f46077fd455875d2fe99d369 | refs/heads/master | 2020-03-30T05:25:25.598165 | 2018-10-13T03:18:30 | 2018-10-13T03:18:30 | 150,797,887 | 1 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 427 | r | 20 - Aprendizado Baseado em Instância.R | # -> Aprendizado baseado em instância (Vizinho mais próximo)
install.packages("class", dependencies = T)
library(class)
head(iris)
dim(iris)
amostra = sample(2,150, replace = T, prob = c(0.7,0.3))
iristreino = iris[amostra == 1,]
classificar = iris[amostra == 2,]
dim(iristreino)
dim(classificar)
previsao = knn(iri... |
861bb2d670584aba23f9dd00264f5957b1264abf | 170d59a56f0e7a443ce015470585a0504763f7f0 | /cours2.R | 1dad822f670cbd521468f5ab6022e36036f10354 | [] | no_license | albericloop/Rproject | 8b215ff26b47f345d393dbf035fc1977587b05b7 | a2a5d27e4cabf5524ef752576310edf0cba22a95 | refs/heads/master | 2020-04-04T19:06:45.778372 | 2018-12-13T05:32:37 | 2018-12-13T05:32:37 | 156,192,230 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 25,417 | r | cours2.R | library(shiny)
library(shinydashboard)
library(dygraphs)
library(xts)
library(tidyverse)
library(lubridate)
library(magrittr)
library(stringr)
library(gdata)
library(expss)
library(rworldmap)
library(readxl)
library(dplyr)
library(schoolmath)
makeTabByUser<-function()
{
users <- unique(datalogs$User)
nbU... |
2d614fbfcddc38c814cbdb46af70d40ab410af0e | 014d8f1396c972e73584ef0a8bb150174e7bba25 | /Zhenyu Xu 289/HASH.R | d54d6ef6fa37e6664ceb6207a944f440f25eb465 | [] | no_license | BDIF/Home-Work-for-BDIF | 013e7669193964e16509553f8f19da72ea182017 | 2ee37154b65d7302fb8a8df9b964f5ada35d5ae7 | refs/heads/master | 2021-05-14T22:23:52.396046 | 2017-11-25T05:27:23 | 2017-11-25T05:27:23 | 107,395,953 | 0 | 43 | null | 2017-11-21T02:11:12 | 2017-10-18T10:59:49 | R | UTF-8 | R | false | false | 377 | r | HASH.R |
read.table("clipboard",header=T)
digest('I learn a lot from this class when I am proper listening to the professor','sha256')
#[1] "c16700de5a5c1961e279135f2be7dcf9c187cb6b21ac8032308c715e1ce9964c"
digest('I do not learn a lot from this class when I am absent and playing on my Iphone','sha256')
#[1] "2533d52976... |
7d1db78122f07d5977643020f6aafeb088523851 | eb6972b89e82af6e58b0eefb5cc55310bc8f2a39 | /devtools.easyRasch/easyRasch/man/print.Rd | 7b157b9419770c455ae7d4ed97ff3714325c6b03 | [] | no_license | benjaminschneider212/benjaminschneider.midterm | 16e5d08478925f001072ac99eb20a21ee96beb6e | 1e63292cfb6f685c582b1bab3e1359b2385d2843 | refs/heads/master | 2021-09-09T14:18:38.434948 | 2018-03-16T23:46:48 | 2018-03-16T23:46:48 | 125,554,931 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,122 | rd | print.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.R
\name{print}
\alias{print}
\alias{print,}
\alias{ANY-method}
\title{Print function for student name and EAP}
\usage{
print(raschObj, lower = -6, upper = 6)
}
\arguments{
\item{raschObj}{an object of class \code{Rasch}}
\item{lower}{a... |
7a50995a92e6e2b2b330ae5d69df4937f835eab0 | ce7e91d5f64daaa35ba6fc08a372f23d22dc7408 | /R/05_visualiseElasticNet.R | 438ac3957d0626cbf739120f056c2c77181e243e | [] | no_license | avila/enetfactorforecastR | c43cc774479a4fa56c9a29eac0f5a9408ca848e7 | e9415c2cd70d3d4616addca46cb6cff1e4181b6f | refs/heads/master | 2023-06-12T19:42:53.074430 | 2021-07-09T14:57:41 | 2021-07-09T14:57:41 | 198,282,276 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,746 | r | 05_visualiseElasticNet.R | saveplotaspdf <- function(object, type, wid, hei,
file_loc=paste0("./fig/fig_robs_", match.call()$object, "_",
match.call()$type, ".pdf"), ...) {
try(dev.off())
pdf(file = file_loc, width = wid, height = hei)
plot(object, type, ...)
dev.off()
... |
4e8374149ba2d4f320d79589cb58ab1c9c693713 | 53ce9c6156fba7d5a889ca0cb275e814f2c58781 | /man/vd_vdrs.Rd | 1225a3338d2fcee565ec8b2e7e4054bde8ad4816 | [] | no_license | injuryepi/rvdrs | ff9570a10768a5df72ed0350d048c302ffdd8a62 | e2e61aee5f8e1d06af547c783adecd4acd08342d | refs/heads/master | 2020-05-20T18:22:55.463895 | 2019-05-09T01:40:29 | 2019-05-09T01:40:29 | 185,705,075 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 233 | rd | vd_vdrs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vd_vdrs.R
\name{vd_vdrs}
\alias{vd_vdrs}
\title{Title}
\usage{
vd_vdrs(data, underly)
}
\arguments{
\item{underly}{}
}
\description{
Title
}
|
676574cdb529067b4bcd378df421599964071538 | ba368228527588560aa7d737f4e0a60277200eac | /2018 long-to-wide-df-recoding and merge.R | 4bb3190258fe3e0d9e3865a8266e65c58e2896d0 | [] | no_license | peacewaffle/psychiatry | 2f3cce8bb6ff735a667b3634b26392ced0e84e30 | 7420a76187318e3726d3c7f4f36d5dd719a721bc | refs/heads/master | 2020-04-23T12:36:07.000613 | 2019-05-26T22:18:18 | 2019-05-26T22:18:18 | 171,174,763 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,859 | r | 2018 long-to-wide-df-recoding and merge.R | # LAB.csv: separeting this file beased on TESTNAME
labpre <- read.csv("~/Desktop/CATIE-AD post-hoc_RIS_南さん/R_CATIE_AD_RIS/Comma Delimited Data_R/LABdispo.csv",header = T, as.is = T)
nam <- names(table(labpre$TESTNAME)) #this extract the unique names of in the column
for (i in 1:length(nam)){
dat <- labpre[which(la... |
4d350c1a6446a0ce89dfb51577333d1456a135dd | 9c58c2abb9c21b9f7ece5a4d21c6da80b7365777 | /plot4.R | 8288e1988f681bd5f697fd9b578f84cdceebc5d2 | [] | no_license | mathewjoy/cds_exdata_p2 | feb2cde80477dda3f6d25742efc162f001d39457 | 677fd509697dca1f38a57c9e5f872a750ae52f5a | refs/heads/master | 2021-01-10T07:20:13.084847 | 2015-10-25T16:30:17 | 2015-10-25T16:30:17 | 44,916,134 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,210 | r | plot4.R | library(ggplot2)
#download and unzip if file not already present
archiveDF <- "NEI_data.zip"
if(!file.exists(archiveDF)) {
archiveURL <- "http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
download.file(url=archiveURL,destfile=archiveDF,method="curl")
}
if(!(file.exists("summarySCC_PM25.rds") &&
... |
2ef2b235e08d1dfa0731c54141e7b4f36c84cd3e | 89ade40b52968d3ca1ac2a3725d53425f18fa203 | /Introduction To R/Analyze matrices, you shall.r | 9a564116dae3f25b917a45f7cba05f950098d352 | [] | no_license | Diganta-droid/Data-Camp-Exercise | bdc796abc476d1d7ab201f6911ce56580c335b2b | 4bfd2e3bb02b382f5876e4010ed04e5e1aa147c7 | refs/heads/master | 2022-09-17T14:31:26.619462 | 2020-06-03T07:45:16 | 2020-06-03T07:45:16 | 266,725,467 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,315 | r | Analyze matrices, you shall.r | Analyze matrices, you shall
It is now time to get your hands dirty. In the following exercises you will analyze the box office numbers of the Star Wars franchise. May the force be with you!
In the editor, three vectors are defined. Each one represents the box office numbers from the first three Star Wars movies. The f... |
a4860fbe564a53f2541d515d264b7d1ae585fbfd | 11eb3a60f9e86f576f8e281d73892e0ce52c5b7d | /DataAdaptor/00_data_adaptor_test.R | def6f9f954f2b57992bcd4dc5e9d577a9a76c8e5 | [] | no_license | wellermatt/exp1.1 | c34148e7b43cdb25f161b1c0924ce62df54d0223 | 70afbb54b93e65af0052244aafab6da4e4e40482 | refs/heads/master | 2016-08-03T13:20:44.360020 | 2014-02-26T12:19:56 | 2014-02-26T12:19:56 | 16,102,063 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,079 | r | 00_data_adaptor_test.R | source("config.R")
source("./DataAdaptor/10_load_data_various.R")
setwd(pth.dropbox.data) ; f_load.calendar()
par.category = "beer" ; par.periodicity = "445"
f_da.reg.cat.all = function(par.category, par.periodicity, par.item="00-01-18200-53030", bo.save =FALSE) {
# get an input dataset for regression for a w... |
11aefdedf27df05f8a4550d8ef6c6c29a4aae480 | d8b1e4a1b74cc4275f4c2963804f4f42e2352385 | /man/getDataValuesDownload.Rd | 21609d3148a535c3574ea54c3e933459d51cb69f | [
"MIT"
] | permissive | SRHilz/GliomaAtlas3D | fc080b9adf9750b7f7806bc1cb5de29f4d9aef60 | 4b9b85497a0bffb415fafb5a6cb4aee88136f6d7 | refs/heads/master | 2021-05-19T16:36:46.225506 | 2020-11-19T19:09:12 | 2020-11-19T19:09:12 | 252,030,374 | 4 | 3 | NOASSERTION | 2020-05-12T17:43:27 | 2020-04-01T00:23:40 | R | UTF-8 | R | false | true | 1,225 | rd | getDataValuesDownload.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getDataValuesDownload.R
\name{getDataValuesDownload}
\alias{getDataValuesDownload}
\title{Retrieve the values for a particular patients dataset}
\usage{
getDataValuesDownload(
patientsFinal,
sfConversion,
datasetD,
typeD,
rowSelecti... |
07a62beb7fe57caebfa2cd559ba27aaf8d067469 | 1db5084d33ce23cfc7031509e5e9266b0d8ae07c | /vignettes/cell_segmentation/step1_streak_removal/removing_streaks.R | 185dd25625086ab1af7f1431735e4dc04a39d4f3 | [] | no_license | Kaestner-Lab/T2D_IMC | 6140fcf1d9ee0fd6aa5544253fb9171d77ebc478 | 3802926dd85a1f1cbbb91aec8bd616161311b211 | refs/heads/main | 2023-04-10T06:58:46.108000 | 2021-11-05T17:25:13 | 2021-11-05T17:25:13 | 375,136,919 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,281 | r | removing_streaks.R | # Removing streaks or hot pixels in IMC images
# Using the first two noise/background channel for points detection
# Then for rest of the channels, check if these points are greater than the mean of local neighborhood(5x5), if yes, remove.
# To run the script, please see the end of the file.
# `tiff` the image data... |
2eb7b016b9b84cb0b9cd13eef6e51c43b417b491 | 49ff0bc7c07087584b907d08e68d398e7293d910 | /mbg/mbg_core_code/mbg_central/LBDCore/man/get_mkl_threads.Rd | 9c515cbe8642358551d9a715156d8dd776c16236 | [] | no_license | The-Oxford-GBD-group/typhi_paratyphi_modelling_code | db7963836c9ce9cec3ca8da3a4645c4203bf1352 | 4219ee6b1fb122c9706078e03dd1831f24bdaa04 | refs/heads/master | 2023-07-30T07:05:28.802523 | 2021-09-27T12:11:17 | 2021-09-27T12:11:17 | 297,317,048 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,356 | rd | get_mkl_threads.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_mkl_threads.R
\name{get_mkl_threads}
\alias{get_mkl_threads}
\title{Finds number of threads set for MKL operations}
\usage{
get_mkl_threads()
}
\value{
number of threads assigned to MKL
}
\description{
\code{get_mkl_threads()} Uses enviro... |
14c05bd280a51f97610a029d378030d3fc11938c | 58f5e50edf2b3b1bd79644196e6323e2b16c9c7c | /plot1.R | 52ca3fc069a328c841970b064980ae5d656402fb | [] | no_license | Hipporz/ExData_Plotting1 | 42581705412618bf8f10aed0a2bb97854717569d | ce73e020cf332c269aeaa9e55967a9a5b3f6867d | refs/heads/master | 2021-01-16T19:19:39.627220 | 2014-07-13T04:49:18 | 2014-07-13T04:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 570 | r | plot1.R | setwd("/Users/eric/Downloads")
data<-read.table("household_power_consumption.txt",sep=";",header=TRUE)
data[,1]<-as.Date(strptime((data[,1]),format="%d/%m/%Y"))
Feb01<-data[data[,1]==as.Date("2007-02-01"),]
Feb02<-data[data[,1]==as.Date("2007-02-02"),]
both<-rbind(Feb01,Feb02)
for (i in 3:9) {
both[,i]<-as.numeric(a... |
9d49a3426520fd667ff1fa59c0cbfb193781b5bb | 5ce1cd2be24a5d1cc7d7640f84d3b3a937a7540f | /inst/repository/analyze_suma_output.R | 1a669ad65a6b5407de16453e228d06a9d6c37fc0 | [] | no_license | xylimeng/rave | ec738c2c01763055dbabea267418903a4153cf5e | a0b89b41c2b07548c867f2ba69a4b8dcfc1fb197 | refs/heads/master | 2021-04-26T22:48:24.293626 | 2018-03-05T17:19:52 | 2018-03-05T17:19:52 | 124,144,616 | 1 | 0 | null | 2018-03-06T22:07:19 | 2018-03-06T22:07:19 | null | UTF-8 | R | false | false | 603 | r | analyze_suma_output.R | twoConditions <- read.delim('RAFE_temp_2017-06-22_15_57_03.1D', header=FALSE)
keep_ind <- seq(1, 240*42, by=42)
keep_ind %>% head(10)
twoConditions <- twoConditions[keep_ind,]
singleCondition <- read.delim('RAFE_temp_2017-06-22_16_01_49.1D', header=FALSE)
singleCondition <- singleCondition[keep_ind,]
ocps <- single... |
50e303832d5f205240596fa5b62986e32284134f | 1ba68c4d75f0f38973225ef68eada0846de9e7ed | /analysis/11_0_DTW_functions.R | 069ba047575d7c4bbe8fbf0306fb4ae09353f9f3 | [
"MIT"
] | permissive | opensafely/hdruk-os-covid-paeds | 76f31b1878f8769972981e52884962ee01477162 | 19e52d891545a4cf1d4db7bea8788e0e89862d98 | refs/heads/main | 2023-08-23T10:42:25.593590 | 2023-05-03T11:35:41 | 2023-05-03T11:35:41 | 404,328,097 | 2 | 0 | MIT | 2022-05-06T11:42:29 | 2021-09-08T11:51:44 | Python | UTF-8 | R | false | false | 1,505 | r | 11_0_DTW_functions.R | # Studying the Long-term Impact of COVID-19 in Kids (SLICK)
#
# 11_DTW_functions.R
# Centre for Medical Informatics, Usher Institute, University of Edinburgh 2022
# School of Informatics, University of Edinburgh 2022
# Written by: Karthik Mohan, James Farrell
#
# This script contains functions to be used in 11_DTW_tsc... |
b656564520b6e238a614ddf01f9bef76262f31cd | 4521a29538bc44232a9e99120acb1dd88f6b8497 | /Codes/useless/shiny_server.R | 75ddbe221f62972fc10c32a167e851f101f15159 | [] | no_license | RachelAnqi/Sales_training_programme | 6772879042830b635e86f8d071a841afefd838fc | d980bb8f0456fdc7fa251c0c2e04681cff2b59ba | refs/heads/master | 2021-01-19T15:03:39.791198 | 2017-11-09T10:54:08 | 2017-11-09T10:54:08 | 100,939,905 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,568 | r | shiny_server.R | server = function(input, output) {
##phase1
output$p1_total_promotional_budget <- renderText(
total_promotional_budget$phase1
)
tmp <- eventReactive(input$decision1_phase1_calculator,{
phase1_promotional_budget=0
phase1_total_time_arrangement1 <- 0
phase1_total_time_arrangement2 <- ... |
f656932015c0704806b039c87e53d7e13ee40aef | 7c7dd80f0efd3079d2fa40d2012abec34edefbd1 | /man/fill-methods.Rd | 447f4827f50e63b1bfabffb3a9f276f91deba374 | [] | no_license | bbuchsbaum/neuroim | afebc5c959541bf36a4a2a2ac9a076b875cc0c45 | a0c2c5db6e717eeacf7ad3cb9be65a48a34d1f93 | refs/heads/master | 2021-06-13T08:42:37.597547 | 2021-03-17T19:51:53 | 2021-03-17T19:51:53 | 13,177,894 | 5 | 1 | null | 2016-10-18T12:52:10 | 2013-09-28T17:43:12 | R | UTF-8 | R | false | true | 1,258 | rd | fill-methods.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGeneric.R, R/BrainVolume.R
\docType{methods}
\name{fill}
\alias{fill}
\alias{fill,BrainVolume,list-method}
\alias{fill,BrainVolume,matrix-method}
\title{Generic function to map values from one set to another using a user-supplied lookup ta... |
fa508285fcb10e65f3a4ce661051a1230a0f308e | ab1accb32c0b170d6fc57ae59564466a83cc6aec | /_not_used/cell_lines/Vias-Brenton-Organoids_CellLines.R | 438853bc05c40a91f16fb98fb3e2f754f6db20fa | [
"MIT"
] | permissive | lm687/Organoids_Compositional_Analysis | 140345e036638687ecab39f43d77ebe858350097 | 6dd6895402b48ee6e9b58bfbad966d874c47433a | refs/heads/master | 2023-05-10T04:59:57.789432 | 2023-05-05T17:47:37 | 2023-05-05T17:47:37 | 265,240,528 | 0 | 0 | null | 2023-05-05T16:14:10 | 2020-05-19T12:25:28 | HTML | UTF-8 | R | false | false | 13,158 | r | Vias-Brenton-Organoids_CellLines.R | #<begin_omit>```{r}
rm(list = ls())
setwd(dirname(rstudioapi::getSourceEditorContext()$path))
Sys.setenv(LANG='en')
#<end_omit>```{r}
#<begin_chunk>```{r, libraries,message=FALSE, cache=TRUE}
library(grid)
library(gridExtra)
library(dendextend)
library(ggrepel)
library(cowplot)
library(compositions)
library(CompSign)
... |
c4e817c746c8973786d63a007523b9ec3eabedff | d4ca4aa48bebf5498d0ef682108173a0c8a0c1eb | /man/rotationmat.maxcor.Rd | 5dc52dab9f8184cbe0e1e8f239688ddb08c3360d | [] | no_license | tpepler/cpc | a6e528eaa7d1e98e950f0b2b7cb3f57963ac09cc | 76c916b6dda684bb97491128fb27aa881ed998a7 | refs/heads/master | 2022-07-18T16:13:46.469529 | 2022-07-06T19:38:11 | 2022-07-06T19:38:11 | 30,924,214 | 2 | 2 | null | 2022-06-24T20:21:09 | 2015-02-17T15:54:36 | R | UTF-8 | R | false | false | 1,733 | rd | rotationmat.maxcor.Rd | \name{rotationmat.maxcor}
\alias{rotationmat.maxcor}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
Maximum correlation rotation matrix
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
Finds a rotation matrix with maximum correlat... |
b20f80c6627ae38bf7ccdb2595842c9b1b56d44c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ade4/examples/mantel.rtest.Rd.R | 8050fa61f5d2e8de197dd6db2e02fee9b9180db1 | [] | 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 | 375 | r | mantel.rtest.Rd.R | library(ade4)
### Name: mantel.rtest
### Title: Mantel test (correlation between two distance matrices (in R).)
### Aliases: mantel.rtest
### Keywords: array nonparametric
### ** Examples
data(yanomama)
gen <- quasieuclid(as.dist(yanomama$gen))
geo <- quasieuclid(as.dist(yanomama$geo))
plot(r1 <- ma... |
2f848fc776cb307b6f837ddb660e100439e3a7e1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/proportion/examples/ciCTW.Rd.R | 69e1622257c227c2b7f86ff580766ee78ce65385 | [] | 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 | 180 | r | ciCTW.Rd.R | library(proportion)
### Name: ciCTW
### Title: Continuity corrected Wald-T method of CI estimation
### Aliases: ciCTW
### ** Examples
n=5; alp=0.05;c=1/(2*n)
ciCTW(n,alp,c)
|
670d73718219dd5f871999cd6737104c56b573da | da3112d28186f4000ab3aa285b9be9879da69595 | /inst/deprecated/bp.test.R | ebb1a331629d5f9a58a3f9ddfdc84f4db32d5913 | [] | no_license | Huaichao2018/rawr | 08c0456d9822ae9654a11891bc47bf3c7a49b466 | 95857be33dd7128ab5ad48875a66c249191a2bd7 | refs/heads/master | 2023-01-19T02:07:17.790103 | 2020-11-26T04:50:44 | 2020-11-26T04:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,342 | r | bp.test.R | bp.test <- function(formula, data, which = NULL, at = NULL, line = NULL,
test = wilcox.test, ...) {
op <- par(..., no.readonly = TRUE)
on.exit(par(op))
bp <- boxplot(formula, data, plot = FALSE)
ng <- length(bp$n)
if (ng == 1L) {
message('only one group -- no test performed')
re... |
dd14f988fada8c4288484448d32896b560d46a27 | 856404dc987a6a685cf3de20fbdbcb2ce7be4afd | /facebook-crawl/data/simon/IRT.statistics.R | f0efd6ce1c723efed8c12d3f0699c79209d4c38a | [] | no_license | gsm1011/fall-2010 | 79654681ff5657069acd033e210a1469f4b6c757 | 62217664050110ec92ed905c56fbd406193c1739 | refs/heads/master | 2021-01-23T13:17:08.757549 | 2014-02-23T05:41:36 | 2014-02-23T05:41:36 | 32,332,499 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,466 | r | IRT.statistics.R | # Author: Simon Guo.
# This script is to use the IRT model to analyse the dataset.
# we are using the binary IRT model ltm for the analysis, so
# the input data of this script should have binary response.
#
###########################
# IRT modeling functions. #
###########################
ltm.model <- function (data... |
dbd8e1f180a98fd5d84f6d4eda8ed628cb82cbc7 | 229c0dd9ed28a2c5887957856e8b9ddd439597e2 | /BC/fLogL_Sivia.R | af6a6c95fc107646c00d9a9e6ba4b8994399eebb | [] | no_license | MarcelVanOijen/CAF2021 | 7e6e68ac4e17f33badb2071d8dc74d1390d907df | e752e2024c420cb1f4518fcfc29010fa65670afd | refs/heads/main | 2023-04-11T18:29:56.318506 | 2022-01-17T09:07:46 | 2022-01-17T09:07:46 | 349,493,187 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 256 | r | fLogL_Sivia.R | flogL <- function(sims,data,data_s)
{
Ri <- (sims - data) / data_s
i0 <- which( abs(Ri)<1.e-08 )
logLi <- log(1-exp(-0.5*Ri^2)) - log(Ri^2) - 0.5*log(2*pi) - log(data_s)
logLi[i0] <- -0.5*log(2*pi) - log(2*data_s[i0])
sum(logLi)
}
|
98eae98274fa08d37898f7e00f77d9df0e0e2a0e | 265657c3da16c9215e8e58cd4f5fedff4c1fdf3a | /plot3.R | a05fe8cdcdb333b69a29a3dc9223389fe774c2d1 | [] | no_license | Poictesme/ExData_Plotting1 | 3c059a617fc888615b9244a24dbab812fba254ab | 415039587475525babf1df988a3e1b6961ecce17 | refs/heads/master | 2021-01-19T16:18:20.369454 | 2017-09-05T19:27:08 | 2017-09-05T19:27:08 | 100,996,950 | 0 | 0 | null | 2017-08-21T22:14:43 | 2017-08-21T22:14:43 | null | UTF-8 | R | false | false | 952 | r | plot3.R | #Assumes data file is in the working directory
all.data<-read.table("household_power_consumption.txt", header=TRUE, sep=";")
#Subset just the data we need
#Get data from 2/1/07
my.data<-subset(all.data, Date=="1/2/2007")
#Append data from 2/2/07
my.data<-rbind(my.data,subset(all.data, Date=="2/2/2007"))
#Convert Date... |
1f4590e9ed3ce198e47882d9a9c1f5df3bfb3101 | bcc5dab59e4229eb26dc7f2e24b5964d97aa4840 | /JH-Data Analysis/Quiz3.R | 6e8901dc45b29fc69b4dd3e08c5786e5317e4f4f | [] | no_license | JPruitt/Coursera | 87d3d273bce00d143769f6c8070c9a2163a568fd | 339873ff1036b4a1d52f6cca5001b4d9670f374d | refs/heads/master | 2021-01-01T19:42:50.471049 | 2014-05-09T11:00:20 | 2014-05-09T11:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,687 | r | Quiz3.R | # Week 3 Quiz
## Question 1
## Below is a plot of bone density versus age. It was created using the following
## code in R:
library(ElemStatLearn)
data(bone)
plot(bone$age,bone$spnbmd,pch=19,col=((bone$gender=="male")+1))
## Males are shown in black and females in red. What are the characteristics that
## make this ... |
f0fb919f6f23126d6b449fd6d7442d4ed407b282 | 89b94a1553151b34386d75b0006b970dc372d2de | /College Basketball/iowa basketball analysis.R | c53d442e07cb1272dd5d348c419ac6be42f1e3e4 | [] | no_license | aelfering/Sports-Data | 0d2052a9fdf0e05b08ec820faaefa34f0066d48d | 86ed99e443f255a4c3178358c374429454984d13 | refs/heads/master | 2022-05-02T23:50:14.812967 | 2022-04-01T15:49:59 | 2022-04-01T15:49:59 | 222,936,805 | 1 | 0 | null | 2019-11-21T01:02:03 | 2019-11-20T12:52:29 | null | UTF-8 | R | false | false | 5,463 | r | iowa basketball analysis.R | # Iowa Basketball Analysis
library(dplyr)
library(tidyr)
library(tidyverse)
library(reshape2)
iowa.team <- read.csv('Iowa Basketball.csv')
iowa.opp <- read.csv('Iowa Opp Basketball.csv')
seasons <- read.csv('iowa seasons.csv')
#### Cleaning the Script ####
iowa.team.opp <- inner_join(iowa.team,
... |
66329fb720123b8a88e50c1145406e7cdf5cfbe2 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/synlik/R/I_quadModMat.R | 4ac8dc0a9a2db520142b5e415d044b7a5b48d4f3 | [] | 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 | 440 | r | I_quadModMat.R |
# Creates model matrix for quadratic multivariate regression
.quadModMat <- function(X)
{
nPar <- ncol(X)
# Center X
X <- t( t(X) - colMeans(X) )
# Add quadratic terms
mod <- cbind(1, X, (X^2)/2)
# Add interactions
if(nPar > 1){
comb <- t( combn(nPar, 2) )
for(jj in 1:nrow(comb... |
73caf866144ead15fee4c843093dd9f7b17b2131 | c251710444a5eb26d6ccf7ba233863c5042526cc | /run_analysis.R | 2dd7fbad0a314494dc5d2297bac030bc9069cbcd | [] | no_license | martinhorecky/GettingAndCleaningData | 8c99416f95c50c8ddab8afab02e4284f409711df | 6a791b338defecf11e02dd44e45b7db56b08a2bf | refs/heads/master | 2021-01-13T02:22:35.512874 | 2014-06-14T21:03:04 | 2014-06-14T21:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,002 | r | run_analysis.R | ## Note: Set your working folder befor running the batch
## so that the script is in root of the folder
## and data is extracted in 'UCI HAR Dataset' subfolder
######################################################################################
## Start by reading common data from files
#############################... |
6006ea00e723998884f1fe093a61510afa5fedfa | a7e3f0739f609ca7d81468a89348f55633c22d44 | /archive/abc_binomial.R | 1cbaec476751b630a76c6a0d3395063812ad8058 | [] | no_license | kkaloudis/approximate-bayesian-computation | 1d3b0c752a691ac687657d92f12f43dc14fad333 | 6fa28c285661cbb22cd006940f8b86a71f5a7254 | refs/heads/master | 2023-03-18T14:29:28.375220 | 2020-05-28T17:45:16 | 2020-05-28T17:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 854 | r | abc_binomial.R | # Binomial with beta prior
discrepancy <- function(x, y){
discrepancy <- sum(abs(x - y)) / length(x)
return(discrepancy)
}
abc_sample <- function(N, epsilon, y, alpha=1, beta=1){
samples <- rep(0, N)
for (i in 1:N) {
rho <- epsilon + 1
accept_prob <- rho <= epsilon
while (run... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.