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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d032088f95530151279c115b3b8c440ea6078dbc | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/shapeR/examples/getMeasurements.Rd.R | aa524c0a274dda1e2a74c8064e98dd2817548fe5 | [] | 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 | 422 | r | getMeasurements.Rd.R | library(shapeR)
### Name: getMeasurements
### Title: Get simple shape variables, filtered according to filter
### Aliases: getMeasurements
### ** Examples
data(shape)
# Calculate the mean otolith area for each fish population
# The results are in square mm since the calibration ('cal') column
# in the data file is ... |
f901b5e1b2aad9bdcd499e1a15813a6c22b6ad62 | 7a4caaf86ce76c18ba31a85cda0d78e5a0b38fb8 | /man/phyloHeights.Rd | 3f406f9e19fe7a41e6e98a8a4104891a85169390 | [] | no_license | hferg/hfgr | 3f8716cb8b056a92add743b6858fecf30dfe162d | 5abb9350a10b63db89890367752f9938b92e44bf | refs/heads/master | 2021-05-01T12:32:52.906825 | 2017-02-24T09:11:34 | 2017-02-24T09:11:34 | 35,668,754 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 260 | rd | phyloHeights.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/phyloHeights.R
\name{phyloHeights}
\alias{phyloHeights}
\title{phyloHeights}
\usage{
phyloHeights(tree)
}
\description{
Essentially the same function as heights.phylo from geiger
}
|
3ab044e4d038e7ecce216135ae6ac95307c0982f | 33c3602679d4ba1688c01003a16b2185b6e1d571 | /utils/geo_utils.r | 2c6babb88ae0e629a558bb4c805cd1744271f1b3 | [] | no_license | mfzhao/covid_interdependence | c40d7f39930b1670d0a236c9172d7c05b76e983c | 58b190c41bb338d9266b2fdcd00db091942b2045 | refs/heads/master | 2023-08-27T13:52:24.498715 | 2021-10-29T20:17:46 | 2021-10-29T20:17:46 | 273,065,104 | 10 | 4 | null | null | null | null | UTF-8 | R | false | false | 85 | r | geo_utils.r |
state_code_from_fips <- function(x) {
floor(as.integer(as.character(x))/1000)
} |
65220ea4dcb3c00539488e8461d1bcbdbf821d0a | 6a28ba69be875841ddc9e71ca6af5956110efcb2 | /Linear_Algebra_And_Its_Applications_by_David_C._Lay/CH4/EX4.20/Ex4.20.R | 033ec41f18e9fd63c1b55453da1d2f62483f6925 | [] | 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 | 687 | r | Ex4.20.R | #Chapter 4- Vector Spaces
#Change of Basis
#Page No.153 / 4-33
#Prob 7
#4.9.7
#clear console
cat("\014")
#clear variables
rm(list=ls(all=TRUE))
pv<-c(.7,.1,.1,.2,.8,.2,.1,.1,.7)
p=matrix(pv,3,3,TRUE)
print(p)
PI=p-diag(3)
print(PI)
zm=matrix(0,3,1,TRUE)
PIx=cbind(PI,zm)
print(PIx)
PIx[,c(1,3)]=PI... |
6d06bb5acaf29fc239da537207b629fab8623121 | a55e05d6bc8e0c0924ccbdbda230f442231cd5a0 | /aws-api/plotBeeDat.R | e79df5a66821dba8d3e4e0f7007c9f7f440db162 | [] | no_license | yannikbehr/arduino_project | 86956229c5d056ae5479fd9f31f5e9f033e24c89 | fdfa417fd8af49f3434114eccc14e977714335ad | refs/heads/master | 2023-05-02T04:59:57.335448 | 2023-04-26T06:13:06 | 2023-04-26T06:13:06 | 191,243,917 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,813 | r | plotBeeDat.R | #!/usr/bin/env Rscript
dateStart = as.Date('2023-04-23')
dateEnd = Sys.Date()
data = character()
while (dateStart<=dateEnd){
month = substr(format(dateStart, '%B'), 1, 3)
fname=paste("data/", format(dateStart, '%d_'), month, sep="")
readDat=T
if (dateStart < dateEnd && file.exists(fname)){
dat <- readRDS(fnam... |
17f1e65048456941744ecc90cf1f49cf35afa562 | 156811aac95d26f45fa74d249f416e32254fb4eb | /Age discrimination permutation test.R | 2ba7fb98b766d940b1c7e5a6e3baeab570770018 | [] | no_license | wangrenfeng0/SMU-Data-Science | 652fe6e37541cd9ab42881229bcfb1aeab3bbb03 | cc7ff4b0ee248dae7e515af4f59390ba6297d7d5 | refs/heads/master | 2023-01-07T11:40:30.836318 | 2020-10-21T03:26:04 | 2020-10-21T03:26:04 | 288,824,372 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,793 | r | Age discrimination permutation test.R | fired = c(34,37, 37, 38, 41, 42, 43, 44, 44, 45, 45, 45, 46, 48, 49, 53, 53, 54, 54, 55, 56)
notfired = c(27, 33, 36, 37, 38, 38, 39, 42, 42, 43, 43, 44, 44, 44, 45, 45, 45, 45, 46, 46, 47, 47, 48, 48, 49, 49, 51, 51, 52, 54)
#hist(fired)
#hist(notfired)
library(tidyverse)
obersved_diff=mean(fired)-mean(notfired)
ober... |
33a0eb1893b1955e0ec0ccc953b5bae2719b19ab | 5915933e558a83bec3612d7be74552e65757ee0c | /man/plotVElatCont.Rd | e155adcf133a3423b4755a1178371d5b16d678bc | [] | no_license | cran/CoRpower | 8cc66ced0645c9912375b41e637134be89a069f9 | 3cd5f650a86d1b61d213d1f4c70c297d4c9567c6 | refs/heads/master | 2021-06-30T21:46:19.199414 | 2020-11-17T07:10:14 | 2020-11-17T07:10:14 | 151,888,782 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,132 | rd | plotVElatCont.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotVElatCont.R
\name{plotVElatCont}
\alias{plotVElatCont}
\title{Plotting Treatment (Vaccine) Efficacy Curves for Different Correlate of Risk Relative Risks for Continuous Biomarkers}
\usage{
plotVElatCont(outComputePower, outDir = NUL... |
4c8775757959628a2dbecfd78349643696693dba | 19667baea785a5181c29daaea9799435107e91c3 | /data/r/e39cfbf4789808a3d7fcd04b08a92ab1_HoltWintersNew.R | e945dddb16c2987a3bb263fdf21f4d015ebd3f54 | [
"Apache-2.0"
] | permissive | maxim5/code-inspector | d71f024390fe5a5f7c1144b289e0e22b59dbb2c7 | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | refs/heads/master | 2021-09-10T19:23:39.324768 | 2018-03-31T17:17:27 | 2018-03-31T17:17:27 | 115,271,942 | 5 | 2 | null | null | null | null | UTF-8 | R | false | false | 19,456 | r | e39cfbf4789808a3d7fcd04b08a92ab1_HoltWintersNew.R | # Modelled on the HoltWinters() function but with more conventional
# initialization.
# Written by Zhenyu Zhou. 21 October 2012
HoltWintersZZ <- function(x,
# smoothing parameters
alpha = NULL, # level
beta = NULL, # trend
... |
0156781d224488bb8f39e3d24f8fdf4d00c908a5 | c85471f60e9d5c462de6c60c880d05898ec81411 | /cache/Ryo-N7|soccer_ggplots|World Cup 2018__RMarkdown__worldcup_goal_plots.R | 9972ffdcf274b6ffab4dce60673c5311708c1efe | [
"CC-BY-4.0",
"MIT"
] | permissive | a-rosenberg/github-content-scraper | 2416d644ea58403beacba33349ee127e4eb42afe | ed3340610a20bb3bd569f5e19db56008365e7ffa | refs/heads/master | 2020-09-06T08:34:58.186945 | 2019-11-15T05:14:37 | 2019-11-15T05:14:37 | 220,376,154 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,738 | r | Ryo-N7|soccer_ggplots|World Cup 2018__RMarkdown__worldcup_goal_plots.R | ## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
## ----echo=FALSE, fig.width=8, fig.height=5-------------------------------
library(ggsoccer)
library(ggplot2)
point_data <- data.frame(x = c( 100, 83, 100, 83, 88.5, 100, 83, 83, 100, 100),
... |
65502148b0572b1f1f82f530b9be13688f96d352 | 1443e812411278d1f776f8f7d1196add8e2dcc31 | /man/readCellRanger.Rd | e939845249e4de766fb27376ba480a9805ce3b12 | [
"MIT"
] | permissive | WeiSong-bio/roryk-bcbioSinglecell | e96f5ab1cb99cf1c59efd728a394aaea104d82b2 | 2b090f2300799d17fafe086bd03a943d612c809f | refs/heads/master | 2020-06-15T23:38:23.802177 | 2018-07-03T21:01:07 | 2018-07-03T21:01:07 | 195,422,697 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,300 | rd | readCellRanger.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readCellRanger.R
\name{readCellRanger}
\alias{readCellRanger}
\title{Read 10X Genomics Cell Ranger Data}
\usage{
readCellRanger(uploadDir, sampleMetadataFile = NULL, refdataDir = NULL,
interestingGroups = "sampleName", transgeneNames = NULL... |
df4f40750b4521727e550bdb217b865f0584ad2f | 7f873c96ced1c3b57c378102febbdcda3bc8e0c4 | /data_analysis/computer_classes/data_visualisation.R | e6a6f03d68bb790bade56d6e537fa3fbb6b5fe69 | [] | no_license | IanMadlenya/teaching | ec71610301c2f23f4e38b0e73c7f052edd71c984 | 6ca5a296b07b5b42e80ff56070edd4d72a561a8f | refs/heads/master | 2020-03-14T03:32:16.376964 | 2018-04-25T14:09:56 | 2018-04-25T14:09:56 | 131,422,094 | 1 | 0 | null | 2018-04-28T15:38:38 | 2018-04-28T15:38:37 | null | UTF-8 | R | false | false | 8,411 | r | data_visualisation.R | #------------------------------------------------------------------------------
# Tutorial 2: Data visualisation
#------------------------------------------------------------------------------
setwd("~/Dropbox/ucd/data_analysis/") # Set working directory
par(las=1,bty="n") # Plot settings
# In ... |
209155c47cf98a4107cb3d63303b2d6e6b6c086a | 8ceef923a736f0161077cb8aeeb3a8ba595aff3c | /scripts/Non_cen_zeros.R | 01eb569849353d5af90a87d8d28c5e222ccaa447 | [] | no_license | cont-limno/lagos_limno_qaqc | 65501b0d23b4102cdf04841f492faf67e7ba5765 | 390ee4700c0533ff8095d184f6be29a5e2fb93e9 | refs/heads/master | 2022-12-01T05:24:57.802137 | 2020-08-05T19:13:47 | 2020-08-05T19:13:47 | 250,358,374 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,167 | r | Non_cen_zeros.R | temp_flag = data.frame(eventida = 1,lagoslakeid = 1,variable="noah",value=1,flag="first_row")
for(i in 1:length(variable.cols)) {
sensor.col = which(names(Data)==paste(names(Data)[variable.cols[i]],"_censorcode",sep=""))
#if(i != 11) { #Can't remember why I excluded tdn in the past...i think the algorithm crapped o... |
3aaaa3b4503fbae83bf42af851606d4f07917097 | 3163e89817ded391b753a1932421b96241756633 | /tests/testthat.R | 2308860708bf3e268a975e9566d493c4d3138d1e | [
"Apache-2.0"
] | permissive | fursham-h/ponder | c1612c1e2dfc1dba64ddc75fb368be6e0538bfc2 | 5131a51c73fcf2a28fd43122f97b23932a59c4ca | refs/heads/master | 2022-03-27T11:16:34.321088 | 2019-12-08T23:31:26 | 2019-12-08T23:31:26 | 126,469,267 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 94 | r | testthat.R | library(testthat)
library(NMDer)
library("BSgenome.Mmusculus.UCSC.mm10")
test_check("NMDer")
|
c0995323a6b7c655d821dbc6e0758122e7983aa2 | ec0988738060d355c6fa820946b5833dabf6af8b | /4.R | ad6e89e0088fd05d38da88659704dc7fec976485 | [] | no_license | karangambhir/ProgrammingAssignment2 | d1738c4a18789ee0d4ea35271f330f20860d0876 | a1d42bdbc162ee0e9b2d80b4bcb0ce7dce0afac5 | refs/heads/master | 2020-12-03T04:05:23.505141 | 2017-07-09T19:12:21 | 2017-07-09T19:12:21 | 95,814,605 | 0 | 0 | null | 2017-06-29T19:58:11 | 2017-06-29T19:58:11 | null | UTF-8 | R | false | false | 296 | r | 4.R | ## subset observations realte to coal
NEI_coal<- NEI[which(NEI$SCC %in% SCC[grep("coal",SCC$Short.Name,ignore.case = TRUE),"SCC"]),]
g<-ggplot(NEI_coal,aes(year,Emissions))
g+geom_line(stat = "summary",fun.y="sum")+ labs(y="Emissions from coal combustion-related sources",x="Year (1999 - 2008)") |
c8c76f78a2878b8933b952ee2aaefe48ada470a2 | c62c7fdf7bf578d4d1c4b57f8654a632e8ed73c9 | /Assignment2.R | acf01b8de755fd089382e16101b86bd5529d0be0 | [] | no_license | bethstephenson96/university | 84b3ad3b091d16fd7ed930a684e5c0a05fc2c775 | f0a58849dd13e4ed542b6fa85d3f0ef935969a09 | refs/heads/master | 2022-04-18T20:24:44.431011 | 2020-04-20T09:55:59 | 2020-04-20T09:55:59 | 238,655,086 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,264 | r | Assignment2.R | data<-read.table('conc_min.csv',TRUE,sep=",")
data
day<-data[,1]
obmintemp<-data[,2]
fcmintemp<-data[,3]
summary(obmintemp)
summary(fcmintemp)
sd(obmintemp,na.rm=TRUE)
sd(fcmintemp)
var(obmintemp,na.rm=TRUE)
var(fcmintemp)
m<-mean(obmintemp,na.rm=TRUE)
std<-sqrt(var(obmintemp,na.rm=TRUE))
m1<-mean(fcmi... |
7714246976bb01cff73272f8fc4a313dcba2aeef | 75cf3a2418eac8cca5798984534e7851e2c04951 | /연습/prac_ts.R | 45d0f924c0dcb08b480d5bcf1650ac726fc605ec | [
"MIT"
] | permissive | Adrian123K/Pproject | b4aaa033c86a48e6238c45f9566a668f7dd6b00f | 21908eaf075c7b5597bbc26b22b6aadb9847e4b0 | refs/heads/master | 2022-11-23T04:55:30.593429 | 2020-07-22T02:01:30 | 2020-07-22T02:01:30 | 279,070,355 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 553 | r | prac_ts.R | setwd('D:/Desktop/Itwill ws/Pproject/연습')
# https://otexts.com/fppkr/graphics-exercises.html
install.packages('ggfortify')
library(forecast)
library(ggfortify)
library(ggplot2)
library(ggplot)
tute1 <- read.csv('tute1.csv',header=T)
View(tute1)
myts <- ts(tute1[,-1],start=1981,frequency = 4)
autoplot(myts,facets=T... |
9bf4daecf35a69bb89e4ed64eae74adeec77bcfd | 77157987168fc6a0827df2ecdd55104813be77b1 | /COMPoissonReg/inst/testfiles/qzicmp_cpp/libFuzzer_qzicmp_cpp/qzicmp_cpp_valgrind_files/1612729252-test.R | b19cf8e1f2e562e7fec3b7d557a0d37f8434debe | [] | no_license | akhikolla/updatedatatype-list2 | e8758b374f9a18fd3ef07664f1150e14a2e4c3d8 | a3a519440e02d89640c75207c73c1456cf86487d | refs/heads/master | 2023-03-21T13:17:13.762823 | 2021-03-20T15:46:49 | 2021-03-20T15:46:49 | 349,766,184 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 516 | r | 1612729252-test.R | testlist <- list(lambda = NaN, logq = numeric(0), nu = c(1.53063836115601e-18, 1.53063836115601e-18, NaN, NaN, 5.43230922486616e-312, 3.23785921002061e-319, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... |
7f35fbcaec2baddfe5a125418ca6efa1b51e1213 | c2192e1e6d654254e1cc8f9ea6b39a53101e187d | /R/f_highermomentsIV_IIV.R | 95b27d95a13b40610eb420fbfb62fdb7a0c27f26 | [] | no_license | mmeierer/REndo | ddae9421d35b8f8b9063d42500f5058c47eff1e6 | cdf2193678be6da0cac5c2427684dd78eec260b1 | refs/heads/master | 2023-08-18T11:58:43.600081 | 2023-08-11T14:35:29 | 2023-08-11T14:35:29 | 38,715,858 | 13 | 3 | null | 2023-09-06T19:42:16 | 2015-07-07T21:29:23 | R | UTF-8 | R | false | false | 4,273 | r | f_highermomentsIV_IIV.R | #' @importFrom stats model.response model.frame
#' @importFrom Formula model.part
higherMomentsIV_IIV <- function(F.formula, data, g=NULL, iiv, ...){
# Catch ellispsis
l.iivregressors <- list(...)
# Check inputs ---------------------------------------------------------------------------------------------
che... |
1e1db98c27ff8921daa8d2bb644a714c28717fd7 | 539948384886e13e600cce3b5d8ba189d6493151 | /man/generate_DIAG.Rd | 908067da0c91c8fa540cd3f82b10d4842604947d | [] | no_license | huangrh/cmshcc | b9a32b33a0685ad3792d23f2445c5c24f57b8587 | 1150b4684fda2e2feb92fca841e29cd2caf86d30 | refs/heads/master | 2022-04-01T04:37:46.902487 | 2018-07-19T23:55:05 | 2018-07-19T23:55:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 737 | rd | generate_DIAG.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evaluate.r
\name{generate_DIAG}
\alias{generate_DIAG}
\title{Generate sample diagnosis data}
\usage{
generate_DIAG(cmshcc_map, size = 100, seed = 2, max_dx = 10)
}
\arguments{
\item{cmshcc_map}{data frame is the CMSHCC diagnosis to HCC mappin... |
7da2126ea0da960dc08e7bc57a1c121e6bf08250 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/ccaPP/R/cca.R | c7913388eacbb5071f581fd1c8ba7f6333319bb6 | [] | 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 | 17,175 | r | cca.R | # ------------------------------------
# Author: Andreas Alfons
# Erasmus University Rotterdam
# ------------------------------------
#' (Robust) CCA via alternating series of grid searches
#'
#' Perform canoncial correlation analysis via projection pursuit based on
#' alternating series of grid searches in tw... |
bbf5e0e118458c708b7fab44520a77891a39b93d | a0e54828bf4aa9ff38baada5dadafce8a3f0e4bb | /align_scf.R | 495ed7636183550746af84eef7c65fbaa4e2da49 | [] | no_license | jhavsmith/mimicry | 694737f08a77550dd2f48512440806df7b26bbe3 | 866bd1aadc30fb1b3c887810baaa827698f35eb3 | refs/heads/master | 2021-05-13T11:21:08.734247 | 2019-02-04T18:18:02 | 2019-02-04T18:18:02 | 117,120,345 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,853 | r | align_scf.R |
load("scf_table.RDATA")
load("freq_matrix_SureSelect.RDATA")
load("Mapp_scf.RDATA")
load("Null_scf.RDATA")
load("scf_map.RDATA")
scf.map = data.frame(matrix(nrow=nrow(freq.matrix),ncol=9))
index=1
Null.scf = 0
Mapp.scf = 0
for (i in 1:nrow(scf.table)) {
index.b = index-1
scf.matches = freq.matrix[which(freq.matrix... |
c293ce2fc39f434bec090ae9256691638ce38935 | 2712ec1deafe0fa3a9864c786b207d9ed409539a | /R/30_gadm_getBbox.R | a3f861aa1365b1d983c0bc31b624bb42a5d143ee | [] | no_license | Epiconcept-Paris/GADMTools | de556df201c7c6ec4fff0b6cd1e78c02d3f6cbd3 | 9549ec2da551de579a17c1ac5c6d55122a7be660 | refs/heads/master | 2021-01-17T13:05:39.092878 | 2020-03-04T20:53:28 | 2020-03-04T20:53:28 | 42,582,951 | 9 | 2 | null | 2020-01-07T11:38:54 | 2015-09-16T11:24:35 | R | UTF-8 | R | false | false | 422 | r | 30_gadm_getBbox.R | # gadm_getBB.gadm_sf ------------------------------------------------------
# =========================================================================
gadm_getBbox.gadm_sf <- function(x) {
sf::st_bbox(x$sf)
}
# gadm_getBbox.gadm_sp ------------------------------------------------------
# ===========================... |
4c71d2207eb53f27c4084f74661e5b02caea675c | d32dd48eaed05b905937b0eff322927695114229 | /R/dfrankcop.R | e6c1d9f8d5d7f925e649046ea00d4e61f5d2cdab | [] | no_license | AlexanderRitz/copR | 5b8177ef2fa3f37482f93f8cdb971fc6a52a2e54 | 9fae452eb91e437aae36e24b238b022e37058de6 | refs/heads/master | 2020-06-28T03:20:51.019617 | 2019-09-23T18:27:50 | 2019-09-23T18:27:50 | 200,130,597 | 1 | 1 | null | 2019-09-23T00:21:06 | 2019-08-01T23:15:49 | R | UTF-8 | R | false | false | 1,920 | r | dfrankcop.R | #' Construction of Frank pdf
#'
#' @inheritParams dcop
#'
#' @export
dcop.frankcop <- function(copula, u = NULL) {
if (is.null(copula$distribution$pdf)) {
d <- copula$dimension
theta <- copula$parameter
if (is.null(copula$distribution$cdf)) {
stop("Supplied copula object does not contain a cdf expr... |
96ae695d54c3fd6eb48c32d081613f4519efc81c | 34aacdad79d993e55eca4da3c1cc40423dd86738 | /lib/plot_theme.R | 76aa33b44f4319a534bc1b7fb3c6cbb6324a09ad | [] | no_license | bfrggit/R-sc | 1d5cb37915bed8f325c0ad299f2c77dbb7b4ce96 | 0ca0a9c1c3c27226ab383df96911836758898779 | refs/heads/master | 2020-04-20T22:31:15.788936 | 2019-01-17T00:06:46 | 2019-01-17T00:06:46 | 169,142,522 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,724 | r | plot_theme.R | # plot_theme.R
#
# Created: 2018-10-08
# Updated: 2019-01-16
# Author: Charles Zhu
#
# Color theme for plots
# derived from plot_theme_no_move.R
#
if(!exists("EX_PLOT_THEME_R")) {
EX_PLOT_THEME_R <<- TRUE
library(ggplot2)
ggplot_theme <<- theme_light() +
theme(axis.text = element_text(size = 16, color = "bla... |
c62d2b86725a9d480b2e640fdd2a9910b1c02c2c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/gdata/examples/case.Rd.R | 2c3a6022ede700ba18e3c6b0c3d78f878f974261 | [] | 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 | 293 | r | case.Rd.R | library(gdata)
### Name: case
### Title: Map elements of a vector according to the provided 'cases'
### Aliases: case
### Keywords: manip
### ** Examples
## default = NA
case( c(1,1,4,3), "a"=1, "b"=2, "c"=3)
## default = "foo"
case( c(1,1,4,3), "a"=1, "b"=2, "c"=3, default="foo" )
|
932db261506412dfdae005afb7374dda05594a98 | d1935dbdd888acdec4fa6e8a7c7b43e718948a20 | /server.R | 1b39aa9993d8b12fb63b2de932ecab124bbbc628 | [] | no_license | hoangphand/shiny-weed-stocks | 5d8139458be552f702fcf8f4ddf6498b5427d0f3 | a1604b4474b79e530430a21e2156135d02ba3e90 | refs/heads/master | 2021-10-25T05:23:24.572909 | 2019-04-02T00:01:43 | 2019-04-02T00:01:43 | 168,997,826 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,433 | r | server.R | library(shiny)
library(corrplot)
source("dataUtils.R")
source("plotUtils.R")
source("predictionUtils.R")
duration = NULL
server <- function(input, output, session) {
destinationFromURL <- reactive({
destination <- parseQueryString(session$clientData$url_search)$destination
})
selectedSymbolsFromURL <- r... |
da02988ba7eb58d728881839b9cc004498d99dfb | 28ca05437ce8b1ef89e40096e090aaa069df086e | /cachematrix.R | e28fc018fac7e4f3fbf6ffd2a7068e4bb137b215 | [] | no_license | jaygoody101/ProgrammingAssignment2 | 3403017d2cc0e58cccccb8024d1da2dd0f474349 | 6d4bf6d9cd66ec879162d6e65916ad36d21ea6fe | refs/heads/master | 2021-01-01T19:48:32.415561 | 2017-07-29T02:28:45 | 2017-07-29T02:28:45 | 98,693,088 | 0 | 0 | null | 2017-07-28T22:35:25 | 2017-07-28T22:35:25 | null | UTF-8 | R | false | false | 1,183 | r | cachematrix.R | ## Pair of functions to invert a matrix and cache the result for subsequent use
## Using example "mean" function as a template:
## change vectors to matrices where appropriate
## change "NULL" setting to "NaN"
## change evaluate call from Mean to Solve
## Creates list of functions to store cached version of a matrix i... |
33e829821c2272b454fb7422e029e719a6cd31b0 | be45ed71a7d3c32ffd4817f855020fc0d3cce82a | /man/Ctry.msci.sql.Rd | f64d2947312a3a07197d7380552d3dad80c33904 | [] | no_license | Turnado-dx/EPFR | bcf113fc7def4bc311356c93e1ba469c02d906fb | 5a7369d3e6cde36fa0fe5749c774f0fdd26a9905 | refs/heads/master | 2020-12-14T04:09:29.963255 | 2020-01-17T14:45:57 | 2020-01-17T14:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 691 | rd | Ctry.msci.sql.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EPFR.r
\name{Ctry.msci.sql}
\alias{Ctry.msci.sql}
\title{Ctry.msci.sql}
\usage{
Ctry.msci.sql(fcn, x, y, n)
}
\arguments{
\item{fcn}{= function to convert from yyyymm to yyyymmdd}
\item{x}{= output of Ctry.msci}
\item{y}{= single two-charac... |
06496d5198338d95bd22446e0523c05bf2f68d67 | 02c6e4282975166d6f0ea71ff904eeee5fcf36b6 | /R/read_pnadcovid19.R | 1cdb5e4f9dc5f94d23dd2c9f971168ab97c24d78 | [] | no_license | rodrigoesborges/PNADcovidIBGE | 69dc0235e4f554633a7fc5fc8db44a0194adef96 | 0dda3c9d831c6f5af2502d7ba9ad211623f36266 | refs/heads/master | 2022-12-29T03:25:02.744751 | 2020-10-15T03:03:54 | 2020-10-15T03:03:54 | 286,861,096 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,277 | r | read_pnadcovid19.R | #' Read PNAD-COVID19 microdata
#' @import readr dplyr magrittr
#' @param microdata A text file containing microdata from PNAD-COVID19 survey. The file must be downloaded from \url{ftp://ftp.ibge.gov.br/Trabalho_e_Rendimento/Pesquisa_Nacional_por_Amostra_de_Domicilios_PNAD_COVID19/Microdados/}
#' @param vars Character v... |
42174dc938d49e10539b928b80ba58e3fa82332e | 7e1fff52409b817e17f8ce7a7d61298df54c78db | /swarmAnal2020.R | 9fe338b9a697acfba30902b732be9c41033fb458 | [] | no_license | guisantagui/MSK_repo_new | fad0b0bce6a7c33358be22eefb4ec5e78879b40f | ccc27afe72fb48c7d12f8fd3873a647b601696d3 | refs/heads/master | 2021-07-03T23:22:31.328607 | 2021-02-09T23:27:58 | 2021-02-09T23:27:58 | 220,031,177 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,654 | r | swarmAnal2020.R | setwd("C:/Users/Guillem/Documents/PhD/comput/wrkng_dirs_clean/swarmAnalysis")
swarmDat <- read.csv("C:/Users/Guillem/Documents/PhD/comput/pics/allSwarms.csv")
swarmDat$Strains <- gsub("H5707", "H5708", swarmDat$Strains)
swarmDat$Strains <- gsub("M6057", "M6075", swarmDat$Strains)
# Normalize each experiment to the me... |
4c68bfc5784f462ff2145e0d97878d8c20381e72 | 49228420f0239fad554daed38a7a138ae9c47904 | /contornos.R | ea81f5f8047676f38db3c50c39e163bfcc92b5f9 | [] | no_license | Francisco-Pacopaco/Tesis | eddc61e6a44dd981938fb596e4c3c2f9957f0e37 | 572b906fc67a18736390fb9bc822f8b631ef27cc | refs/heads/main | 2023-05-15T02:11:40.149977 | 2021-06-03T15:58:11 | 2021-06-03T15:58:11 | 370,120,880 | 0 | 0 | null | 2021-05-23T20:59:37 | 2021-05-23T17:53:33 | null | ISO-8859-1 | R | false | false | 4,612 | r | contornos.R | ####MAs graficas para la tesis
library(lattice)
library(plotly)
library(ggplot2)
library(ContourFunctions)
library(shape)
#Graficas para las funciones de activación
t<-seq(from=-10,to=10,by=0.001)
sigmoid<-function(z){
1/(1+exp(-z))
}
x11()
plot(t,sigmoid(t),col="green",type = "l",ylab = " ",xlab = "", lw... |
db2e532b2df600bfd0bff92881d91488e61adecc | 82029e1f7682d695cef736d778deec6839e6ebd2 | /compareTime.R | b05f810952523b0cd6937b5896964ca5ff3e920b | [] | no_license | leogalhardo/aprendendoGit | 97b6322bd42b2deec73a3f4fe278432542ade9fc | b136a7afedb6a1992c5bb709494e2f6b556d1199 | refs/heads/main | 2023-07-02T21:54:52.919980 | 2021-08-08T14:59:19 | 2021-08-08T14:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 115 | r | compareTime.R | microbenchmark::microbenchmark(
recursiva = potenciaRecursiva(2, 10, FALSE),
log = potenciaLog(2, 10, FALSE)
)
|
d8302ff9d48e8e6f40fa11558c1f2d89f8c64e7b | ca6240e30a203236d1eb2090def306c4bc22d32e | /R/sxtLength.R | aa1f03bbefecde3c71fb8f611e3b8afa4c19e39d | [
"MIT"
] | permissive | jaspershen/sxtTools | a3ad0681afbddc3f01b2db9a6fa1239bb6331b65 | 209d7ecd37240bbacc3c27a93050f50bdfb24f0b | refs/heads/master | 2021-05-13T21:56:21.852761 | 2020-04-27T20:43:04 | 2020-04-27T20:43:04 | 116,474,707 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 228 | r | sxtLength.R | #' @title sxtLength
#' @description Calculate length of multiple vectors.
#' @param ... vectors.
#' @author Xiaotao Shen
#' @export
sxtLength <- function(...) {
data <- list(...)
cat(unlist(lapply(data, length)))
} |
800f8824dee1e1c6f2470199c1c1d64943ea2422 | 2e5440c1f655304515c6ff97c08676d1c6eb5222 | /exercise-3/exercise.R | 8bac2baf16e4a82039756bc388d65f62110abfed | [
"MIT"
] | permissive | ursulamichelle/ch10-dplyr | 01788fee08bc9d88b68b9057c914394505b0bf23 | 8e229990524b8966c6ab627dc8cb8e29ab05301f | refs/heads/master | 2020-03-10T03:30:59.868118 | 2018-04-21T05:17:05 | 2018-04-21T05:17:05 | 129,167,062 | 0 | 0 | MIT | 2018-04-11T23:45:23 | 2018-04-11T23:45:23 | null | UTF-8 | R | false | false | 1,256 | r | exercise.R | # Exercise 3: using the pipe operator
# Install (if needed) and load the "dplyr" library
#install.packages("dplyr")
library("dplyr")
# Install (if needed) and load the "fueleconomy" package
#install.packages('devtools')
#devtools::install_github("hadley/fueleconomy")
library(fueleconomy)
# Which 2015 Acura model has... |
6df5e44eb1affabdc25999283bdb26c0ee598b25 | feacd140ef39b3b7aa3646dfb4aa44ca3b721563 | /lessons/14_week_modelsandTextAnalysis/textAnalysis/sentimentAnalysis_PositiveAndNegativeWords_2018.r | 2baa3c9c97912030a72268414689c0573d1891b1 | [] | no_license | Allegheny-Computer-Science-301-F2018/classDocs | c76d4ba668ac640d9c345e02235437bb1e478549 | 0957acab72c678538c39084edff5212e97c4fadb | refs/heads/master | 2020-03-27T09:22:27.813938 | 2018-12-06T17:01:04 | 2018-12-06T17:01:04 | 146,335,323 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,126 | r | sentimentAnalysis_PositiveAndNegativeWords_2018.r | # date: 28 Nov 2018
# sentiment analysis in R
#check to see whether all libraries are installed properly.
#install.packages("janeaustenr")
library(janeaustenr)
library(dplyr)
library(stringr)
#install.packages("tidytext")
library(tidytext)
library(ggplot2)
library(tidyr)
original_books <- austen_books() %>%
group... |
64de0263e8ff95cc98ff2bdaaab4f028708f2d02 | 0ec9018173e5ab27df738e1bac01a9f3ecfb0388 | /fgsea/unmc_fgsea.R | cc3c77da8242c5b407cc7ded3f77b6f457661585 | [] | no_license | yueli8/unmc | cd4f83e1dfd7aae1bad2c9a165f134ee8d59e226 | 8955fa8a1313d233833bd261c72074ccd9e36566 | refs/heads/main | 2023-05-09T01:08:42.401492 | 2021-06-07T08:19:41 | 2021-06-07T08:19:41 | 351,345,932 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,977 | r | unmc_fgsea.R | library(fgsea)
library(tidyverse)
library(data.table)
library(ggplot2)
setwd("/Users/yli1/unmc01")
#hcq_vs_con
res<-read.table("hcq_vs_con_fgsea.txt")
ranks <- deframe(res)
pathways.kegg<- gmtPathways("c2.cp.kegg.v7.2.symbols.gmt")
pathways<-gmtPathways("c2.cp.v7.2.symbols.gtm")
fgseaRes_kegg<- fgsea(pathways = pathway... |
4f98952c756c20fdec0371e69988bccd706ee8fd | b6b294c5d8c53fcc837882c3f55c13e4f7b4f95b | /tests/testthat/test-04-rmarkdown.R | fc80c455208e15f42437fcbc4efcb12018646477 | [
"MIT"
] | permissive | kiwiroy/perlbrewr | 542ca8255a705052c596b2495220053f1474bec5 | 33118411f8ef78dcba110df172020b9f5a3292ba | refs/heads/master | 2021-08-18T01:27:39.194005 | 2020-04-27T23:09:52 | 2020-04-27T23:09:52 | 171,650,256 | 0 | 0 | NOASSERTION | 2019-07-05T01:06:43 | 2019-02-20T10:16:44 | R | UTF-8 | R | false | false | 1,276 | r | test-04-rmarkdown.R | context("rmarkdown templates")
test_that("knit doc", {
# check there is still a template under inst
template <- "perlbrewr"
package <- "perlbrewr"
template_path = system.file("rmarkdown", "templates", template,
package = package)
expect_true(nzchar(template_path))
# create a d... |
bf91373c142b6d4676127809303834b6cf81d94a | 0ccb2ef7d5d608d9c33ec1b68c176c17a7a3d888 | /risk_prediction/Nasim_new_prs/code/merge_overall_model.R | 8c035e6c69b10a3ecf994d3fed11698dbd4eebaf | [] | no_license | andrewhaoyu/breast_cancer_data_analysis | dce6788aa526a9a35fcab73564a457e8fabb5275 | d84441e315e3ce135149e111014fa9807228ee7c | refs/heads/master | 2023-05-31T20:59:44.353902 | 2023-05-15T19:23:30 | 2023-05-15T19:23:30 | 103,444,023 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 707 | r | merge_overall_model.R | setwd('/data/zhangh24/breast_cancer_data_analysis/')
logodds_overall <- NULL
var_overall <- NULL
for(i1 in 1:32){
load(paste0("/data/zhangh24/breast_cancer_data_analysis/risk_prediction/Nasim_new_prs/result/overall_log_odds_",i1,".Rdata"))
logodds_overall <- c(logodds_overall,result[[1]])
var_overall <- c(var_ove... |
d6a85675ea2e94043643119c5f5da8d5383d8e2e | 20d35a761bc689f482c296ca942549d401bc285a | /ui.R | 03edaad4c8b61296182bb3b6afdbc505aac756a0 | [] | no_license | wengjingying/CheckWaite | edfaa47f7a69a06f7bd2b743c8e37e0e5f20cc2b | 48e1a35a5215217a6ba6661f197ae896f53f1c41 | refs/heads/master | 2021-01-10T02:16:56.775903 | 2015-09-26T06:41:06 | 2015-09-26T06:41:06 | 43,194,299 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,440 | r | ui.R | # shiny project about checkee, input month year city output average waiting time
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Average Waiting days for USA Visa Administrative Processing in China"),
sidebarPanel(
numericInput('id1','Year',2008,min = 2008,max = 2015,step = 1),
... |
755b65482f23173cdc85ecb69803f644b2c1444b | b588e0a4df002a71bc1948f660b0f033bab57858 | /fitnesspob.R | ef80d5af71018b96335c85208986178088b8ea81 | [] | no_license | ccqa86/Proyecto-Maestria | 2eacb09dee422c255d722c22f6922106e6eead64 | 29bf33516abc74280b763c70c473a1e7defd2fcd | refs/heads/master | 2023-01-03T10:12:34.574582 | 2020-11-02T00:30:02 | 2020-11-02T00:30:02 | 294,197,770 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,798 | r | fitnesspob.R | calcular_fitness_poblacion <- function(poblacion, funcion_objetivo, optimizacion,
verbose = TRUE, ...) {
# Esta función devuelve el fitness de cada individuo de una población.
#
# ARGUMENTOS
# ============================================================================
#... |
109c8d2b8b67721a003f4e727c423ad9d23247d1 | 77090c3eaf15342505edc228ea19769ab219e0f7 | /Tools/DECoN-master/Windows/packrat/lib-R/nlme/scripts/ch01.R | 052757e1a885aac7f8b1d90289dba230e4bee7bc | [
"MIT"
] | permissive | robinwijngaard/TFM_code | 046c983a8eee7630de50753cff1b15ca3f7b1bd5 | d18b3e0b100cfb5bdd9c47c91b01718cc9e96232 | refs/heads/main | 2023-06-20T02:55:52.071899 | 2021-07-13T13:18:09 | 2021-07-13T13:18:09 | 345,280,544 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,830 | r | ch01.R | #-*- R -*-
library(nlme)
pdf(file = 'ch01.pdf')
options( width = 65, digits = 5 )
options( contrasts = c(unordered = "contr.helmert", ordered = "contr.poly") )
# Chapter 1 Linear Mixed-Effects Models: Basic Concepts and Examples
# 1.1 A Simple Example of Random Effects
Rail
fm1Rail.lm <- lm( travel ~... |
533c843fe31bff517e0e3298c492ab089a3e3fc2 | a5f3d6c1cf45a7b8ee641c8a0c05c6046578c783 | /man/AmigoDot.to.graphNEL.Rd | 09d9c172d1443535ef27445223be6d61833a0091 | [] | no_license | mschroed/RamiGO | f71140f3ac1b5ae94d5f7cdeafaac175de125901 | fe05fe3e166922db58796df169edbc0445e6d4da | refs/heads/master | 2021-01-19T16:57:05.668955 | 2015-04-17T04:42:40 | 2015-04-17T04:42:40 | 1,807,803 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 714 | rd | AmigoDot.to.graphNEL.Rd | \name{AmigoDot.to.graphNEL}
\alias{AmigoDot.to.graphNEL}
\title{
Converts an AmigoDot S4 object to a graphNEL object.
}
\description{
Converts an AmigoDot S4 object to a graphNEL object.
}
\usage{
AmigoDot.to.graphNEL(object)
}
\arguments{
\item{object}{
is a AmigoDot S4 object.
}
}
\value{
\item{... |
8cac112fc665372019f690c2713acc0d535e19cd | 6c28b83f3b8105c881daf4c068f78f14a1f1f153 | /r_whether/plotMeanTemp.R | 051099a964df3d1998e8c19878f52a6aaa579be1 | [
"MIT"
] | permissive | anp/whether | 4de57e1343b0db0cde2dedf3e374122e22fd6e87 | 36447bb29209e7ee26307c9de782488bdc62fe7a | refs/heads/master | 2021-06-06T13:15:52.737298 | 2015-06-24T18:55:01 | 2015-06-24T18:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,055 | r | plotMeanTemp.R | res <- dbSendQuery(conn = con, statement = "select
s.latitude,
s.longitude,
avg(ds.mean_temp_fahr)
from stations s, daily_summaries ds
WHERE ds.station_id = s.station_id and ds.wban_id = s.wban_id
GROUP BY s.latitude, s.longitude")
print("Fetching average temperature query results...")
avgTempLocationFrame <- db... |
24634be5c94911a3f933c9f42f0ffcd41492162b | 61659cb027886dfbd05955797ce8bb84ed3defd4 | /hw03/code/make-teams-table.R | 5fc071ba1ffba23698d5741fa5a2cd806c1a94ed | [] | no_license | efuna503/stat133-hws-fall17 | 504e159dab06cad0823f4c39aab579fab22ef984 | b31da970a73d4fc7628274629f242f9d2faf74dd | refs/heads/master | 2022-03-15T05:22:09.321819 | 2019-08-15T05:35:23 | 2019-08-15T05:35:23 | 104,022,989 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,263 | r | make-teams-table.R | #=================================================================================
#title: make-teams-table
# description: a short description of what the script is about
# input(s): what are the inputs required by the script?
# output(s): what are the outputs created when running the script?
#=========================... |
f77f2f323b480868a12063eac22cbc9d1736f57a | 167acb3748b35a6d43b991a0097f9bd89e7bf0dc | /tests/testthat/test-ip_to_binary.R | 6a5a49e2556614c52fdf0b856b92019bfa368896 | [
"MIT"
] | permissive | davidchall/ipaddress | c3de405db6b7fcc2417f7e59e38fec51523b6519 | f7c934cb8a5cb0d2fe9b9200cc1d004ec4354884 | refs/heads/master | 2023-04-08T12:47:00.530129 | 2023-04-04T15:00:50 | 2023-04-04T15:00:50 | 239,136,555 | 30 | 3 | NOASSERTION | 2022-12-17T18:24:54 | 2020-02-08T13:28:48 | R | UTF-8 | R | false | false | 969 | r | test-ip_to_binary.R | x <- ip_address(c("192.168.0.1", "2001:db8::8a2e:370:7334", NA))
test_that("binary encoding/decoding works", {
expect_snapshot(error = TRUE, {
ip_to_binary("hello")
})
expect_snapshot(error = TRUE, {
binary_to_ip(x)
})
expect_type(ip_to_binary(x), "character")
expect_equal(ip_to_binary(x), c(
... |
3e47e83d8fdf6bd84e739db73d6fe64f88def399 | 3870838ffbe0cde6fb869dcce9c5044b250c5c22 | /code/sim_simulate_read_count.R | e443f0ef0960c6cebf440f3aebf007b49e42a4c4 | [
"MIT"
] | permissive | liangyy/mixqtl-pipeline | d6f9baf9db9ee260bc6bafd29773361e8d58b33e | 556c983a2e5bb3feaf21a88a72c4a77c98df179d | refs/heads/master | 2023-02-19T07:53:47.135434 | 2020-05-27T02:50:54 | 2020-05-27T02:50:54 | 191,611,597 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,458 | r | sim_simulate_read_count.R | library(optparse)
option_list <- list(
make_option(c("-p", "--param"), type="character", default=NULL,
help="input YAML telling the parameters of simulation",
metavar="character"),
make_option(c("-o", "--output_prefix"), type="character", default=NULL,
help="pref... |
3fe1851cfcf0748d7b44bb38d233e3d163f4b446 | b5bf29c88403a74dcafcdf75aa1a6460f64133a6 | /project/plot1.R | ff2a45cd4ee4acc5bec29204670cb98d100d9c48 | [] | no_license | dljvandenberg/coursera_data_analysis | 611bfa873fd46ed0b36b71cecd60bb0ce222f230 | c5ee3abb893c9ee78927fde02c0c58f2049f4abe | refs/heads/master | 2021-01-18T13:22:22.079825 | 2015-11-04T15:54:49 | 2015-11-04T15:54:49 | 37,653,638 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,085 | r | plot1.R | # Creates plot1.png aimed at answering the following question:
# ----
# 1. Have total emissions from PM2.5 decreased in the United States from 1999 to 2008?
# Using the base plotting system, make a plot showing the total PM2.5 emission
# from all sources for each of the years 1999, 2002, 2005, and 2008.
# ---
# ... |
8aed2f6a5c3526759e2c168e02bbeb597adda65a | e4c1422348ae1cd4aa316aad156fefe59670e776 | /pkgs/debias/R/MLEw3p_secant.r | ace4c5a96470afda2a796879dd347373d495eba6 | [] | no_license | thomas4912/pkgs | 161170c78068340a82ddde7535293f812cc77a73 | 8f060661cca439e13b16990bcd2268cc96aac4b3 | refs/heads/master | 2021-01-22T07:27:29.068120 | 2017-02-13T12:17:52 | 2017-02-13T12:17:52 | 81,818,568 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,273 | r | MLEw3p_secant.r | ## MLEw3p_secant
##
## This is a prototype function pending port to C++ using RcppArmadillo.
## This function optimizes the MLE for the three parameter Weibull distribution
## for a given dataset. Data may contain both failures and suspensions.
## The method of optimization is similar to the best method found to optim... |
f593234aab8e710596f40f72269853ff239e8f6f | e06fde74d2fdbc3cbbc5038cc27ec80c41d94f05 | /4.1 - RD plots (rdrobust).R | 246295bbc0813bd7ecdf6c62e454db7f9c2b97d3 | [] | no_license | joseeduardo-gs/do-political-parties-matter | a55039b8136342ac532abed07ca8b4c6721e95d7 | db62e331ca306e86dd9aa7af8090fd97951d1a20 | refs/heads/main | 2023-03-19T09:24:48.672246 | 2021-03-16T02:34:14 | 2021-03-16T02:34:14 | 348,171,201 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,290 | r | 4.1 - RD plots (rdrobust).R | ############################################################################################################
# ANÁLISE EMPÍRICA - GRÁFICOS RDPLOTS
############################################################################################################
rm(list = ls())
# Paco... |
ace96071e7950a4bcff94201767dd7057ef58ee0 | d4d2d370f8cb50e002a3489d2e2b9186651ef92f | /inst/scripts/analysis/plots/hbonds/AHdist_CXL_ARG_bfac20.R | f010a26144c731b06f4380232b72ea3b26b781d4 | [] | no_license | momeara/RosettaFeatures | 2c45012b042a76b0176a0924f1cc60fe3ba06e8b | 2700b0735071971bbd2af91a6b1e7454ceeaa2a6 | refs/heads/master | 2021-01-19T03:54:05.386349 | 2017-03-24T14:07:21 | 2017-03-24T14:07:21 | 47,008,643 | 1 | 3 | null | 2016-06-16T23:00:32 | 2015-11-28T03:28:34 | R | UTF-8 | R | false | false | 7,942 | r | AHdist_CXL_ARG_bfac20.R | # -*- tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
# vi: set ts=2 noet:
#
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing memb... |
8cdc24fe1476a21231648bbb18423fd4f9b2c7e5 | 8dc0cbdcbe15c8e048649184ffc53f6ee6d3fc6f | /man/hinv_matrix_asreml.Rd | b1277427ad38f3867e8c5a19bdf8289dee4793ba | [] | no_license | DPCscience/GS | 47585e70fb75c8f76da8a6cd96359ac47433ca9e | f560b6ca96085f3772df87fb9add5756e31cc077 | refs/heads/master | 2021-01-17T06:15:14.574881 | 2018-10-29T07:35:54 | 2018-10-29T07:35:54 | 47,627,655 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,693 | rd | hinv_matrix_asreml.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hinv_matrix_asreml.R
\name{hinv_matrix_asreml}
\alias{hinv_matrix_asreml}
\title{Build the H-inverse-matrix from G-inverse-matrix and pedigree-full and pedigree-genotype#'}
\usage{
hinv_matrix_asreml(M012, ped_full)
}
\arguments{
\item{ped_fu... |
f03bec02fa644f0e2d9d418806d4f275de4a0f61 | a98671b0ad15490cdc724c2f06c533ebe45038d5 | /examples/bar-chart.R | 7be35add198263edba2ab5527594e4121466f1ed | [] | no_license | datahub/ggmjs | 32efd19d622853b542417a2faacb9cf6188f3b98 | a4ac60e6f49289d580d10ed7ee60e9ae5c7bda01 | refs/heads/master | 2021-09-25T17:24:00.940716 | 2018-10-24T15:31:23 | 2018-10-24T15:31:23 | 103,697,717 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 316 | r | bar-chart.R | library(tidyverse)
library(ggmjs)
plot_original <- economics %>%
ggplot(aes(x = date, y = uempmed)) %+%
geom_line(color = 'steelblue') %+%
xlab('') %+%
ylab('') %+%
ggtitle('The long term unemployed', 'Median duration of unemployment, in weeks, 1967 to 2015')
plot_mjs <- plot_original %+%
theme_mjs()
|
061f3f91b3f2a8156ae5b47ba5d39e96531f6379 | b471661cb2023ea82010fa46af1562e683bf645d | /Wang/final_project.R | 2afa1e8c617356be211514b263a01c20146d7c1e | [] | no_license | jrm365/Final | f1d7f97ce9865e655b24914732a9a6d146447126 | 65c088d8c0a0a4af2ecc08bbc53d8f564e80a315 | refs/heads/master | 2020-04-12T01:08:50.091875 | 2018-12-18T03:32:45 | 2018-12-18T03:32:45 | 162,222,972 | 0 | 0 | null | 2018-12-18T03:12:23 | 2018-12-18T03:12:23 | null | UTF-8 | R | false | false | 4,827 | r | final_project.R | # MATH 110 Final Project #
titanic <- read.csv("titanic.csv", header = T, stringsAsFactors = F)
install.packages('corrplot')
install.packages('ggthemes')
library(ggplot2)
library(ggthemes)
library(dplyr)
library(corrplot)
survival_factor <- function(df, variable)
{
survive <- df %>%
mutate(Class = ifelse(Surviv... |
bda15751e5bd3f7131d01202ed651b03414162d7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/phylosim/examples/getRateParamList.TN93.Rd.R | cbaff69422749c7a370c63a960b601cbdac1f0b9 | [] | 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 | 529 | r | getRateParamList.TN93.Rd.R | library(phylosim)
### Name: getRateParamList.TN93
### Title: Get the rate parameters
### Aliases: getRateParamList.TN93 TN93.getRateParamList
### getRateParamList,TN93-method
### ** Examples
# create TN93 object
p<-TN93()
# set/get rate parameters
setRateParamList(p,list(
"Alpha1"=1,
"Alpha2"=2,
"Beta"=... |
afa4e85f8a16617f845c0f594347758b55c0e62d | 686edc60b01d182de4c1012e15952ecc06d769f4 | /Linear Regression.R | 7ca20efd40374cec5f727677da133b1a6b5689bb | [] | no_license | jms5049/Data-Science | dcbfe345cbd1fd62c4e66d2a1afc1fd93209aff2 | 0730add09ac124f47499127d21a9502d96dab4f9 | refs/heads/master | 2020-03-11T18:09:47.189056 | 2018-06-06T05:22:18 | 2018-06-06T05:22:18 | 130,169,336 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,391 | r | Linear Regression.R | rm(list=ls())
#set work directory path
setwd("directory path")
#predict price using 'toyota' dataset
rawdata <- read.csv('toyota.csv', header = TRUE, na.strings="")
rawdata <- subset(rawdata, select = c(Price,Age_08_04,KM,Fuel_Type,HP,Color))
#catergorize cars with their Fuel Types
unique_type <- unique(rawdata$Fuel... |
354e69f2c97ec85196fe3e813e80fb5486c1e21d | 2059668d2c9b4f26e61b876ce65f62c46c95d713 | /data-raw/glottolog/scripts/cartogram.R | 0a516b81657c83804be625190ef79a20b15215d4 | [] | no_license | cysouw/qlcData | f8ad6a1625136af898dc93920051b4a81e983e20 | 9d3271aa75876eadea9a119d7c05e1295b10d7e5 | refs/heads/master | 2021-12-14T00:05:11.836290 | 2021-12-07T16:55:53 | 2021-12-07T16:55:53 | 44,332,286 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 4,077 | r | cartogram.R | library(qlcVisualize)
library(qlcData)
library(rworldmap)
library(spatstat)
library(maptools)
library(rgdal)
library(rmapshaper)
# glottolog
data(glottolog)
g <- glottolog
langs <- g[ !is.na(g$longitude) ,]
coords <- langs[, c("longitude","latitude")]
rownames(coords) <- rownames(langs)
# proj4
# scan("http://spatia... |
112da895e428f257a1b1715cd92ea2bec83077f1 | 9232abf64672599fdcd2d6ebd86e661b38a36cdd | /CS498AML/HW1/HW1-PartB.R | a0ed28e4afa54bbe67a47797f99cda5bce4f72e5 | [] | no_license | pradeepkodam/pradeepkodam.github.io | 446aad02068389d8345c856a7eb2337d4340cf8e | 0bc2fc362ea7a173d9275a7f5d52c0c1a093070e | refs/heads/main | 2023-06-26T22:25:59.660407 | 2021-08-01T20:01:59 | 2021-08-01T20:01:59 | 391,725,349 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,914 | r | HW1-PartB.R | setwd('C:/SravansData/mcsds/aml')
wdat<-read.csv('pima-indians-diabetes.data.txt', header=FALSE)
library(klaR)
library(caret)
bigx<-wdat[,-c(9)] # all the features from colum 1 to 8 and 9th contains the label
bigy<-wdat[,9] #9th colum contains the label
nbx<-bigx
for (i in c(3, 4, 6, 8))
{vw<-bigx[, i]==0 #making the f... |
4d87b678326743e733d2ff09181f45c25c40112e | 3c133db1216e38c2e17271e6b8d164451a398728 | /Function/F_Shuffle_test_sp_model.r | d5bfdf29d6b54445cc67ba75643f110358fc104a | [] | no_license | ArcticSnow/My-R-script | 6fec5ff0b13e31e5655d4a98b4adbfc4354d57f8 | 5e0ac4cac6101b2a66a9d6a4467853c0d4a138a8 | refs/heads/master | 2021-01-18T18:25:34.652369 | 2013-09-03T19:48:15 | 2013-09-03T19:48:15 | 5,183,733 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,193 | r | F_Shuffle_test_sp_model.r | # Base code by Margaret Short, transformed into function by Filhol S. on 3rd MAy 2012
# Do we need a spatial model?
#
# Idea:
#
# 1) Reorder the data many times, calculate and plot empirical
# semivariograms.
#
# 2) Overlay our empirical semivariogram. Compare.
#
Test.sp.model <- function(my.vari... |
c9a8494a94b404a49b1e4bbc2c3d6f131492ed12 | 38f3b03257472a0b2aa5dcbd8382270d8c09571e | /man/IntLik-package.Rd | 964fdd004b899baf53caadcaa8544df57964892e | [] | no_license | cran/IntLik | d33342cf5a8aec5d88ba89711a692cddb4228a92 | baab254edbcfbbb35452b3010862dd9bb011c07a | refs/heads/master | 2020-05-31T18:22:16.710340 | 2012-01-25T00:00:00 | 2012-01-25T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,571 | rd | IntLik-package.Rd | \name{IntLik-package}
\alias{IntLik-package}
\alias{IntLik}
\docType{package}
\title{
Numerical Integration for Integrated Likelihood
}
\description{
This package calculates the integrated likelihood numerically. Given the Likelihood function and the prior function, this package integrates out the nuisance para... |
a83784b6c25333a22ce67a60029bba52a03cc9af | d46bf0ba66ac1c27548453d456517c5c8998445a | /IndepDyads/R/HRS/1_Variable_Recode.R | f59008a07b46d6d23660d9960bf459086f66d9ba | [] | no_license | timriffe/IndepDyads | a5bf7178783e4399142c6b5ebd82d4cf88e68058 | 6a65a842650cfbc734543be3e3d7f69fc41352f9 | refs/heads/master | 2021-06-11T22:33:12.455824 | 2021-06-07T10:41:18 | 2021-06-07T10:41:18 | 123,588,605 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,144 | r | 1_Variable_Recode.R |
# --------------------------------------
rm(list=ls(all.names = TRUE))
# This script recodes most variables, makes some new ones.
# This is the step after extracting from the RAND version 2016v1
# file in H0_RAND_reshape.R
# --------------------------------------
# source("R/1_Variable_Recode.R")
# Sets working direct... |
03786f79a3fb8a5278320c013c51b2c196cc0bdd | e08bb6e9a5dedc51d8ee76449d89f143782f9654 | /cachematrix.R | 2e869a6b9aec6fb357e2662c37d512c211072790 | [] | no_license | Caroliem/ProgrammingAssignment2 | fc57b921f1a73a8187de10d4ebc9fcb8f5d1a697 | 7d39012c99782b563a56bc8c8ec2f3afc33b4ee0 | refs/heads/master | 2021-01-22T00:19:48.602149 | 2014-05-20T10:31:32 | 2014-05-20T10:31:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,278 | r | cachematrix.R |
## This function will create a list of functions on the matrix(x)
makeCacheMatrix <- function(x = matrix()) {
mInv <<- NULL
## function to set matrix, assumption if we set new matrix we also reset inverse to NULL
set <- function(y) {
x <<- y
mInv <<- NULL
}
## function to get matrix
get <- func... |
1d51537d162c0797c153a82876cba299d9992964 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/GENEAclassify/examples/GENEAdistance.Rd.R | 66268c5083b96ac9722d8564d11853fc7561bcdc | [] | 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 | 272 | r | GENEAdistance.Rd.R | library(GENEAclassify)
### Name: GENEAdistance
### Title: Find the mean distance between two steps detected
### Aliases: GENEAdistance
### Keywords: internal
### ** Examples
x1 <- c(20, 15, 10)
GENEAdistance(x1)
x2 <- c(300, 255, 111)
GENEAdistance(x2)
|
8ba3d79600f9e83026aea0130992bf6c8a1b6a67 | 7b8aa15d266826808c3cf35da01112eb0de2beed | /src/test/resources/testCBIND.r | 91f234ffb8b3ad8ac0a1cbe04deb14ab7119b842 | [] | no_license | AcuoFS/acuo-algo | d6df24a7f74f098bcf2fbac6b5fa67fd10baa8e1 | 8c874675c02ffbdc711d3133fa3beebe592d12d3 | refs/heads/master | 2020-03-06T17:31:18.232081 | 2018-07-02T19:15:14 | 2018-07-02T19:15:14 | 126,991,407 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 482 | r | testCBIND.r | callIds <- c('mcp1','mcp5','mcp7')
assetIds <- c("AUD", "CAD", "EUR", "GBP", "HKD", "JPY" ,"SGD","USD")
call.num <- length(callIds)
asset <- length(assetIds)
base.mat <- matrix(0,nrow=call.num,ncol=asset.num, dimnames = list(callIds,assetIds))
eli.mat <- base.mat
group.callIds <- c('mcp1','mcp1','mcp1','mcp5','mcp5',... |
87f807b0508728899c96b1773a96ec410060d037 | 6bdbc69ac73cd9d3009cd2a09149bdc79f2195e0 | /R/corr_bestlag.R | 9dacdcb2adec4c05d403a94386b5e662d2e0655e | [
"MIT"
] | permissive | gitter-lab/LPWC | fdfe554b2d0b03536edcb2858a95cf7fd92fba6b | 56d076d31adf00e6b466e2e7cd27c7983e6056ab | refs/heads/master | 2021-01-15T11:04:01.948099 | 2020-04-25T19:52:47 | 2020-04-25T19:52:47 | 99,610,178 | 22 | 2 | NOASSERTION | 2020-01-23T17:43:21 | 2017-08-07T18:59:20 | R | UTF-8 | R | false | false | 3,867 | r | corr_bestlag.R | #' Computes best lag correlation
#'
#' This function computes correlation based on best picked lags. The lags indicate delayed changes.
#'
#' @param data a matrix or data frame with rows representing genes and columns
#' representing different timepoints. If data is a data frame, the gene names
#' can be specified usin... |
8b0e8a3736e95ab4c6cb0e7ca18d03e51c0fe1b4 | 8b94a5c8b2a6e14d39f77fc0d64d9b8dad386b26 | /R/calculate_ozcbi_forest.R | 810ac6c376566269f7bbda966f00ca9818ad25da | [
"MIT"
] | permissive | dbca-wa/rOzCBI | 0753351b91651c26b3ac027820dacf52101fa878 | 98014eb8f9590b0c4b2f3d410240e5bca177092a | refs/heads/main | 2023-08-16T21:46:40.404365 | 2023-08-10T08:07:22 | 2023-08-10T08:07:22 | 232,464,945 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,373 | r | calculate_ozcbi_forest.R | #' Calculate the Forest OzCBI from numeric input variables
#'
#' `r lifecycle::badge("stable")`
#'
#' @details The Forest OzCBI is calculated from the following components:
#'
#' * Stratum 1 fraction of cover: always 1 (100%), therefore never captured.
#' * Stratum {2..5} fcov: surface covered by the stratum in quarter... |
886110982e62afb07e619fed1ebcfc7ce76c90e6 | 6a28ba69be875841ddc9e71ca6af5956110efcb2 | /Statistics_-_Concepts_And_Applications_by_Nabendu_Pal_And_Sahadeb_Sarkar/CH4/EX4.1/Ex4_1.R | 7316da46ffdb186797d40e7444beaeeeeebd6ee5 | [] | 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 | 253 | r | Ex4_1.R | #Page Number: 55
library(plyr)
dataset <- data.frame(Distinct_entry = c(8,9,0,9,1,4,3,7))
n <- length(dataset$Distinct_entry)
y <- count(dataset,'Distinct_entry')
print(y)
z <- table(dataset)
cat("Mode is",names(z)[which(z==max(z))] ) |
84401b82969748f444d889f983fff13cbb3dfb71 | cf6cbe4fb89ae5b05e923b468a04980a78947cd9 | /man/freshenGenes.Rd | 3dfd133c5e62bb675dd7e6e38207b76a993b7444 | [] | no_license | jmw86069/genejam | 281870956b4da77aa483587fd1c74e09dc39e901 | f85495f0562f131ef2cfe50190f63510d878de74 | refs/heads/master | 2022-10-06T15:41:23.445595 | 2022-09-13T17:40:01 | 2022-09-13T17:40:01 | 233,139,523 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 9,220 | rd | freshenGenes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genejam-freshen.R
\name{freshenGenes}
\alias{freshenGenes}
\title{Freshen gene annotations using Bioconductor annotation data}
\usage{
freshenGenes(
x,
ann_lib = c("", "org.Hs.eg.db"),
try_list = c("SYMBOL2EG", "ACCNUM2EG", "ALIAS2EG"),... |
b20426b603e5c4628a947bd895d1c417344edb5c | ddb525b0a9d9c45161f28140cc786e66af722d57 | /man/nikkei.df.Rd | a483e62957008dc526c7ac308b3fc5f045fd04b7 | [] | no_license | cran/QRMlib | ebd393ae06d6770c906cbd72a4174794db273365 | 914a855242662effc9bd6f9e60ef45119bfdd882 | refs/heads/master | 2020-06-04T09:13:15.520228 | 2010-02-22T00:00:00 | 2010-02-22T00:00:00 | 17,717,887 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 747 | rd | nikkei.df.Rd | \name{nikkei.df}
\docType{data}
\alias{nikkei.df}
\title{
Nikkei Stock Market Index (data.frame Object) January 4, 1994-March 25, 2004
}
\description{
The \code{nikkei.df} dataframe provides the daily closing value for the Nikkei index
from January 1994 to March 2004 in its nikkei@Data slot. QRMlib's R-versi... |
0a0aa00d7b66a528d483809c24a7ca6519c97110 | 1afbf6bd36c777bd33fed43f1724ecb08f0a0635 | /functions/plot-resolution-effect.R | cd8398ef7cba3bfd3790e465d8cd4f272a20a1c8 | [
"MIT"
] | permissive | DanOvando/skynet | 7328971f2839391b57b9259b9bb7e0af6c8be06d | e8ae39e1e894b3c503805f0f3354b753cded7525 | refs/heads/master | 2021-03-30T18:18:55.571456 | 2018-08-13T04:50:53 | 2018-08-13T04:50:53 | 93,210,132 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 543 | r | plot-resolution-effect.R | plot_resolution_effect <- function(mod_res) {
res_effect <- mod_res %>%
mutate(obs = map_dbl(rounded_data, nrow)) %>%
ggplot(aes(resolution, r2)) +
geom_point(aes(size = obs), shape = 21, fill = "steelblue") +
geom_smooth(se = F) +
scale_y_continuous(limits = c(0, NA),
name = expression(... |
1506e4de782916a2cdcf4bb93dd9d7c101113434 | f9dc1dda10c8967793424d503edc77bdead571f5 | /step1-datacleaiing.R | 2b8c05f068015cdf9de08e5c57b1c94ee0a21575 | [] | no_license | tingtingting118/decisiontree-for-income-in-SF | d03c90d1c23f0028d7231084bf1a726e204a773a | 6bb33d971910a0f11f83ef49cbf07c07d66d7719 | refs/heads/master | 2021-09-07T23:11:37.827743 | 2018-03-02T19:17:13 | 2018-03-02T19:17:13 | 105,492,812 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,523 | r | step1-datacleaiing.R | #import data first
library(readxl)
income_data <- read_excel("C:/Users/karen/Downloads/UIC/ids572/hw2/income.data.xlsx",
+ col_names = FALSE)
#add title for each column
names(income_data)<-c("hh_income","Sex","martial status","age","education","occupation","timeinSF","dualincome... |
d4f5a5fb06c12bfd780e66f065b7e07d073673be | fc1167f0a785ee344179e887e08e248358713707 | /man/shinyDND.Rd | 982b7fb99f4d416fc5b8524dcd3e222b1c59f474 | [] | no_license | ktargows/shinydnd | 3b228b4368535f29e9d02445f0602e211e72dbc1 | 15acb6229131519d5bd62dba2f59ac57fcb8398d | refs/heads/master | 2021-01-22T07:57:40.832165 | 2016-08-25T07:13:19 | 2016-08-25T07:13:19 | 92,588,487 | 1 | 0 | null | 2017-05-27T09:32:04 | 2017-05-27T09:32:04 | null | UTF-8 | R | false | true | 418 | rd | shinyDND.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinyDND.R
\docType{package}
\name{shinyDND}
\alias{shinyDND}
\alias{shinyDND-package}
\title{ShinyDND: A package for creating drag and drop elements in Shiny.}
\description{
The ShinyDND package provides three categories of important functio... |
15863e5f59ec5e4724f4feed73bfec6d76e5d4d4 | 2b4b1fd84d85a845df5d6d87837085e8af774be3 | /R/seedrows.R | 9989a264c1ba5bc37e638b96c12392b10a667fad | [] | no_license | frpinto/S2B | d6e1eaa792e718a29621edf35936867ecd94f71d | 0745465db01742fddd24dd9c3701aa5f8796cb97 | refs/heads/master | 2021-01-21T03:44:58.999837 | 2018-12-23T16:07:12 | 2018-12-23T16:07:12 | 101,900,386 | 2 | 2 | null | 2018-12-23T16:07:13 | 2017-08-30T15:48:15 | R | UTF-8 | R | false | false | 546 | r | seedrows.R | #' Find set of node ids in graph
#'
#' This function allows you to get a vector of node ids matching your input vector with strings of node identifiers. Identifiers not found in the network are ignored.
#' @param seed_graph igraph object of the network to be searched.
#' @param seedvec vector with strings of node ident... |
2652bd7f1278e757b88654cde460cb8e14f8aa1a | 5119a104545aaab6b2c6a9053c8941d1acc753c1 | /R/fit.stem.R | 3bc9dd5f5064e5475bd09d399fd1d016223f1146 | [] | no_license | covid19-dashboard-us/STEM | 1701323f861f30bcde45570edd1c073c62a57169 | e0ed8c0744d15609e744b706948038b63cc5f9e9 | refs/heads/master | 2022-06-07T22:40:18.422884 | 2020-05-11T01:40:41 | 2020-05-11T01:40:41 | 260,450,936 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,763 | r | fit.stem.R | #' Estimation using Spatio-Temporal Epidemic Model (STEM)
#'
#' This function implement the model fitting of the spatiotemporal epidemic model.
#' @import mgcv
#' @importFrom kr MGLM
#'
#' @param formula A STEM formula which is exactly like the formula for a GAM except that bivariate smooth terms, f(), can be added to ... |
28f994817f3421c6ce4588940fef92b17e478f9a | a4b2eb4d0e22546be6454fd57c901a65e49debd9 | /Report_2.R | b20a65dde9962eaec9b1488097b758a481bf60da | [] | no_license | DrMuhsin/Statistical-Inference | 625d3a52c7f7e2aba5d150980fc4a3d3014de5a9 | e805d175ec3dd50377229a530edda3e65aa73960 | refs/heads/master | 2016-09-09T19:05:58.604800 | 2015-09-20T07:03:32 | 2015-09-20T07:03:32 | 42,802,287 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,731 | r | Report_2.R | library(ggplot2)
# data(ToothGrowth)
summary(ToothGrowth)
dose <- ToothGrowth$dose
supp <- ToothGrowth$supp
len <- ToothGrowth$len
# Load the ToothGrowth data and perform some basic exploratory data analyses
# Provide a basic summary of the data.
# Use confidence intervals and hypothesis tests to compare tooth gro... |
fb7c6bd4e872222ec0b2402e0946b557503410d1 | a93f2486bcfdfd63403d96721f0c10f8cc9cdda0 | /Lab2.R | 973e7dfa89cac9cf5712efbf0878bef9e56f6fac | [] | no_license | aphiratnimanussonkul/data-analysis | 916b7b278f49363f0d0247482ba971c192296c4f | 1076fa63f49e9e89979d83c933d2be102f3c2edc | refs/heads/master | 2020-06-23T11:43:05.305794 | 2019-08-28T07:11:45 | 2019-08-28T07:11:45 | 198,613,129 | 0 | 1 | null | null | null | null | WINDOWS-1252 | R | false | false | 4,201 | r | Lab2.R | #Lab 2
#Sys.setlocale(locale = "Thai")
#when readline can get input in thai language
#1. Write an R program to take input from the user (name and age) and
# display the values and their types.
name <- readline(prompt = "Enter name: ")
age <- as.integer(readline(prompt = "Enter age: "))
# class(age) , typeof... |
cdc7a4de7565f9b51d5bf9aa9dda3c0187e4627c | 3a6317baa4c7ff84d8d5a98c9eb2b788ed4502a0 | /Example/Example 1 - Simulation.R | 890a284c58c3b98329494ba9969e8c3416a5c1ab | [] | no_license | wengewsh/iMed | 8f3c3275537fef018e5e9617e881c112de0394bb | 8e24831bbdd935f723931b8d637815bdcc8fc009 | refs/heads/main | 2023-03-08T11:44:15.957764 | 2021-02-24T10:35:25 | 2021-02-24T10:35:25 | 330,523,505 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,165 | r | Example 1 - Simulation.R | # Simulation with zero nuisance parameters
n<-500 # 100, 200, 300, 400, 500
N<-1000
ME<-matrix(0, N, 2)
A<-matrix(0, N, 2)
B<-matrix(0, N, 2)
ALPHA<-NULL
# Simulation
for (f in 1:N)
{
## True paremeters
beta1<-c(0,0)
beta2<-c(0,0)
tu<-1.5
a<-c(tu, tu)
b<-c(tu, -tu)
c<-c(0,0)
sigma1<... |
8a8f8094dd77c97a5c0d106b64a32ba34553ddea | 4c51e80a435687f8bc529b2808f711b639cc83a4 | /SupplementaryDataObservationContribution.R | 6044725f77466126ae208c2d3f207c237a150e72 | [] | no_license | daisyduursma/EggShape | b0e5ff9064cdc8426f601a3f9f3b607ffec47400 | 9adfeabdcdd43af21035d1ddb33e725a8aa9d610 | refs/heads/master | 2021-08-26T07:08:55.768684 | 2017-11-16T03:43:07 | 2017-11-16T03:43:07 | 110,913,655 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,281 | r | SupplementaryDataObservationContribution.R |
#Find names of people who contributed to the ABBBS banding data used in the traits that decreas Thermal Stress paper
rm(list = ls())
library(raster)
indir<-'/Users/daisy/Google Drive/PhD/Data/Observaitons/Raw/egg'
abbbsA<-read.csv(paste0(indir,"/ABBBS/pullusBandingRecordsPartA_dd.csv"))
abbbsB<-read.csv(paste... |
cc64817f4dc9813e1904c9ba0131c65cf2b34ce9 | 87fdb51b3b0e92f42a3e33dbf07d0c01628d2aaa | /R/compute.PARz.R | 7b910c6ed6088b98e57c56a13b8f38b1a81ca4ad | [] | no_license | belasi01/Cops | 0b5e0f04c46a639dfe5b8716199abf32757732f4 | 5cd0fa2f5fedb338cc063d1af21cf22ead0f9c5f | refs/heads/master | 2023-07-25T16:07:36.614152 | 2023-07-12T01:08:54 | 2023-07-12T01:08:54 | 72,561,413 | 9 | 8 | null | 2022-08-31T16:13:21 | 2016-11-01T17:49:49 | R | UTF-8 | R | false | false | 2,368 | r | compute.PARz.R | #' Compute PAR at depth from surface irradiance (Ed0+) and profile of
#' downwelling irradiance (EdZ)
#'
#'@param Depth is a vector of depth corresponding to the EdZ measurements
#'@param waves is a vector of wavelength of EdZ and Ed0+
#'@param Edz is a matrix of EdZ (col=waves; row=Depth) after nomalization to Ed.... |
ad11869646f122851a3487e65a82988fdb3fb129 | 2439887493621fef7480bd6ebdea375f0b83f3da | /functions.R | 86e2eff3cc19408c1fe380ec0bdda837471d9806 | [] | no_license | psrc/demographic-profile | 7fe3ef5e39a4fac793411d135e7f6d68778688f7 | 6b3f616589ded82c5b8088fbe3267d4c2e9a4080 | refs/heads/main | 2023-03-28T22:31:54.986493 | 2021-04-01T21:53:08 | 2021-04-01T21:53:08 | 351,122,885 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,348 | r | functions.R | # Functions used for Data Analysis and Visualization Creations
stored.procedure.from.db <- function(srv.nm, db.nm, procedure.nm) {
db.con <- dbConnect(odbc::odbc(),
driver = "SQL Server",
server = srv.nm,
database = db.nm,
tru... |
bab2a1fab54946ad575b5135005deed70071d096 | be9a9778db38c15af123d851bb52a2d89978f124 | /R/shiftDataByCol.R | 5d88667b77828f27a8ad3e716196403ea5c48477 | [] | no_license | kindlychung/bedcollr | 386d8a1e0f55407c691528d6cc8f2d856f33bd60 | c708ad191d2c0fc1553c680990f71c021dc974a7 | refs/heads/master | 2020-04-12T07:36:53.579287 | 2014-08-12T11:24:44 | 2014-08-12T11:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,035 | r | shiftDataByCol.R | # TODO: Add comment
#
# Author: kaiyin
###############################################################################
shiftDataByCol = function(dat) {
nr = nrow(dat)
nc = ncol(dat)
message("Shifting data col by col...")
message(paste(" dat has", nr, "rows"))
message(paste(" dat has", nc, "cols"))
mes... |
f85403ed4a5fd7f01232a46efc263105fd01f407 | 8d3c3766137ff1b0b7e47e0cf4e33734c40e4c05 | /SpatemR.R | 6db605bd05b3bbd3e75f5b2ed978a28026484e65 | [] | no_license | hdubey/SpatemR | 297118473b9c986504c5189f79e5f35358b3c692 | 38a60f77414f10da3b0591345df84a71806c1a2b | refs/heads/master | 2021-05-28T09:45:24.096318 | 2015-02-24T19:33:29 | 2015-02-24T19:33:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,469 | r | SpatemR.R | library(ggmap)
library(httr)
library(rjson)
library(RCurl)
library(grid)
library(png)
library(jpeg)
# Abfragen der Instagarm Daten
## httr Rederiction URI
full_url <- oauth_callback()
full_url <- gsub("(.*localhost:[0-9]{1,5}/).*", x=full_url, replacement="\\1")
print(full_url)
#Zugangsdaten für den Instragram Clien... |
53f96dfec69267a462f7a6370658ddde4733d407 | a82e543bba4977149a41b98bc0aacdd57a89dbe9 | /R/RcppExports.R | 770961148ffc9d6ec2998ec214f36c555dcf9a66 | [] | no_license | Redspecialist/pagoda2 | e86c7c33948404fa252ef09e1ca5a4d39c868e16 | 9077fff045b2afe9a4142c016ee299523766236d | refs/heads/master | 2021-01-25T09:04:25.489796 | 2017-06-08T04:08:28 | 2017-06-08T04:08:28 | 93,778,664 | 1 | 0 | null | 2017-06-08T18:13:59 | 2017-06-08T18:13:59 | null | UTF-8 | R | false | false | 3,415 | r | RcppExports.R | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
non0LogColLmS <- function(sY, X, ldepth, maxCells = 0L) {
.Call('pagoda2_non0LogColLmS', PACKAGE = 'pagoda2', sY, X, ldepth, maxCells)
}
colMeanVarS <- function(sY, rowSel) {
.Call('pa... |
2ead40c1f607fd51f4baa74c9cded0bec8d5f7f3 | a266bb66eff94641d1ff100daf31e93dcd4e0105 | /man/dataspec_p4.Rd | 1c10f1efc41adc4fcb90e26e9bd0673e7c9bbcf2 | [
"MIT"
] | permissive | ashiklom/rrtm | e879f37471dff49930007b2d6b7a8352db1df4b2 | 504c3c7655fe30c5b713e9f0f606960f8a46466a | refs/heads/master | 2022-09-09T02:43:26.722764 | 2022-08-04T18:04:25 | 2022-08-04T18:04:25 | 196,279,459 | 5 | 3 | NOASSERTION | 2022-01-13T16:01:27 | 2019-07-10T21:50:33 | R | UTF-8 | R | false | true | 667 | rd | dataspec_p4.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataspec.R
\docType{data}
\name{dataspec_p4}
\alias{dataspec_p4}
\alias{dataspec_p5}
\alias{dataspec_pd}
\title{Specific absorption coefficients for PROSPECT model}
\format{
An object of class \code{matrix} (inherits from \code{array}) with 2... |
2a687310bab0100c1bde8e94554101c46fa67672 | c6c3cbbc17ffb85697e4211d5e1ed088a4a373d8 | /Desktop/Coursera/DATA SCIENCE SPECIALIZATION/Getting and Cleaning Data/run_analysis.R | cf7370485b349fd8144325a9fa84c4f15f0d8451 | [] | no_license | andresborrerom/ExData_Plotting1 | 5ec0f8a96a646632a710f1149040254ab042d76a | 207fb878258d2cc17d8e7298e37f6ac029db727a | refs/heads/master | 2021-01-14T09:49:50.512044 | 2014-09-03T00:34:22 | 2014-09-03T00:34:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,242 | r | run_analysis.R | run_analysis <- function(){
#packages and librarys
library(plyr)
#set calling names
dir1 <- (getwd())
print(paste("please make sure the UCI HAR Dataset folder is in", dir1) )
# read all data into working tables
Xtest <- read.table("UCI HAR Dataset/test/X_test.txt")
ytest <- read.table("UCI H... |
2d173b68b62870b637e345ca72a9e1ba081c5676 | bc444cca02da37e3b8c30f2bde1ef595a2a9c7eb | /R_S16/Lec1_05.R | b9f8173262bddb8bfab8d5b597a622c37dffcb88 | [] | no_license | dkQkdbTl1966/R_DataAnalytics | e20029f3b3e27a2d4f996a4c9e235551a6c0e25e | 08ea98289f4def3c4f72d4c10d3767784b42619b | refs/heads/master | 2021-08-14T22:57:44.169860 | 2017-11-16T23:39:49 | 2017-11-16T23:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,944 | r | Lec1_05.R | ################################################################
#
# R을 활용한 통계분석
#
# 5. 다중회귀분석
#
################################################################
#---------------------------------------------------------------
# 다중회귀분석 (Multiple Regression Model)
#------------------------------------------------------... |
18e0a1eefcffcaf97a9cc6bdeeb3d5df17484b74 | ebeacd2b716a9132e12d868e76c66d4c214ac613 | /Old Package/R/conc_comp.R | fa1cbabdfcb3ae4c05f4b604d11615160ec8bf73 | [] | no_license | PHP2560-Statistical-Programming-R/r-package-courses-brown | 345c8c6fc28dfe62531747e01bb34317c0387d2c | 9b015e4846fe89d6762af3f1402149d898e0d592 | refs/heads/master | 2021-08-29T22:18:53.700149 | 2017-12-15T05:29:28 | 2017-12-15T05:29:28 | 110,870,181 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,432 | r | conc_comp.R | #' conc_comp Function
#'
#' This function takes two concentrations of interest as inputs and returns a
#' table with all the required classes for both concentrations.
#'conc.name1: a character string for the first concentration name as it appears in the
#' list of Brown concentrations in the website:
#' "https://bul... |
f26090072af58dced2dd19eac9a3d803f839ebe0 | 2d6418dc719114e785f716b08478089503bc0ab2 | /r/learning/optimization/assign_memory_ahead.r | d9d8725d2365fc5a9f9751c83288c5787183e496 | [] | no_license | jk983294/math | 9a9343bde5804c8655a897a20ded3e67f528b225 | f883e281961cd4cf16851de15e64746f59b966c7 | refs/heads/master | 2023-09-04T13:04:17.944946 | 2023-09-04T09:25:07 | 2023-09-04T09:25:07 | 139,425,932 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 289 | r | assign_memory_ahead.r | set.seed(1234)
k <- 1e+05
x <- rnorm(k)
y <- 0
system.time(for (i in 1:length(x)) y[i] <- x[i]^2) # for & no memory allocation
y <- numeric(k)
system.time(for (i in 1:k) y[i] <- x[i]^2) # for & memory allocation
y <- numeric(k)
system.time(y <- x^2) # vectorization & memory allocation
|
b4be6e8f243936b77e3b16c165c4af5e0e001284 | f044402735a52fa040c5cbc76737c7950406f8b2 | /BrCa_Age_Associated_TMA/Packages/biostatUtil/man/Xunivcoxph.Rd | 0fef18fd4a5444b998f33991679a74ea1edaa5a6 | [] | no_license | BCCRCMO/BrCa_AgeAssociations | 5cf34f3b2370c0d5381c34f8e0d2463354c4af5d | 48a11c828a38a871f751c996b76b77bc33d5a3c3 | refs/heads/master | 2023-03-17T14:49:56.817589 | 2020-03-19T02:18:21 | 2020-03-19T02:18:21 | 247,175,174 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,330 | rd | Xunivcoxph.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_coxph.R
\name{Xunivcoxph}
\alias{Xunivcoxph}
\title{Univariate cox proprtional hazards model}
\usage{
Xunivcoxph(mod, digits = 3)
}
\arguments{
\item{mod}{model fit object, returned from either \code{coxph} or
\code{coxphf}.}
\item{dig... |
0e2b9be85d616a361487d39d0ab5603c18b12701 | 6c382b0e1aa8be03eb0b11ad8fb40882701fe909 | /sample_gradebook.R | f916e0a35b3f5f288f7173848ce24887f4b66ca3 | [] | no_license | restrellado/sample_gradebook | 02281f4f13df6d0227108b42d3a334e1cbd20e88 | aee490bc79ed7d27c7bd067da9a4892e736b4fa5 | refs/heads/master | 2021-04-03T05:52:46.325481 | 2018-03-14T04:08:58 | 2018-03-14T04:08:58 | 125,152,034 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 826 | r | sample_gradebook.R | # Create a gradebook dataset as an example
library(tidyverse)
# Creates random quiz scores
#------------------------------------------------------------------------------
make_score <- function(min, max, n) {
# Creates random quiz scores
# Args:
# min: lowest possible quiz score
# max: highest ... |
d7251b70ea0852598a7aa88f1789f62593e5bd79 | 331b734a213e6d2b8038ed90797d1440de1b1094 | /src/dataDownload.R | 2adc3370f6262f0d0c9b0f3e3e303fb315bf4831 | [] | no_license | leekgroup/networks_correction | b51d0fd36d91e3206a1b54008899561501f0d320 | ef24a718c86bd9c4ad5b9b15e2f64703bc3ffc51 | refs/heads/master | 2021-10-28T07:35:46.170680 | 2019-04-22T16:58:08 | 2019-04-22T16:58:08 | 106,853,810 | 15 | 4 | null | null | null | null | UTF-8 | R | false | false | 2,801 | r | dataDownload.R | rm(list=ls())
## load libraries
library(recount)
source("functions.R")
source("config.R")
## create dir
dir.create(datDir)
## download and scale reads
download_study('SRP012682', type = 'rse-gene', outdir = datDir)
load(paste(datDir, "rse_gene.Rdata", sep = ""))
tissue.interest <- c("Subcutaneous", "Lung", "Thyroid... |
4e5c1a59c862fd9b55786a95c312c170507d435b | 13f88229d979fd7a994714707f5dfc9923694ae5 | /Analisis Multivariable/Arbolesde Decisión/Tree - Redes Sociales.R | b3b868e02046d9d6fe3f265e3d50c2055b6cabba | [] | no_license | mecomontes/Data-Science-Complete-path | 937d60921d1b9765f31acc2498546a2bf2bf4505 | 840dd2e2caf74a49a99be9b2a013ddb42b4ee613 | refs/heads/main | 2023-06-17T21:19:30.247344 | 2021-07-13T02:18:32 | 2021-07-13T02:18:32 | 385,442,161 | 1 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 775 | r | Tree - Redes Sociales.R | install.packages("rpart")
install.packages("rpart.plot")
install.packages("rattle")
library(rattle)
library(rpart)
library(rpart.plot)
getwd()
setwd("D:/UdeM/Análisis Multivariante/Árboles")
# Ejemplos con Datos de Redes Sociales
T2016<-read.csv("Tree2016.csv",header=T, sep =";",na.strings = c("NA","... |
e39a6647d4def949ae13bca54bffeb4909416401 | f81463984a1e80efb56124a57b66253c1c24727a | /R/ggbiplot.R | e32363583f3b59d0f2ada4c738ae22c964fb70aa | [] | no_license | zdk123/compPLS | 24443fc811b56c413c474f3d44eec2862a395788 | 078bda73ae23b3181f4874bea084c2db51ecc7a2 | refs/heads/master | 2022-05-06T21:00:56.959067 | 2022-04-18T15:45:46 | 2022-04-18T15:45:46 | 28,114,942 | 22 | 5 | null | 2022-04-18T15:45:47 | 2014-12-17T01:17:13 | R | UTF-8 | R | false | false | 10,406 | r | ggbiplot.R | ################################################################
# Methods for making pretty biplots with ggplot2 package
#
# based on code by http://www.vince.vu/software/#ggbiplot
#' Pretty biplots using ggplots
#' @title methods for making biplots from various projection & classification models
#' @param xobj Th... |
caa61ac1d8067206c3ada0078d6a3eadbd4d01cf | 4155f9d8b3e49206653f663cb46f547ff8882040 | /FMI-Code/Exam-2019/Problem-4.R | be507498f5b360d633b58368349d0e30ab571e04 | [] | no_license | nicksinch/Probability-and-Statistics | b7574f9a4706713adcc28a8da67290c5654a43ac | 1b3b4df745140302b00b0f6900b07a564e811842 | refs/heads/master | 2020-12-09T12:14:03.155185 | 2020-01-17T22:59:26 | 2020-01-17T22:59:26 | 233,299,736 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 854 | r | Problem-4.R | # Problem - 4
Observations = rnbinom(200,1,1/13)
shapiro.test(Observations)
Shapiro-Wilk normality test
data: Observations
W = 0.7351, p-value < 2.2e-16
# ===> не са нормално разпределени , пускаме wilcox.test , защото искаме доверителен интервал
wilcox.test(Observations, conf.level = 0.90, conf.int = T)
Wil... |
6ce2aab8337a11be49c214720e9a0e75656a4764 | da6d953d2493b830a87dce2b1b02b863a3257fde | /new_proj/new_proj.R | 94aadfc98fd3b3bd5eeb680b4b9846a1dbb99d4c | [] | no_license | xuhuanyunxiao/jupyter-notebook | 6f19143442ab1301e22d49745ad1a14b25ab801a | 20ca911cde18d977d062f269f165185ea0c684b2 | refs/heads/master | 2021-07-21T03:26:54.359203 | 2020-04-22T13:18:42 | 2020-04-22T13:18:42 | 135,554,417 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 422 | r | new_proj.R |
library(readxl)
library(lavaan)
library(semPlot)
library(OpenMx)
library(GGally)
library(corrplot)
file_folder <- "D:/XH/Python_Project/notebook/new_proj"
# getwd()
setwd(file_folder)
data <- read_excel('data_sel_1.xlsx')
model1 = 'Z ~ x1 + x2 + x3 + Y
2Y ~ x1 + x2'
fit1 = cfa(model1, data = data1)
summary(fit... |
93375d0886680b572f4a686fc78c6dfc79c61a4f | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /RGtk2/man/gtkFileChooserUnselectFilename.Rd | 42d82280f63265d94a53da60c7c13c135772cf46 | [] | 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 | 554 | rd | gtkFileChooserUnselectFilename.Rd | \alias{gtkFileChooserUnselectFilename}
\name{gtkFileChooserUnselectFilename}
\title{gtkFileChooserUnselectFilename}
\description{Unselects a currently selected filename. If the filename
is not in the current directory, does not exist, or
is otherwise not currently selected, does nothing.}
\usage{gtkFileChooserUnselectF... |
a26399bffcdac914b16cd73cd7af4a8094fa4680 | 1e00f821ffe6ddcad7620cb1acc439ee711c0a23 | /analyze_msea.R | 0fbd3b489f9a004eb5598b769bd299270a06691d | [] | no_license | XiaYangLabOrg/mergeomics | 2db3230a4a501434862158e4a0cec3930afa844c | 569492ce7f998961ec641c4353fc68b900167e20 | refs/heads/master | 2023-07-20T09:21:12.645625 | 2023-07-07T16:19:24 | 2023-07-07T16:19:24 | 268,940,012 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 80,673 | r | analyze_msea.R | # Please excuse the roughness of these functions! I made these a long time ago while I was learning R and I will be making
# efforts to improve the code hopefully soon.
## ----------------- DOWNSTREAM ANALYSIS OF MSEA RESULTS FROM MERGEOMICS ----------------- ##
# ... |
292aa87d337f0be003f50dbfccc9aadd0680f024 | 7cf5aa38dd8dbd38de1b4b4823de713bfa673a1e | /aa-second-derivative/main.R | 88808c6dc18a21a64d52fec7f4d2bbd514531a8f | [] | no_license | bendotli/rpensemble | 622a2acc6b762da907c211f1f79fc17523b0df14 | 9dadcc0624e4b78bab5f04aa1e5f2e1e0ec95870 | refs/heads/master | 2021-01-21T21:40:16.035204 | 2016-03-21T23:29:48 | 2016-03-21T23:29:48 | 41,241,763 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,766 | r | main.R | # TODO: Add comment
#
# Author: Ben
###############################################################################
source("rpecompare/builtin_models.R")
source("rpecompare/basicmodel.R")
# Build a histogram of G_{n,1}(p)=P(P(Chat_n(AX)=1|X)<=p)
# Sample X, P(Chat_n(AX)=1|X) (by sampling)
sample.g = fu... |
575aa4912e8e7f5176cd6d308b2f188ef818d7af | bad08314942d890670cb8186827e93387f8242cb | /man/pairwiselogFC.Rd | 06f374508db4712ad849caa6720295b2db8f2c05 | [] | no_license | stamats/MKmisc | faaa5a4bc04d015143fcd2d468bc11aa12ef5633 | e738e1f1b18899af42c1149335c6ee063e9de80c | refs/heads/master | 2022-11-25T06:06:56.692986 | 2022-11-19T15:35:13 | 2022-11-19T15:35:13 | 33,780,395 | 10 | 2 | null | 2015-06-29T18:02:53 | 2015-04-11T15:13:48 | R | UTF-8 | R | false | false | 1,493 | rd | pairwiselogFC.Rd | \name{pairwise.logfc}
\alias{pairwise.logfc}
\title{ Compute pairwise log-fold changes }
\description{
The function computes pairwise log-fold changes.
}
\usage{
pairwise.logfc(x, g, ave = mean, log = TRUE, base = 2, ...)
}
\arguments{
\item{x}{ numeric vector. }
\item{g}{ grouping vector or factor }
\item{ave}... |
d0dcf6a6144c233ef63e0056e56fd7b80a85d043 | bd4c0e98e2ca54a36f5b6423326e8915cc471ec0 | /tests/testthat/node_modules/r-dummy.csv/main.r | 77ee3bab6ddc58d1e424960a8f9ca9363fbd1216 | [
"BSD-2-Clause"
] | permissive | tlevine/nprm | e30c9073fe10fce4874b8dd69e26b43a398cb697 | 21385253c2c1dc8ea07519437a045ae0553a9bf8 | refs/heads/master | 2021-01-25T07:08:06.399723 | 2013-12-12T20:50:09 | 2013-12-12T20:50:09 | 14,666,018 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 33 | r | main.r | exports <- read.csv('dummy.csv')
|
a11064ab7acdbd9c1771bab24ea1723b273174cf | f5237133433557b81638bcffe7c7b264ece4faec | /STRINGdb-HGNCsymbols.R | a83312402401d3f68d52733ef9d8e85683932a12 | [
"MIT"
] | permissive | ameya225/useful_functions | 04277b6eb50a0e73e83ebcb0541a2a105a76a62f | f5b2712d7d22c32d128cfe18add189baa02b16e4 | refs/heads/master | 2021-05-14T08:53:09.205237 | 2018-08-07T05:33:18 | 2018-08-07T05:33:18 | 116,312,512 | 0 | 0 | null | 2018-02-14T00:52:26 | 2018-01-04T22:09:13 | R | UTF-8 | R | false | false | 1,891 | r | STRINGdb-HGNCsymbols.R | # Code by Ameya Kulkarni
# E-mail at echo blvmlbso@nbjm.fjotufjo.zv.fev | tr '[b-{' '[a-z]'
# This code can be used to convert Stringdb Ensembl protein ids to HGNC symbols using biomaRt
# The example code is shown for Human protein interaction data from experimental evidence only
# Human Protein Interaction data file ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.