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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8132f59c486c159faefb88ce83c2dccff747e3dc | ff9bae38626a26dde54a3db17143ce096046d2c3 | /ui.R | d4da0e53b9a4cd8704c5b49f5434d36e7b990a86 | [] | no_license | briantcs/dataproduct | b32fd5ff9114cb537b38c7aa02ea6819d6c94c1e | f5d658e11c38cb73f347f3868fc3705f0d43c8a3 | refs/heads/master | 2021-01-10T14:19:15.234222 | 2015-05-24T21:49:54 | 2015-05-24T21:49:54 | 36,194,154 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 464 | r | ui.R | library(shiny)
shinyUI(
pageWithSidebar(
# Application title
headerPanel("Prediction on diabetes"),
sidebarPanel(
numericInput('glucose', 'Glucose mg/dl', 90, min = 20, max = 250, step = 1),
submitButton('Enter')
),
mainPanel(
h3('Results of prediction'),
h4('Your submissi... |
059c1908c70bd6d07ffbdfc15047920aee5b84c3 | 22d4f7e013b930e3fbcde0dbcb6765621e92a5bb | /code/1-get-labels-from-form.R | 0cdb19b038d5a2bd25285181650bb59749eb10f7 | [] | no_license | unhcr-iraq/pmt-refugees | b8cce8cfbe02d966ab7ec7307cdbd34fcea43d31 | d99164c9c5ab1c2f1d8044c3bbb01e1a517987d0 | refs/heads/master | 2021-01-14T08:41:23.655456 | 2016-09-21T19:28:22 | 2016-09-21T19:28:22 | 68,604,928 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,295 | r | 1-get-labels-from-form.R | ########################################################################
################# Trying ot get the form nicely with labels
## https://gist.github.com/mrdwab/28c13a0537044aeb5dc0
########################################################################
#source("code/1-kobo_form_downloader.R")
#kobo_form_downl... |
67f0e56de4add1ed137b0c1d93b2a467b3b1e54a | e2708c67f6f355ad37ff42116fe9861fd6051313 | /server.R | 997a60ac420f93c08fc3690eaef81369b55a35e1 | [] | no_license | abrarali21/ShinyAppProject | 154a6761370803a42cbeb4f2ff033473ef8ea342 | 29420bb236df809991bfd7866fe1d9666a03cc40 | refs/heads/master | 2016-08-12T08:20:46.848120 | 2015-12-27T23:01:36 | 2015-12-27T23:01:36 | 48,663,757 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 377 | r | server.R | library(UsingR)
model <- lm(dist ~ speed, cars)
slope <- as.numeric(model$coeff["speed"])
y_intercept <- as.numeric(model$coeff["(Intercept)"])
stoppingDistance <- function(speed) slope*speed + y_intercept
shinyServer(
function(input, output) {
output$inputValue <- renderPrint({input$speed})
output$predict... |
5fa88a9ee9a0c4b9f73d48e33cf0707d5142d99c | 22327732e8e257e5181b0ab6e61e714309a71cad | /exdata/plot6.r | 5fb634006bbf212128baeab42a8bbd78665d7308 | [] | no_license | li-xin-yi/TuQiang-Street-301 | a1f2e183f5ab50a22931737f4a8b0b8986f668ce | cc4a19175f4cd1630a4084496c2403ff3f2e660c | refs/heads/master | 2022-04-03T00:34:02.396763 | 2019-01-06T12:34:08 | 2019-01-06T12:34:08 | 62,716,093 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,281 | r | plot6.r | library('ggplot2')
library('reshape2')
Baltimore<-NEI[NEI$fips=='24510',]
LA<-NEI[NEI$fips=='06037',]
s_vehicle<-SCC[grep('Vehicle',SCC$Short.Name),]
Bal_em<-Baltimore[Baltimore$SCC %in% s_vehicle$SCC,c('year','Emissions')]
LA_em<-LA[LA$SCC %in% s_vehicle$SCC,c('year','Emissions')]
Bal_total<-aggregate(Emissions~year,... |
a9dfb2905301667a6a975326e36063d8f7549391 | 364dcb95aac6dff3f8548768dc99bba945ec81b6 | /man/guide_legend.Rd | 21dcbe783390d93b38491d56be52e9f5c93551cb | [
"MIT"
] | permissive | tidyverse/ggplot2 | 3ef62b72861c246b13ffc2d95678079984fe65c0 | c76b9aeda648e9b6022b7169021e854c3d3890cb | refs/heads/main | 2023-08-31T07:08:20.846510 | 2023-08-17T16:19:44 | 2023-08-17T16:19:44 | 19,438 | 4,632 | 1,971 | NOASSERTION | 2023-09-14T13:25:40 | 2008-05-25T01:21:32 | R | UTF-8 | R | false | true | 5,985 | rd | guide_legend.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guide-legend.R
\name{guide_legend}
\alias{guide_legend}
\title{Legend guide}
\usage{
guide_legend(
title = waiver(),
title.position = NULL,
title.theme = NULL,
title.hjust = NULL,
title.vjust = NULL,
label = TRUE,
label.position... |
64878dbe8f437468926943e43c04cd5749373205 | 94cd03120f87b8c2fd3d691da0eb9ab3de691c31 | /make_plots.R | ca9215ba40f2184b4b301ceb867dbb11edd725c2 | [
"MIT"
] | permissive | schaugf/ImageVAE | 6df13e858b9508b5416c68284ae374f548c5d8cf | 1228d50ac9161e1ebe4e49da8b61fca86959e442 | refs/heads/master | 2022-08-14T00:19:35.103604 | 2022-07-21T14:44:02 | 2022-07-21T14:44:02 | 134,479,822 | 8 | 9 | null | 2018-08-21T00:49:38 | 2018-05-22T21:51:17 | Python | UTF-8 | R | false | false | 3,459 | r | make_plots.R | # VAE analysis
library(optparse)
library(ggplot2)
library(tidyr)
library(RColorBrewer)
library(Rtsne)
option_list = list(
make_option(c('-d', '--results_dir'), type='character', default=NA,
help='VAE results dir'),
make_option(c('-s', '--save_dir'), type='character', default='plots',
h... |
f1a0f96e67ef580de2b46e4226a3d53459fcc319 | 94a40d5a2a8813031b710279bf378e6533b78dbe | /R/RM2quat_svg.R | e87ed9346837dcaa348f426e8be1592f61bf1f38 | [] | no_license | aaronolsen/svgViewR | d583340a3a2af42df94b1f4a7fdb6f3db61f4539 | 714847fd601f6c4015b632055cb5dbe7edafe957 | refs/heads/master | 2021-01-17T17:25:37.368215 | 2020-10-02T13:40:31 | 2020-10-02T13:40:31 | 70,349,213 | 11 | 3 | null | 2019-06-13T14:58:18 | 2016-10-08T18:11:52 | R | UTF-8 | R | false | false | 1,092 | r | RM2quat_svg.R | RM2Quat_svg <- function(RM){
# http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/
tr <- RM[1,1] + RM[2,2] + RM[3,3]
if (tr > 0) {
S <- sqrt(tr+1.0) * 2 # S <- 4*qw
qw <- 0.25 * S
qx <- (RM[3,2] - RM[2,3]) / S
qy <- (RM[1,3] - RM[3,1]) / S
qz <- (RM[2,1] - RM... |
823da550750f5be073212e856f4e91ed13de0b6b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/refund/examples/ffpcplot.Rd.R | 22c04862ccaf42f46f329d89ed88d2513c0f14de | [] | 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 | 188 | r | ffpcplot.Rd.R | library(refund)
### Name: ffpcplot
### Title: Plot PC-based function-on-function regression terms
### Aliases: ffpcplot
### ** Examples
## Not run:
##D #see ?ffpc
## End(Not run)
|
b33dc53097ac39bb6225f301208d1684dcb6216d | d48261d78cc71adfec615d96308f71d057f5b596 | /R/practice_Part09.r | 3546928ea0fa759bd4f230047674eecc5935f336 | [
"MIT"
] | permissive | dayoungMM/TIL | 97cc33977d90bcac131460f498a228a50d300cf0 | b844ef5621657908d4c256cdfe233462dd075e8b | refs/heads/master | 2020-08-16T11:13:08.243190 | 2020-08-10T08:29:40 | 2020-08-10T08:29:40 | 215,495,171 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,834 | r | practice_Part09.r | ## 9장. 데이터분석 프로젝트
"한국인의 삶을 파악해보자."
#### 09-1 '한국복지패널데이터 ####
# • 한국보건사회연구원 발간
# • 가구의 경제활동을 연구해 정책 지원에 반영할 목적
# • 2006~2015년까지 전국에서 7000여 가구를 선정해 매년 추적 조사
# • 경제활동, 생활실태, 복지욕구 등 수천 개 변수에 대한 정보로 구성
rm(list=ls())
## 09-1. ‘한국복지패널데이터’ 분석 준비하기 ---------------------------- ##
#install.packages("foreign") # foreign 패키지 설치
... |
76da3f430707abaf96ef4fc95d3bc8efaa4356b8 | 13d4d0ccddb34e1142c3cdcd11bb18704c9354ab | /coding sample.R | 5fdc8173f6933dd44a7f43975ae99ecdf7fbdb84 | [] | no_license | marck404/tsne-example | 0f1144a1f504ce8a6d88486258b71917300db245 | f62577174ba960ff9348c81d11d72dde0ca9e189 | refs/heads/master | 2022-11-24T12:40:31.576256 | 2020-08-01T23:33:54 | 2020-08-01T23:33:54 | 284,356,004 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,265 | r | coding sample.R | #### Project application of dimensionality reduction and cluster analysis
#### Marcos Torres Vivanco
library(readr) ## read data
library(scatterplot3d) ## 3D graph
library(Rtsne) ## t-sne algorithm
## We load the MNIST-like dataset of 28x28 labeled fashion images
fashion_mnist_test <- read_csv("fashion-mnist_... |
3f5d27c8cda45fb8c974a282efd26b727c2ddb4d | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/TDA/examples/clusterTree.Rd.R | d4f9ab6d940200574cd52581bf3730e36f0c0853 | [] | 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,121 | r | clusterTree.Rd.R | library(TDA)
### Name: clusterTree
### Title: Density clustering: the cluster tree
### Aliases: clusterTree print.clusterTree
### Keywords: nonparametric
### ** Examples
## Generate data: 3 clusters
n <- 1200 #sample size
Neach <- floor(n / 4)
X1 <- cbind(rnorm(Neach, 1, .8), rnorm(Neach, 5, 0.8))
X2 <- cbind(r... |
253cd3161e4f0599d657d09627fffd887e367a2d | 8e98acb706449542a9e4e40038da103f8c2704b6 | /elicitation/lib/partition.points.R | 8952ac65b945da4e11ef8b02ab7ebe441629ff3b | [] | no_license | tommite/pubs-code | f4e21dcafd999f8d7b995cefdffb3786c49b247e | b2b33e97adbef68787122519384000c55f956811 | refs/heads/master | 2016-09-05T09:01:44.793555 | 2014-05-09T12:08:03 | 2014-05-09T12:08:03 | 5,935,181 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 466 | r | partition.points.R | if (!is.loaded("partitionPointsForR")) dyn.load("lib/elicitation.so")
partition.points <- function(points, x0, normal) {
stopifnot(is.matrix(points))
N <- nrow(points)
n <- ncol(points)
stopifnot(length(x0) == n)
stopifnot(length(normal) == n)
.C("partitionPointsForR",
as.integer(N),
as.integer(... |
073ef3c0155d6d7b34af26fafe78e592fb4d7b2d | 6527ae2a45fd24d0f76757cb93ffef178dd78d06 | /R/adaptiveHM.main.swHM.R | 99cff4a7fd57cd0a008dfcb47615c965122cddaf | [] | no_license | benliemory/adaptiveHM | 9ef1413265aaa5fb36a734b35a61a81778d2e899 | 06cf79557d6897633daa42e4d8874cff107346e4 | refs/heads/master | 2020-02-26T17:42:34.461583 | 2017-02-05T03:20:54 | 2017-02-05T03:20:54 | 56,416,803 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,485 | r | adaptiveHM.main.swHM.R | adaptiveHM.main.swHM <-
function(Control,Treatment, IPBT.prior=FALSE,winSize = 50,
history=NA,IPBT.id=NA)
{
if ( (IPBT.prior==FALSE & all(is.na(history)==1) ) |
(IPBT.prior==TRUE & all(is.na(IPBT.id)==1) ) )
stop("Historical information is missing!\nPlease prov... |
0af82e07b0bad273b8c556c22906384aaa9cd904 | c26390b0aaf512666dfae5003ebac48a2bad0e0a | /tests/testthat.R | a217cf4239cc096d0b110ec64406fd917b182566 | [] | no_license | cran/OrthoPanels | 25edd572167c9803cbc4e7ffbc48a56aeb5c09da | e97143db293bdcc810a5d1daf5ad1c309e1d3ddf | refs/heads/master | 2022-06-30T19:49:52.617343 | 2022-06-09T04:20:01 | 2022-06-09T04:20:01 | 48,085,305 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 70 | r | testthat.R | library(testthat)
library(OrthoPanels)
test_check("OrthoPanels")
|
1551bd7f36c419e6ad0b313e8ae66210f3825e0f | 5c1d82472a00e69eee7f730fc16af5868814bb0a | /Twitter.code.R | c2b046795dce1364ed493467a4b4870c5f9c5841 | [] | no_license | rahulxc/TwitterDataExtraction | 157bb087fee540269a39ad00f8640e4583b9add1 | 4f763b01c417a430f6b23290e5eb0e32ef095334 | refs/heads/master | 2021-01-19T16:11:27.899341 | 2016-02-28T20:40:17 | 2016-02-28T20:40:17 | 52,742,714 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,136 | r | Twitter.code.R | install.packages('streamR')
install.packages('ROAuth')
install.packages('RCurl')
install.packages("twitteR")
library(ROAuth)
library(streamR)
library(RCurl)
library(twitteR)
#create your OAuth credential
credential <- OAuthFactory$new(consumerKey='2eqBXiNahfEsBNK9Hgyppdy4O',
... |
9cd952119b910974d4d187827a1636aefdb1f2cf | 4177b2bf0ec555c67d8da4dfa6f42cacd508fe92 | /man/plot_trips_per_person.Rd | 236c76d0d2ba19621d6bb1970b3805e883dcbef9 | [] | no_license | transportfoundry/tfplotr | 8827cb9a6e84b5d8c44f3ed9d6651f0a2b9e6722 | 1f0dfc4119899a097d50918635af5bde797fec38 | refs/heads/master | 2021-03-24T12:36:58.926686 | 2017-05-31T16:53:11 | 2017-05-31T16:53:11 | 66,585,106 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 377 | rd | plot_trips_per_person.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/histogram.R
\name{plot_trips_per_person}
\alias{plot_trips_per_person}
\title{Plot histogram of trips per person.}
\usage{
plot_trips_per_person(tbl)
}
\arguments{
\item{tbl}{tbl of data with at least the following columns: .}
}
\value{
A plo... |
3b98fd1a23e34ac46221a1cf77aec0816a075916 | 12a9bea8cfff9e5dcd44651102a5e0adf477164a | /tests/vadim.R | 9b9ee481e5def1dc29f8de6da2499e77db5ca066 | [] | no_license | duncantl/RLLVMCompile | 2b98a04f1f7e71f973a281b40457f5730e38f284 | 7fad5bd394a6f74ace0f6053a5d08e4f15cf3a1f | refs/heads/master | 2021-01-19T01:42:02.316459 | 2017-03-07T00:49:31 | 2017-03-07T00:49:31 | 3,894,344 | 32 | 3 | null | 2015-03-03T13:27:54 | 2012-04-01T18:04:28 | R | UTF-8 | R | false | false | 589 | r | vadim.R | library(RLLVMCompile)
f1 <- function(x, n) { for (i in 2:n) x[i] = x[i-1] } # 1L
n = 1e6; iA = seq(2,n); x = double(n);
f1 <- function(x, n) {
for (i in 2:n)
x[i] = x[i-1] # 1L
}
f1c = compileFunction(f1, VoidType, list(DoublePtrType, Int32Type))
ee = ExecutionEngine(f1c)
.llvm(f1c, ... |
aa7600b0afc06a13e9a9568ad00b5f2035b7e3cc | a588dd1a34555dd71c898c82fbc7016dcc9cbdb3 | /LearningCurve/R/fetchAllDataFromServer.R | a1bc4d731a8f441bf1e8a00e9a98913ac8369b70 | [] | no_license | NEONKID/StudyProtocolSandbox | 5e9b0d66d88a610a3c5cacb6809c900a36bc35c3 | c26bd337da32c6eca3e5179c78ac5c8f91675c0f | refs/heads/master | 2020-03-23T14:02:11.887983 | 2018-10-19T05:33:13 | 2018-10-19T05:33:13 | 141,651,747 | 0 | 1 | null | 2018-07-20T02:10:06 | 2018-07-20T02:10:06 | null | UTF-8 | R | false | false | 7,749 | r | fetchAllDataFromServer.R | # @file fetchAllDataFromServer.R
#
# Copyright 2016 Observational Health Data Sciences and Informatics
#
# This file is part of LargeScalePrediction package
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of t... |
fdfb8c179a210c8a9fca8046ec571e9cb4f4666b | 981cbaf799599f6d23bf79cdeb4ef72a8f3eb8a5 | /script/1_read.R | e73d74af3241fa58a5a8eea94818e64b01ab1839 | [] | no_license | noahhhhhh/Santander_Customer_Satisfaction | 51249cdc53ef6fcf545cd0e069e3b5e3458857af | 2cce8e82ab12659445818f42316cdd8e7ae9d8b6 | refs/heads/master | 2021-01-17T17:14:28.761063 | 2016-05-10T02:38:32 | 2016-05-10T02:38:32 | 54,017,892 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,981 | r | 1_read.R | setwd("/Volumes/Data Science/Google Drive/data_science_competition/kaggle/Santander_Customer_Satisfaction/")
m(list = ls()); gc();
require(data.table)
require(bit64)
#######################################################################################
## 1.0 read ######################################################... |
e3a6d77157b11c454696b9fa6072f36dbd5a7110 | cefe97a2c584fd093cae95e9e34d3e2950155360 | /k_medians.R | 272c48c46b29bd06a00040124580e1930b4a8e57 | [] | no_license | Vaspann/R-Guides-Clustering- | d8942fcdc009d6ae4741afbc09c1b7425d34cf2f | c6d8815cf4bc297aab124c15c0aa652b75707307 | refs/heads/main | 2023-08-16T06:42:55.094484 | 2021-10-17T11:35:06 | 2021-10-17T11:35:06 | 373,459,308 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,326 | r | k_medians.R | #k-medoids computes cluster centroids using medians instead of means
#In practice, if there are no extreme outliers in the dataset then k-means and k-medoids
#will produce similar results.
#Load the packages
library(kohonen)
library(factoextra)
library(tidyverse)
library(cluster)
#For this example we will use the wi... |
9e70a7e9c7fa6f018adb4a5485a243b3a02cd969 | e19b396f0dc7c8e8b489a02e650f4fbee6606d5e | /static/functionality/old_ashtree/ashtree_stage02.R | df5d297b3f8eacdf6299c35b3d5fce62391fdf05 | [] | no_license | djnavarro/robust-tools | 0886db364f7048906d0513091e406b5d369ea3a1 | e3c9f445bd426f687022f928879adfcda24af958 | refs/heads/master | 2020-12-21T00:01:27.017012 | 2020-05-30T08:03:12 | 2020-05-30T08:03:12 | 236,247,979 | 24 | 6 | null | null | null | null | UTF-8 | R | false | false | 573 | r | ashtree_stage02.R |
library(tidyverse)
radians <- function(degree) {
2 * pi * degree / 360
}
# STAGE 2: talk about the structure of a function, the idea of internal
# variables and the return values for a function
grow_sapling <- function() {
sapling <- tibble(
old_x = 0, # sapling grows from the origin
old_y = 0, #... |
67f1c98a4c468a56bd2be210346919660bab8eeb | 67803b1f0b20b8b63d0117a3b85f6c7832c9b7fb | /R/Main.R | 0c7ceca63fc3c2e6e1d4ec1a8d6eed4963ec454c | [
"Apache-2.0"
] | permissive | vperaEMC/RanitidineStudy | 48fb9e0941b95e2f5413534e3f68ec7480708d86 | f55fd2620bbdadfe169edac12a3e7b64ec04c5b3 | refs/heads/master | 2023-02-16T18:08:59.683403 | 2021-01-16T09:58:25 | 2021-01-16T09:58:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,837 | r | Main.R | # Copyright 2020 Observational Health Data Sciences and Informatics
#
# This file is part of DrugUtilization
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... |
e02f65a3796642690d195f2fd0840609d7b572e1 | 75ad9a7a0e9ab4f831151cb1902ad4614616995a | /source/DataCreators/KeeferDataExtender.R | 3478e249a56d299283d104e58030adfe8146fe72 | [] | no_license | christophergandrud/CrisisDataIssues | e1eb49f187c0478c5cc5304085b751c06f2b1155 | 98d8b9e15d4987b4fb85ef0195e40ad088a48efd | refs/heads/master | 2021-01-25T07:28:13.323633 | 2014-06-26T13:29:16 | 2014-06-26T13:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,396 | r | KeeferDataExtender.R | ################
# Keefer (2007) data extender
# Christopher Gandrud
# 14 March 2014
###############
# Load packages
library(DataCombine)
library(countrycode)
library(psData)
library(forecast)
library(plyr)
library(WDI)
library(foreign)
library(repmis)
# Fuction for keefer rolling 3 year averages
rollmean3r <- functi... |
0e8f994082eeb4ab1c38598786cd0a4a06617109 | 5072c3989bbe9c8cabb9e8ba0fc0bf7506406a31 | /inst/minimal-osgi/main.R | 4221c51a1038a3288f6316b2e6418aeec242e154 | [] | no_license | lawremi/rigb | 5acb5cef299fe1ad672af0ee1a75d9037712057b | 56dd814328a2add72e5b952daee85442d1390842 | refs/heads/master | 2020-12-25T17:56:22.025641 | 2011-10-17T17:16:20 | 2011-10-17T17:16:20 | 2,149,977 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 252 | r | main.R | #!/usr/local/bin/R --vanilla --slave -f
library(debug)
library(rJava)
.jinit(classpath=c('.',
'felix.jar',
'REngine.jar'))
.jengine(TRUE)
## This is NULL, even after starting the bundle in Felix.
print(J("Activator")$getInstance())
|
d05bc87ef14c8f5a3ec8aa4d6db21c8874043729 | 7ac133f9871f201f7a956f3b239d8f0030907c06 | /man/groundwater_district.Rd | 95234efa22af780bfaeeaa3a36615b6d7524638c | [
"MIT"
] | permissive | gopalpenny/anem | 1029318ca01a6172b365ddb7d2181135d909d92c | f2ba63622e0e67a08423b20c5f09a34b6433f6d0 | refs/heads/master | 2021-07-09T21:43:07.502292 | 2020-12-16T15:25:36 | 2020-12-16T15:25:36 | 219,404,991 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 401 | rd | groundwater_district.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anem_data.R
\docType{data}
\name{groundwater_district}
\alias{groundwater_district}
\title{Groundwater district anem-app scenario}
\format{a list object containing named items associated with anem-app}
\usage{
groundwater_district
}
\descript... |
b392e05cf457c76950bf24ec9072ce0fae101795 | 2c4dbf42a157b8691ad66da48a34c98e92407d18 | /R/08-create-radii-data.R | e70d8ac2c51bd5dca1f989f8e8936c943b81c835 | [] | no_license | timkiely/spatially-conscious-ml-model | 05f829b8efb181fe4f0f1454427589a3443f0d1a | 3a81a9ce61a48dd8d34aca427370968f9580c2bd | refs/heads/master | 2021-10-10T12:19:08.269686 | 2019-01-10T16:39:12 | 2019-01-10T16:39:12 | 95,896,422 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,437 | r | 08-create-radii-data.R | # This function creates the RADII modeling data
create_radii_data <- function(base_model_data = "data/processing steps/p06_base_model_data.rds"
, outfile = "data/processing steps/p08_radii_model_data.rds"
, run_radii = FALSE) {
message("## Creating... |
feaf5ab0a19ec6f5deade59d076d9910e50e54a6 | 902f6080da801730f4e1d2b7094054e6ab4178fc | /best.R | 1fdd11745c95c137d442b99fb9a82229ff165cff | [] | no_license | famibelle/rprog_data_ProgAssignment3-data | feda7f62ac747577ff4d67415f0ffdb90adf74ac | 299328b247e33a4c1bef037eefffe7388969906f | refs/heads/master | 2021-01-01T05:41:09.454611 | 2014-08-24T20:06:55 | 2014-08-24T20:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,264 | r | best.R | #Finding the best hospital in a state
# Write a function called best that take two arguments: the 2-character abbreviated name of a state and an
# outcome name. The function reads the outcome-of-care-measures.csv le and returns a character vector
# with the name of the hospital that has the best (i.e. lowest) 30-day m... |
0626505218c748175633644ed7d9781a18d32b08 | 2b2aee3352f8a10c121fe74036eddec01b3ee595 | /man/killIndividuals.Rd | b659832cc92cddd911239b5a29c46e7fe9909b5d | [
"MIT"
] | permissive | rdinnager/slimr | 56f1fef0a83198bce292dd92dc1014df87c2d686 | e2fbb7115c7cca82dabd26dc6560e71a8cd0958b | refs/heads/master | 2023-08-21T14:00:36.089104 | 2023-07-31T03:11:09 | 2023-07-31T03:11:09 | 226,999,099 | 8 | 1 | NOASSERTION | 2023-08-03T05:44:32 | 2019-12-10T01:04:16 | R | UTF-8 | R | false | true | 3,926 | rd | killIndividuals.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slim_lang.R
\name{killIndividuals}
\alias{killIndividuals}
\alias{Species$killIndividuals}
\alias{.Sp$killIndividuals}
\title{SLiM method killIndividuals}
\usage{
killIndividuals(individuals)
}
\arguments{
\item{individuals}{An object of type... |
d8c92f87a16d36a2b5659e6a69f371d9740bbcb1 | 6bee4f202b4a54b6b9d8c563208b5c29e7a13c84 | /plot1.R | 8ad90dbf05ed6cb84d2701bcb1108bd12917303b | [] | no_license | fergusmeade/EDA_Project2 | 942d7e6303673682b7ceed703dd259dbc4827d7f | 0617040316bb92f40535a67cb1607c132147d069 | refs/heads/master | 2020-03-26T07:15:18.184012 | 2018-08-13T23:37:59 | 2018-08-13T23:37:59 | 144,644,583 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 878 | r | plot1.R | url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
download.file(url, destfile = "project2_data.zip")
unzip("project2_data.zip")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#Have total emissions from PM2.5 decreased in the United States from 1999 to 2... |
50fa6272651184de93e994b9a61329a65adc32f7 | a8ef03b7ec4559db296409f8017379aba77babf0 | /eda2.R | 67bb22d03b5934b39e04f7cc80822d4715965c1f | [] | no_license | abalaji-blr/GrupoBimbo | 60eed1788244947e42f54ef83bce1a671ff582e7 | 271204b083f0d280f388cbeb44e6f60c2d8fae75 | refs/heads/master | 2021-01-20T20:10:40.658056 | 2016-07-27T12:27:23 | 2016-07-27T12:27:23 | 63,602,158 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,545 | r | eda2.R | # perform data analysis on Grupo Bimbo data set
library("data.table")
# training data is 3GB, generate smaller train for early analysis.
#
# system(dt <- fread("./train.csv", header = TRUE))
# library("dplyr")
# new_train <- sample_frac(dt, 0.15)
# write.csv(new_train, file = "new_train.csv", row.names = FALSE, quot... |
2dc8c65888f8c2ae03de5f7c14d0acc608f727a3 | f2c26779b27e038121bb7d4e9a693cd898c4000b | /Min-Var portfolio.R | 2e046e50c0817eeafa6027de0f0a50b2f8cadb85 | [] | no_license | Rigo5/Portfolio-optimization-with-ROI | 0cf2b46eebf0f2c7e6f46c3a9105829551263bd8 | a5c1231fafe62094859840aca7af46e1ed64a8ef | refs/heads/master | 2022-11-24T21:43:19.169054 | 2020-08-04T09:51:42 | 2020-08-04T09:51:42 | 284,742,522 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,858 | r | Min-Var portfolio.R | library(quantmod)
library(stringr)
library(ROI)
library(ROI.plugin.quadprog)
#function for download data
#I gonna use the getSymbols function
get_symbol = function(ticker, from = '2017-01-04'){
error_handler = function(e){
warning(paste0(ticker, ' is not present', sep = ''))
#return NA value
return(N... |
aa03975e65a065047d23d1811efa8a6aa0c4693f | e47b613de6fde64e52c08f4fe752058664d83533 | /titanic.R | f9392b01845d49a6102cc50ca102fa8f7a05214c | [] | no_license | anu24/DataWrangling | e2111c521c0e8fec61e0ca78f8f76e86c9bb4d83 | f29a74f350aca8615fe8ce0bf0c8747b5e85377f | refs/heads/master | 2016-09-14T00:19:20.632859 | 2016-05-01T23:37:48 | 2016-05-01T23:37:48 | 57,585,327 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 799 | r | titanic.R | library(dplyr)
# load "titanic_original.csv" data
titan <- read.csv("titanic_original.csv", header = T)
# 1. The embarked column has one missing value, find and replace with "S"
titan[titan$embarked == "", ]
titan <- titan %>% mutate(embarked = replace(embarked, embarked=="" & name != "", "S"))
# 2. "Age" column mis... |
f6c8492a33eb9103eaf1f2a58bec47aeafc022fb | 0a906cf8b1b7da2aea87de958e3662870df49727 | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610555112-test.R | 2c18b6de7f366d37a7e5b4b27f3b0c9f460d2074 | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,181 | r | 1610555112-test.R | testlist <- list(data = structure(c(7.27247987802838e+199, 1.4072470568e+248, 1.42963235646472e+248, 6.59297085909318e+38, 3.52062311262302e-305, 1.51255630705442e-312, 6.97572831925218e-310, 6.21470184187001e+228, 9.48968865377627e+170, 6.48706195472858e+174, 7.71825832018303e+188, 3.78576699573368e-270, 4.9406564... |
b0c6a3ba90a4dc0768a5bd61c7de1ba009182316 | e6a95c4b8744ad329e6bd6755f3c5f7d185fe1ce | /classifier.StartingPoint.R | 7d6352132b2cfec7060e77d3db6e4c5be2593696 | [] | no_license | FuCherng/CS411Project | bcacf1683db70dfc0be74dc356f061214bb13c0a | b2c7354aa30644440594af90787579eaf836163a | refs/heads/master | 2020-06-28T20:37:36.087083 | 2016-11-29T15:02:52 | 2016-11-29T15:02:52 | 74,474,438 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,893 | r | classifier.StartingPoint.R | library(dplyr)
library(plyr) #ddply
library(caret)
# library(lattice)
# library(ggplot2)
#------ read features
db=read.csv('/Users/fuyincherng/Documents/EPFLCourse/DigitalEducation/R/Dataset and Scripts-20161108/OutputTable.csv', stringsAsFactors = F)
#------ sort submissions
db=db[order(db$UserID,db$ProblemID,db$Subm... |
aceb0a5e8c849ae6434cb3180e062e541b1d49ff | de31f54f678b7fe3b0619425621345f440f8944a | /R/introduction.R | b95a1d2f95e63cefa5a25e967f7fd01f010fe9bb | [] | no_license | PaulMelloy/GettingStartedInR_210506 | 0fc47211a1522ad960d009651402cf32e7383371 | 9cc9bffcb5cdc13e8ad97058b5db00c6f6e9a5fd | refs/heads/main | 2023-04-26T09:28:07.172902 | 2021-05-06T05:58:12 | 2021-05-06T05:58:12 | 364,461,388 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,004 | r | introduction.R | x = 100 + 1
# It is better practice when assining an object
# to use the <- assign operator
x <- 100
y <- 5
x * y
log(x)
# can't create object names with specific ways
# 2x
# The filesystem in R
# finding where you are
# What is your working directory
getwd()
# you can change your working directory
# but don't
# ... |
5cfa8651dcb2bec0de9b9ec5426b2a41b92ca426 | 2d47450c41c23f6d008bfca5bf08d3161bb13491 | /man/ba_germplasm_markerprofiles.Rd | 429bba9f9283ea750720c141a9390ca9e71134b3 | [] | no_license | khaled-alshamaa/brapi | 2c14727d65fc82a77d243bdc40c10b67955a04d5 | 5f2a5caa48d72e2412ead128b9143cc1882a060c | refs/heads/master | 2022-03-21T20:19:07.470329 | 2019-10-16T15:51:00 | 2019-10-16T15:51:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,652 | rd | ba_germplasm_markerprofiles.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ba_germplasm_markerprofiles.R
\name{ba_germplasm_markerprofiles}
\alias{ba_germplasm_markerprofiles}
\title{ba_germplasm_markerprofiles}
\usage{
ba_germplasm_markerprofiles(con = NULL, germplasmDbId = "",
rclass = c("tibble", "data.frame", ... |
c40636c507e84673a4214304c32694623f71f39d | 5665b1a9e21db54af9c7862a5258e1f452b09721 | /functions/realtime_predictions.R | 1a042a41987d94e0c1ee845c34bc52eb4d02da23 | [] | no_license | ahessert/alluvium | fa432bb6a1322bdff556d15137d560a8245edd6f | a6eb493b429a07c66a3c5ef65623c08a547b118a | refs/heads/master | 2021-04-06T07:01:16.841194 | 2018-03-20T19:14:50 | 2018-03-20T19:14:50 | 125,110,996 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,261 | r | realtime_predictions.R | make_prediction <- function(prediction_records, turbine_endpoint, coefficients) {
prediction_records %>%
clean_records %>%
format_predictors %>%
apply_coefficients(coefficients) %>%
{.} -> prediction
GET(turbine_endpoint, query = list("ts"=prediction_records[1, ts], "value"=prediction))
}
format_ne... |
5ddb95b6b8b33cdfb26177b5676623ba3a024dd0 | 48e98fed26af821438813b224d241b9e5573072f | /22Feb2021_1_dplyr.R | 53cde73a5960773df982049be1f996c6fb152578 | [] | no_license | mrpetersenful/unit_3_penguins | 060bbb574657e414e690805a9ff8418f96b19fdc | 61b9bef9432560106554aa619337a8f0c7759ae0 | refs/heads/main | 2023-07-22T23:19:29.822238 | 2023-07-15T16:39:22 | 2023-07-15T16:39:22 | 341,201,942 | 0 | 0 | null | 2021-02-22T13:01:14 | 2021-02-22T13:01:13 | null | UTF-8 | R | false | false | 16,164 | r | 22Feb2021_1_dplyr.R | ## 22Feb2021
## 3.1 Intro to penguins
## The Tidyverse package makes coding much more efficient, easier to write and read,
## and creates great visualizations. Developed by RStudio's chief scientist Hadley
## Wickham, the Tidyverse provides a well-documented workflow for general data modeling,
## wrangling, and vis... |
b2757116732455b5768c0bb375a198bc44c9ea00 | 18f4631b4b312215877e5a65fff966089b993c8d | /LIB_dailytimeseries2.r | 35331060613ef6cd8ab6e49d882cc1bd9544f5cf | [] | no_license | kkyong77/R-coded-scripts-for-RHESSys-calibration | 42c93f00d8e6dcb7027141f3dc0527897e84be3b | 7fc7c222c0afe36cde7a88abde8357d7bc1d68c9 | refs/heads/master | 2020-03-20T10:07:16.627513 | 2018-06-12T13:57:57 | 2018-06-12T13:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,962 | r | LIB_dailytimeseries2.r |
source("~/Dropbox/LIB_Rscript/LIB_misc.r")
fillingTimeGap = function(x){
#assume x is Date
return <- seq.Date(x[1], to=x[3],by="day")
}#function
match2DailyTimeSeries_backup=function(x,y){
#assume both x and y are date object
x.select = rep(NA,length(x))
for(i in 1:length(x)){
x.select[i] = x[i]%in%y
}... |
95b2d8d9ae41ead10c3ef41702e06a9974198788 | 770b14ae44e4991d444f0a0b1af124396bf2960f | /pkg/R/cases.R | beb0d0741b637a508e8a9b3339065e5253878f60 | [] | no_license | melff/memisc | db5e2d685e44f3e2f2fa3d50e0986c1131a1448c | b5b03f75e6fe311911a552041ff5c573bb3515df | refs/heads/master | 2023-07-24T19:44:10.092063 | 2023-07-07T23:09:11 | 2023-07-07T23:09:11 | 29,761,100 | 40 | 10 | null | 2022-08-19T19:19:13 | 2015-01-24T01:21:55 | R | UTF-8 | R | false | false | 5,624 | r | cases.R | cases <- function(...,check.xor=c("warn","stop","ignore"),
.default=NA,.complete=FALSE,
check.na=c("warn","stop","ignore"),
na.rm=TRUE){
subst <- match.call(expand.dots=FALSE)$...
if(!missing(check.xor))
if(is.logical(check.xor))
check.xor <- ifel... |
fc98f37d11bcaf0c00f8116352645e89e90b60b9 | a82978f0e25412ac1d60a340009cbf3b5ab0c998 | /man/dpca.var.Rd | c6f87486be3969cea3e8a9322e1a579748f37b05 | [] | no_license | kidzik/freqdom | 560d8b99f46bc7f35e987d9114e7dd3aabe4fa65 | fcbfc6958cbb3e96fb02f63acb87dac56bad4dfc | refs/heads/master | 2022-05-02T22:41:58.132430 | 2022-04-18T05:48:16 | 2022-04-18T05:48:16 | 73,332,290 | 2 | 4 | null | null | null | null | UTF-8 | R | false | true | 1,691 | rd | dpca.var.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dpca.var.R
\name{dpca.var}
\alias{dpca.var}
\title{Proportion of variance explained}
\usage{
dpca.var(F)
}
\arguments{
\item{F}{\eqn{(d\times d)} spectral density matrix, provided as an object of class \code{freqdom}. To guarantee accuracy of... |
b1e923d0cfd9ab86779f7b72abe81da5f027082c | 0c1b5c68a28405e79eb010a76725652704ba7403 | /plot1.R | 7aae587f9423b5b812a12003069a048dad7237f4 | [] | no_license | ChadworthMagee/Exploratory_Data_Project_2 | d38ba436fe19803097bbdf7ad190765c4c3756a8 | 950e76f179c680683ad231cbb1c464bc59fcae92 | refs/heads/master | 2021-01-17T22:51:41.096103 | 2014-06-22T23:18:47 | 2014-06-22T23:18:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 289 | r | plot1.R | if(!exists("NEI")) source("load.R")
library('plyr')
png(file="plot1.png")
# Sum data by year
emissions <- ddply(NEI, .(year), summarize, total.emissions=sum(Emissions))
plot(emissions, main="Emissions from PM[2.5] in the US", xlab="Year", ylab="Total Emissions", col="red")
dev.off()
|
4a83d7cb7a41325eb1f5552e57dc477772eae30a | b0594404d169215bbdf80f50cd5337872b79c426 | /tests/testthat/test_Map.R | ea1e758bd1d10909770e009df85b02b26ad2a123 | [] | no_license | BioinformaticsFMRP/rols | 6e362d171b55d552d709ea40e776b0f55864681d | ff0149c545b58b3abed680821cc73c0a12e44002 | refs/heads/master | 2021-01-18T12:53:54.530986 | 2015-12-30T18:17:29 | 2015-12-30T18:17:29 | 53,099,450 | 1 | 0 | null | 2016-03-04T02:01:54 | 2016-03-04T02:01:54 | null | UTF-8 | R | false | false | 1,021 | r | test_Map.R | test_that("Map class", {
map <- allIds("MS", simplify=FALSE)
char <- allIds("MS", simplify=TRUE)
char2 <- as(map, "character")
char3 <- as.character(map)
expect_identical(char, char2)
expect_identical(char, char3)
... |
3f3a96ba56cbf1f552c1abbe97ac1de2944bc180 | 89c706327fbac52418ccda18e44d1c98bd7759e7 | /dashboard/AppCode/shiny/server/components/noveltyChapterDifference.R | 8c523a631101fad342d1fda90de5c81ed63894d2 | [] | no_license | rickdott/Montecristo | 3d313f434a2a0bec167e271a0d27b2e058125ae5 | fa66a9d6b6d0555d1e882ebec4a7d79340e2ddf6 | refs/heads/master | 2023-03-29T23:51:16.121366 | 2021-04-03T08:22:07 | 2021-04-03T08:22:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,738 | r | noveltyChapterDifference.R | output[[id.visual.noveltyChapterDifference.output]] <- renderPlot({
#Make plot here
chapters <- db.tdms$find(
query = paste0('{"title": "', input[[id.general.book]], '" }'),
fields = '{"data" : true}')$data[[1]]
# Make sure there are only chapters included with more than 50 words, this is
# done to mak... |
b755e08ad6a3e203fe0209cb1b509f8f6f7b4e05 | c5de5d072f5099e7f13b94bf2c81975582788459 | /R Extension/RMG/Utilities/Interfaces/DivideAndConquer/man/finalize.Rd | b62d6b48fa0e86af643e86c12c6254f79af4fd74 | [] | no_license | uhasan1/QLExtension-backup | e125ad6e3f20451dfa593284507c493a6fd66bb8 | 2bea9262841b07c2fb3c3495395e66e66a092035 | refs/heads/master | 2020-05-31T06:08:40.523979 | 2015-03-16T03:09:28 | 2015-03-16T03:09:28 | 190,136,053 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,303 | rd | finalize.Rd | \name{finalize}
\alias{finalize}
\title{Apply a function to a bunch of files and return the results.}
\description{
Finalize operates a function on a bunch of files and returns the
results back into memory. It can be used to aggregate many smaller
files into bigger ones, or it can be used to subset data from eac... |
9ad7ef3139444ba124054eb42e28b10d5e3e80cb | 13bb1694b07014883228eaadfe29ca3774133006 | /20-cellranger-edger-markers-for-gsea.R | ef991883c27b295610d2ca0dc6bdcc9032788a82 | [] | no_license | DevkotaLab/ha-et-al-2020-cell | 0b8278ff040bf98ca8961ef73f5d9c752ba0013e | f5c5a724d5a89058b5d2b9cfac312222f15009c4 | refs/heads/master | 2022-12-08T15:52:27.632998 | 2020-09-14T19:35:08 | 2020-09-14T19:35:08 | 241,246,468 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 761 | r | 20-cellranger-edger-markers-for-gsea.R | ## Calculate GSEA markers per cluster with edgeR for Cell Ranger all samples.
## Updated 2020-05-20.
source("_setup.R")
cellranger <- readRDS(file.path(
"rds",
"2020-05-18",
"cellranger_all_samples_seurat.rds"
))
## Set the resolution.
resolution <- import("resolution.txt", format = "lines")
Idents(cellr... |
2012cca0b2cd5738e5781b51578a6babcc149973 | 33e7d36bac9b7db5c6da8396e7d0b5f0033593b7 | /figure/Plot4.R | 429bcdce5ec04445c78c35c6053a3536eaa5060b | [] | no_license | 18912810609/ExData_Plotting1 | 19c998147ff75eb2e41954619466eaf64c5aa85a | f540170a322ef6b89fded4e85c696d3bb1fea746 | refs/heads/master | 2022-11-10T06:51:22.456583 | 2020-06-16T18:57:31 | 2020-06-16T18:57:31 | 272,779,701 | 0 | 0 | null | 2020-06-16T18:10:57 | 2020-06-16T18:10:56 | null | UTF-8 | R | false | false | 1,141 | r | Plot4.R | power<- data.table::fread(input = "household_power_consumption.txt",na.strings="?")
power$Date<-as.Date(power$Date,"%d/%m/%Y")
power4<- power[(power$Date>= "2007-02-01") & (power$Date<= "2007-02-02")]
power4$DateTime<-paste(power4$Date,power4$Time)
power4$DateTime<-as.POSIXct(power4$DateTime,"%d/%m/%Y %H:%M:%S")
p... |
a54c317cac29b111cbf368c4bb02956aa7b9c62a | 5c714607243a555a69eed41aba0b53f8747cd495 | /papillary/feature_sel/fcorr.R | d1124a33b4089cb7bcb1130f6ada275ffaa5bb26 | [] | no_license | xulijunji/Stage-Prediction-of-Cancer | 5a7912d66f92e73deacedd12446490b79c78cea8 | 4924468fa35a504c991fdd0051174d0489d3ff21 | refs/heads/master | 2021-05-06T06:45:57.242407 | 2017-12-11T09:26:20 | 2017-12-11T09:26:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,182 | r | fcorr.R | library(Biocomb)
library(class)
library(randomForest)
library(e1071)
library(DESeq2)
source('stability_gene_selection/helper_stable.R')
source('../function.R')
load('environment/stages_levels.RData')
load('environment/diff_genes.RData')
load('environment/stage.index.RData')
load('environment/stages.level.comb.RData')
... |
e4dc136076fc92bc46fea53c44bfa125ad5adbc3 | d67abff5ef203490361b42f8fdebbb6c44738964 | /trigger-model-development/drought/skill-assessment/DMP-VCI-Analysis/dmp_vci_comparison/extract_dmp.R | b0f715351b56cf82092fe2171e8c41d738f54cd6 | [] | no_license | lvanbrussel/IBF-system | da63cfed5416f07e10effe9314046802a6bd6746 | 3cc18825765ba81c92260d72b6f8c5cf9244ff2c | refs/heads/master | 2023-03-17T00:52:38.488305 | 2021-03-02T16:23:07 | 2021-03-02T16:23:07 | 282,157,570 | 0 | 0 | null | 2020-07-24T07:50:49 | 2020-07-24T07:50:48 | null | UTF-8 | R | false | false | 1,490 | r | extract_dmp.R | library(raster)
library(sf)
library(tidyverse)
library(velox)
library(stringr)
library(lubridate)
# install.packages("velox_0.2.0.tar.gz", repos = NULL, type="source")
# Because velox$extract() does not take extra arguments we have to write a custom mean no na function
mean_no_na <- function(x) {
mean(x, na.rm=T)
}
... |
d56ac323c07c4060e5823da8dfdfbc2d27929539 | 83dcb30cb3fde868a5a7be13db3a2cd2dcc9d1f4 | /R/SES_life.R | de5d8a0ef1862e80a620a70ad388f0ea60df062e | [] | no_license | markocherrie/LifecourseEpi | 50f72006206ba8c1881354917682230860b9d7b3 | aa835bd8946a5000404c1e7eea7859c117c0552e | refs/heads/master | 2021-01-22T03:54:07.923354 | 2017-02-09T17:10:06 | 2017-02-09T17:10:06 | 81,472,911 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,729 | r | SES_life.R | #' Historical Area-level Socioeconomic Deprivation for Edinburgh
#'
#' Derives an estimate of area-level socioeconomic deprivation for any Edinburgh location from 1926-2015.
#' @param Lat has to be within Edinburgh boundary
#' @param Long has to be within Edinburgh boundary
#' @param Year has to be between 1926-2015
#'... |
054356d49130aff40acaad2cf583d15e2f1302e7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/PASWR2/examples/RAT.Rd.R | 998db93cb257da3e9358a36159ab3de57d1ee12c | [] | 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 | 305 | r | RAT.Rd.R | library(PASWR2)
### Name: RAT
### Title: Rat Survival Time
### Aliases: RAT
### Keywords: datasets
### ** Examples
ggplot(data = RAT, aes(sample = survival.time)) + stat_qq()
ggplot(data = RAT, aes(x = survival.time)) + geom_density(alpha = 0.2, fill = "blue") +
labs(x = "Survival time in weeks")
|
b5982f3ae9f64034f3a43a95f5b9a1fce088f17a | 29585dff702209dd446c0ab52ceea046c58e384e | /rstiefel/R/rbmf.vector.gibbs.R | 74f0305398aec73ef960894fa00c885efc88b8f4 | [] | 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 | 286 | r | rbmf.vector.gibbs.R | rbmf.vector.gibbs <-
function(A,c,x)
{
#simulate from the vector bmf distribution as described in Hoff(2009)
#this is one Gibbs step, and must be used iteratively
evdA<-eigen(A)
E<-evdA$vec
l<-evdA$val
y<-t(E)%*%x
d<-t(E)%*%c
x<-E%*%ry_bmf(y,l,d)
x/sqrt(sum(x^2))
}
|
b09c87170ae4c2f99ac26b489a1447da3c7a9e23 | 68ab7ff66e331acb0a0721a37c0fa9da5b9b1e57 | /inst/Filtering_snow_height.R | 0dd5bb5e4ba882dd156b9bc2cdd78157576c226c | [] | no_license | EURAC-Ecohydro/SnowSeasonAnalysis | 240bbd9c3616d4e959b51d88c5672c6ebc4717cd | 2a08475c2d79c183bcf76a13531dcd14ce2c4152 | refs/heads/master | 2021-01-02T08:16:28.539577 | 2020-11-30T22:39:07 | 2020-11-30T22:39:07 | 98,980,841 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 9,301 | r | Filtering_snow_height.R | #-------------------------------------------------------------------------------------------------------------------------------------------------------
# File Title: Filtering_snow_height.R
# TITLE: Analyze and filter snow height signal
# Autor: Christian Brida
# Institute for Alpine Envi... |
e5643e35efd12b49cc689a7d718e7283a53b6ba6 | 28a3ee1f4c46944bc797be2f511c147bb35d6a98 | /R/facets-wrapper.R | 904979d4386595760112dd384876dde1c70103a7 | [] | no_license | rptashkin/facets2n | 9d52da47b02ecfeabff3148b9019f2f460efafc0 | c75d9a97bb60b854b603927c2eb73114ef94590a | refs/heads/master | 2022-05-17T11:50:55.948684 | 2022-05-06T01:51:53 | 2022-05-06T01:51:53 | 200,111,725 | 11 | 3 | null | 2022-05-06T01:51:54 | 2019-08-01T19:59:44 | R | UTF-8 | R | false | false | 20,993 | r | facets-wrapper.R | readSnpMatrix <- function(filename, skip=0L, err.thresh=Inf, del.thresh=Inf,
perl.pileup=FALSE, MandUnormal=FALSE, spanT=0.2,
spanA=0.2, spanX=0.2, gbuild="hg19",
ReferencePileupFile=NULL, ReferenceLoessFile=NULL,
Mi... |
bce90ab3643917309ecc5aadb517431c1800907a | 6087436469aafbd7b1007cf3c02e64e928d4e13b | /03_good_programming_R_functions/Problem 6.R | ac7d858157fbbe9e25e048ade795cec5bb7ea388 | [] | no_license | Peng0618/STAT_5014 | 48ae2e18970d50a5e683b71fc97ad94fe89744cb | fd1b3aa44717ff896208984612a5a826864add5b | refs/heads/master | 2021-07-11T14:51:50.645887 | 2017-10-11T22:27:48 | 2017-10-11T22:27:48 | 103,090,715 | 0 | 0 | null | 2017-09-11T04:44:04 | 2017-09-11T04:44:04 | null | UTF-8 | R | false | false | 1,018 | r | Problem 6.R | datasum <- function(dev1,dev2) {
m1 <- mean(dev1)
m2 <- mean(dev2)
sd1 <- sd(dev1)
sd2 <- sd(dev2)
cov12 <- cov(dev1,dev2)/sd1/sd2
result <- data.frame(Mean1 = m1, Std1 = sd1, Mean2 = m2, Std2 = sd2, Corr = cov12)
return(result)
}
RawData <- readRDS('HW3_data.rds')
Observer <- NULL
Mean1 ... |
c360c7e130be98bbb076c665d71cff4c97cfe9e6 | f07605bde795cf492828a04fc8e027609ea1054c | /closestGeneEnrichment.R | 76c5d47b4f9799c8227d5c3f1b5a931d7e8e2e9a | [] | no_license | Dan-Ju/gwas | 1f6372264dd1a2b9565739f7bfbe0bff0d876953 | dfd3127927224c828a7a535164442c0c5bbf543b | refs/heads/master | 2022-04-26T21:35:53.132867 | 2018-03-25T21:49:23 | 2018-03-25T21:49:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,789 | r | closestGeneEnrichment.R | ## Gene Enrichment analysis for closest gene to snp
# NOTE: Total number of genes is hardcoded in according to RefSeq gene list
args = commandArgs(trailingOnly = TRUE)
# arg1 path to bed tools intersect output bed file
# arg2 path to bed tools intersect output bed file
library(methods)
library(biomaRt)
df1 <- read.t... |
d018beb1da9eb05160074b770859dfc24ffaa651 | 0cc863fed706b96df0c44afe7d466cff23228049 | /man/pdf.Rd | a86e343fc14c71ab3e9feaa766274bdb8f4f9a84 | [
"MIT"
] | permissive | alexpghayes/distributions3 | 80a96665b4dabe2300908d569cb74de3cc75b151 | 67d27df128c86d80fe0c903b5b2c8af1fb9b0643 | refs/heads/main | 2023-01-27T14:49:47.588553 | 2023-01-18T18:12:22 | 2023-01-18T18:12:22 | 185,505,802 | 52 | 11 | NOASSERTION | 2023-01-18T18:12:24 | 2019-05-08T01:38:24 | R | UTF-8 | R | false | true | 1,595 | rd | pdf.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods.R
\name{pdf}
\alias{pdf}
\alias{log_pdf}
\alias{pmf}
\title{Evaluate the probability density of a probability distribution}
\usage{
pdf(d, x, drop = TRUE, ...)
log_pdf(d, x, ...)
pmf(d, x, ...)
}
\arguments{
\item{d}{An object. The ... |
6abbe51c18cab4f2428ce5478678d9ebf64edec8 | 640fe2928a7f221855704c7bef19644004bb2235 | /Week 4 Assignment/plot4.R | 4168d7ad096d7b499f1ee9c4dc069937a1b7ace7 | [] | no_license | shivangipokhriyal/Exploratory-Data-Analysis | 2629e4417fa982ab3f632307311bd339f1ef349b | bd7584839d1d8e55d428bded41391e523793e896 | refs/heads/master | 2022-11-26T21:10:43.146576 | 2020-07-31T19:31:11 | 2020-07-31T19:31:11 | 281,900,220 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 695 | r | plot4.R | setwd("C:/Users/comp/Documents/CourseraR/Exploratory Data Analysis/US air pollution case study")
NEI<-readRDS("summarySCC_PM25.rds")
SCC<-readRDS("Source_Classification_Code.rds")
SCC_coal <- SCC[grepl("Coal",SCC$Short.Name),1]
NEI_CC <- NEI[NEI$SCC %in% SCC_coal ,]
library(dplyr)
ems <- NEI_CC %>% select(E... |
0272d515e212fae24204f6773e77a6dca54d400f | 45a8db12eb70b9deaf130e3aa1822fd0f152ceec | /sources/ICCATPostTraitment.R | 1df0d8c5ebe79f6e60c2bfb21390f117b3d4b468 | [] | no_license | MarieEtienne/ICCAT-BFT | b23f8ae7dda7c33635e7765b348a26d7c35a8ef3 | 80122e36a45113e4c8f0a27897c3515062b4b8ca | refs/heads/master | 2021-01-10T20:33:00.675198 | 2014-02-04T13:23:43 | 2014-02-04T13:23:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,130 | r | ICCATPostTraitment.R | ####################################################################################
## ##
## Post treatment on MLE results obtained using iscam on bfte data ##
## Authors: Marie-Pierre Etienne marie.etienne@agroparistech.fr... |
3a093ee5ff84f9b94072605e4f0d869feac51d11 | 26614f5bbb32ecf54e9f6bea228b01012e15c8af | /tests/test__cv.models__general__model.with.offset.r | 80291b2e5fb549fc44aec3b9ac279ce1bfd48a85 | [
"MIT"
] | permissive | Marchen/cv.models | 3291eba7c32fbe5783a01fc5e6707cdc6a3ca001 | 70af64f72933a4172d229413ff43034a53c93163 | refs/heads/master | 2021-03-24T12:23:02.833670 | 2020-08-19T09:23:42 | 2020-08-19T09:23:42 | 78,902,959 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,950 | r | test__cv.models__general__model.with.offset.r | library(cv.models)
library(testthat)
library(gbm)
#-----------------------------------------------------------------------------
# Create test data.
#-----------------------------------------------------------------------------
create.test.data <- function() {
set.seed(12345)
test.data <- data.frame(
x = rnorm(100... |
62ea7d591d063ebea579e1b0083cd8b3f6a5b129 | f36522e48e95f36f6d8e925758c517c0e89425a7 | /man/polynomial.Rd | 6458a0a2cdbe50d9497c276070a725891f8b9db5 | [] | no_license | cran/polynom | afe8d5750653752c83caa41cac777a223f834755 | 6d0ae2f3fa19eb0487d68aacc3f5638e39ff2284 | refs/heads/master | 2023-04-08T03:28:37.103246 | 2022-04-11T02:00:02 | 2022-04-11T02:00:02 | 17,698,644 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,001 | rd | polynomial.Rd | \name{polynomial}
\alias{polynomial}
\alias{as.polynomial}
\alias{is.polynomial}
\alias{as.character.polynomial}
\alias{print.polynomial}
\alias{coef.polynomial}
\title{Polynomials}
\description{
Construct, coerce to, test for, and print polynomial objects.
}
\usage{
polynomial(coef = c(0, 1))
as.polynomial(p)
is.pol... |
aa91e2282ad5f2537a2197f4807b488ab283797c | 29585dff702209dd446c0ab52ceea046c58e384e | /BVS/R/enumerateBVS.R | f192b21f449f46dcfc3e6d6988c3532f4d6dec25 | [] | 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 | 1,095 | r | enumerateBVS.R | enumerateBVS = function(data,forced=NULL,cov=NULL,a1=0,rare=FALSE,mult.regions=FALSE,regions=NULL,hap=FALSE,inform=FALSE){
p = dim(data)[2]-1
if(rare==FALSE){
which.ind = 1:p}
if(rare==TRUE & mult.regions==FALSE){
which.ind = 1}
if(rare==TRUE & mult.regions==TRUE){
which.ind = 1:length(unique(regions))}
... |
072ebe4b4393946e8955ada2b48f47ace001d3e9 | 04ca21e146db0f4e27b38475661b10be7b61a77c | /code_II2020/clase_5oct.R | 4ef7a181379464effd13a69def050e9a481db942 | [] | no_license | AdrianEnriquez4505/EST-383 | 5c2f1a67777db735ad5ecc8e584b593dc60eed6b | a6227a1afc3c50c2ed8beeeace508ec5dc24147f | refs/heads/master | 2023-04-18T18:41:25.754012 | 2021-05-04T23:39:31 | 2021-05-04T23:39:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,421 | r | clase_5oct.R | rm(list=ls())
load(url('https://raw.githubusercontent.com/AlvaroLimber/EST-383/master/data/oct20.RData'))
names(computo)
names(computo)[18]<-"MAS"
#filtrado a una base de resultados de solo presidente y vicepresidente
head(computo)
bdp<-computo[computo$Elección=="Presidente y Vicepresidente", ]
bdp<-computo[computo$... |
f0f7bb26303fd92330888d82e5e35fdc0f984b67 | 87e0e27810347db6c2d27846fcaf266eb0c5d8c3 | /R/helpers.R | d9bdc6814231fa367ebe929c0fa51f01191f2777 | [] | no_license | ucsf-bhhi/coc-data | bc245f1d44fef05fdba7976b3ebf570b788a7c99 | b215a8731c1c0ec2e9cfce1732eec99f058d086e | refs/heads/main | 2023-09-01T17:14:11.053770 | 2021-10-13T22:38:49 | 2021-10-13T22:38:49 | 379,758,960 | 1 | 0 | null | 2021-10-13T19:21:22 | 2021-06-24T00:11:47 | R | UTF-8 | R | false | false | 9,799 | r | helpers.R | #' Fetches ACS table data from the Census Bureau API
#'
#' A wrapper around [tidycensus::get_acs()] which fetches data from the Census
#' Bureau API, adds a column with the year of the data, and removes the unneeded
#' margin of error columns.
#'
#' @param ... Parameters passed to [tidycensus::get_acs()].
#' @param qui... |
608347de2259b259a4a60f4e20f0a5248a60da53 | c0fe24f3a60479a06ff9d7ef888bd9556d55d249 | /003ProteomEx_Others_FromWenhhao/SF11/ProteomEx_KRQN_ratio_SF11A_20220811.R | 8b90368c0dbefe4fe9c2f026765168bbf8fef689 | [
"BSD-2-Clause"
] | permissive | lilulu777/ProteomEx | fd1adb3e37fd64419b9aff218862134180ccb87e | 00672411ae51f04318bfe0ca1c8db87aa81284b5 | refs/heads/main | 2023-04-15T23:42:53.664902 | 2022-10-31T08:19:03 | 2022-10-31T08:19:03 | 559,337,601 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,192 | r | ProteomEx_KRQN_ratio_SF11A_20220811.R | # use variable modifications of both AC and ProteomEx
library(tidyverse)
library(magrittr)
# require(ggsignif)
rm(list = ls())
my_colors <- c(`In-solution` = '#064F89',
PCT = '#E6B429',
`proExM-MS` = '#8FC31F',
ProteomEx = '#DD704A',
`ProteomEx-2` = '#DD70... |
2063f58303a845722552b3bb35e6f7e2c7e69c01 | f66a05f17990e5c3c1afc11750ed0a14216e0564 | /analisis/file1.R | f4c3c0062846cddbe1dc422f768bd9e681da0681 | [] | no_license | karinaortega1507/ExtraccionPreprocesamientoDatos | 82ef254086e6aaac005ee3c8896a7491b2b2f3f1 | c68db2212dfdb0507c883a375c5dab7e76780c6f | refs/heads/main | 2023-03-02T11:42:00.837726 | 2021-02-03T15:43:28 | 2021-02-03T15:43:28 | 332,232,370 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 3,082 | r | file1.R | #instalar paquetes
install.packages("dplyr")
library(ggplot2)
library("dplyr")
library(MASS)
#1. importar datos predatos
datos <- read.csv("analisis/angular.csv")
View(datos)
#2. Eliminar filas donde hayan NA
datos<-datos[complete.cases(datos),] # solo seleccionamos filas completas (sin NA)
View(datos)
sapply(datos, m... |
b9e02ecdae184baffd6abfd1be90c99d86190f76 | b7430f25a26ef1e67dd877db6faffd584795f2f7 | /teste01.R | 31db1bc6aa5ed9c2bdc883e6db29e4924e181aba | [] | no_license | walterjrbr/rstudio01 | 4d9f4c27b5205711334bbdd3156a58f63da1ce60 | 91f8eadac0c79e7ff9eb56c1deecba25b015155f | refs/heads/master | 2020-05-22T18:28:06.680178 | 2019-05-13T20:21:07 | 2019-05-13T20:21:07 | 186,471,808 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 803 | r | teste01.R | #Verificação dos principais indicadores referentes ao item 1.04
library(tidyverse)
library(ggplot2)
setwd("/home/lab2")
dados=read.csv("R/PENSE_AMOSTRA1_ALUNOESCOLA.CSV",header=TRUE, sep=";")
dados1=subset(dados, select = c("aluno","VE01P45","VE01P47","VE01P48","VE01P11","VE01P13","VE01P49"))
dados2=subset(dados, s... |
4a764925faa38178aa7614dfbd1df57431136b21 | d29f91aac330118fd6de857229ed07f939bec032 | /plot4.R | f0d45f1a44f3a5f9f78c0d6f0553208af34d1420 | [] | no_license | bjw2119/ExData_Plotting1 | 6e2ac0bc406344ee97bd47a1ae14d3edc32a9369 | 04c9508c4b8a1973ce5cae64965de4783d19b92b | refs/heads/master | 2021-01-19T00:35:38.259765 | 2015-09-12T03:33:06 | 2015-09-12T03:33:06 | 42,337,456 | 0 | 0 | null | 2015-09-11T23:51:24 | 2015-09-11T23:51:23 | null | UTF-8 | R | false | false | 1,709 | r | plot4.R | #Grab column labels from top row
collabs<-read.table("household_power_consumption.txt", nrows = 1, sep=";", colClasses = "character")
#Read in only the data from Feb 1 and Feb 2 2007 (thanks to Chad Junkermeier for the piping example)
powerdata<- read.table(pipe('grep "^[1-2]/2/2007" "household_power_consumption.txt"')... |
f0d44f86dd5b90c6bf6dd9591c5bad2bbe973c62 | 7393b5938e34085eb5a6c84e0ec75c4dda391f59 | /inst/solutions/solution-15.R | 893c8c3b9becf38a22e8c473fedcb137b97ed394 | [] | no_license | zross/reportsWS | 7bf8744e519bda2ba03f1aa6af40aa992b5d40f2 | f75b1bb64b178ccaed06498783e5134bddefb3fd | refs/heads/master | 2020-02-26T13:12:31.674237 | 2015-05-05T10:54:16 | 2015-05-05T10:54:16 | 37,918,597 | 0 | 3 | null | 2015-06-23T12:47:37 | 2015-06-23T12:47:37 | null | UTF-8 | R | false | false | 1,068 | r | solution-15.R | # Solution 15 - A shiny function
#
#
# Parameterize the function below. Notice that the function
# uses `faithful`, a data set that comes with base R.
#
# 1. Define an argument named `vec` for the function.
# + `vec` should take a vector of numbers
# 2. Modify the histogram call so that it plots a histogram of `v... |
8ed6e0825358d2c0b9eaafb8c5fe61c8acc9ed52 | 6fb4692d5065289cf625f757ab065e7247a65b9c | /1.R | b70878fcc020556b2a53f16e927bbb7a1c412993 | [] | no_license | babjineelam/parents-feedback | ec3ad6610462f721036b9ecd7872abe1cab94639 | c2b661e8a47a90885b4a00bb6676844ceacfe32f | refs/heads/master | 2021-01-25T08:07:51.155541 | 2017-06-08T16:36:31 | 2017-06-08T16:36:31 | 93,721,911 | 1 | 0 | null | 2017-06-08T16:36:32 | 2017-06-08T07:49:29 | R | UTF-8 | R | false | false | 17 | r | 1.R | v <- 2
print (v) |
f85cb8d1143388d20a2babe442d2c30b58372f47 | e6f7c85f7bab4f39723bb3460c9c00b9eb781081 | /obesity.R | 68d392cdd26d0c7ba4374561fc1d5b743500434e | [] | no_license | ashah999/Advance-Data-Mining | 7b56d6e6834370866697c822efc38401e4ef7417 | 1fa3400473325ba47ab27689e3acedcc27745705 | refs/heads/master | 2020-06-14T00:38:05.892789 | 2019-08-16T21:26:38 | 2019-08-16T21:26:38 | 194,838,155 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,378 | r | obesity.R | # Load all the packages required for the analysis
library(dplyr) # Data Manipulation
library(Amelia) # Missing Data: Missings Map
library(ggplot2) # Visualization
library(scales) # Visualization
library(caTools) # Prediction: Splitting Data
library(car) # Prediction: Checking Multicollinearity
library(ROCR) # Pr... |
bf6b69178ddc4b6c35f5a4c00019705cc57c47b8 | d1f7dfcd4f4c5d673081d95393c7ff3956dee39c | /modules/weights_ui.R | 716975cb0752e1c13ca2eb67722a5fb9d9fafe7d | [
"MIT"
] | permissive | rfsaldanha/tobler | bbde1a52e86a7c2f21aa080d2368ccf0a59f287e | b103a563ce8782095ff259767c342387cf89c820 | refs/heads/master | 2022-02-03T04:14:25.727182 | 2022-01-28T12:07:17 | 2022-01-28T12:07:17 | 208,253,774 | 11 | 2 | MIT | 2021-07-24T13:40:21 | 2019-09-13T11:45:58 | R | UTF-8 | R | false | false | 7,016 | r | weights_ui.R | weights_tab <- argonTabItem(
tabName = "weights",
argonH1(display = 3, "Spatial Weights Matrix"),
argonRow(
argonColumn(
width = 12,
argonTabSet(
id = "weights-tab",
card_wrapper = TRUE,
horizontal = TRUE,
circle = FALSE,
size = "lg",
width = 12,
... |
a8298ad58dc4ed47dd7fa4f0b7d39b187d5e678e | 4369f3f66f35082d36b98f89e44118c5d3751009 | /week_3/Week 3加強.R | 9f353e929d8a830fa9792bac593b7bc94549a7d8 | [] | no_license | PeterChiu1202/Politics-and-Information | b55ea995b3b83aa90719f6b5231d8e603f02cf17 | 137f5b662740c56d32b895328b3f64bb5ce4f159 | refs/heads/master | 2021-04-06T08:18:38.381137 | 2018-04-16T05:53:05 | 2018-04-16T05:53:05 | 124,852,139 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 434 | r | Week 3加強.R |
# install.packages('rvest')
library(rvest)
title=read_html("http://sports.ltn.com.tw/baseball")
title=html_nodes(title,".boxTitle .listA .list_title")
title=html_text(title) # 只篩選出文字
# title=iconv(title,"UTF-8")
title
url=read_html("http://sports.ltn.com.tw/baseball")
url=html_nodes(url,".boxTitle .listA ... |
803df762d8649bbba37129ad0bd1fa19421a83cb | b8536379258ff810885878d0ea9bbfc940de30fd | /R-Scripts/Clustering/GitHub/SOM.R | 1d24a921edb37fc35eac1b9cd159da3f690f59e7 | [] | no_license | SajjadZaidi/ComparitiveStudyOfTextMining | 32e88834e505cbec3fd7bcdae59e0ca29bb7cca0 | 9b8e6873fcf8f28e4b5993af3c2fecb7c5a6f953 | refs/heads/master | 2021-08-24T09:42:23.948358 | 2017-12-09T03:07:04 | 2017-12-09T03:07:04 | 113,623,889 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,157 | r | SOM.R | library("kohonen")
#Add Confusion Matrix
# read arff file
set.seed(800)
start_time <- Sys.time()
git = read.csv("D:/Masters/Sem2/671/Project/DataSetAndStudy/DataSetsForStudy/5-Github/Git.csv", stringsAsFactors=F)
# scale data
git.sc = scale(git[, 2:7])
# build grid
git.grid = somgrid(xdim = 5, ydim=5, topo="hexagon... |
46148d8529231c07e4961ef8528a9560f1eddf7b | a8d0d4c55c48d6e7b70ac6de5f41ef1ab36c9df2 | /packages/knockoff/tests/testthat/test_stats.R | 8f3a0c027d54aa0873bef6b5d4d80318d7c4ee51 | [] | no_license | maximilian-aigner/pdm | 6ba345de761b93b29761ec0ad8870a80167b3e37 | fab3b21b8e6b7d4cc611f2ea3fd02ca028c53233 | refs/heads/master | 2022-07-20T07:29:30.480829 | 2018-07-09T06:03:45 | 2018-07-09T06:03:45 | 125,624,490 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,424 | r | test_stats.R | test_that('Statistics obey antisymmetry property', {
n = 10; p = 5;
prob = random_problem(n, p)
knock.variables = create.fixed(prob$X)
X = knock.variables$X
Xk = knock.variables$Xk
G = cbind(X, Xk)
y = prob$y
i = sort(sample(p, sample(p))) # Indices to swap.
G_swap = G
G_swap[,c(i,i+p)] <- G[,c... |
9c1f13d5a74f428353c0fe347c50a9c1481b31f1 | af153a41d83bc7194a4b2a4e22ba0c82780f0389 | /CourseraDataScience/pollutantmean.R | d963ed9fb6a8fdb8278fbbbaa532896df87fda0e | [] | no_license | d25higgins/datasciencecoursera | 45fb26f7da8c07be6e0ef38a417e70ccb558de2d | 46110700bd5ca0ce81aecb2b7bd3828d894f4919 | refs/heads/master | 2016-09-06T01:05:06.297867 | 2014-12-22T18:46:33 | 2014-12-22T18:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,807 | r | pollutantmean.R | ## ==================================================================
## ProgrammingAssignment #1 - pollutantmean.R
## ==================================================================
## Author: d25higgins
## Incept: Dec 6, 2014
## Description:
## ==================================================================
## ... |
727bf713054e72e24127c718fcb58048cc4f9de1 | a815407aeafc5224b546fbe905af757f40bed1d3 | /R/import_norm.R | a9d645f49a72001b493c12fbaaedfb8d9969cee7 | [] | no_license | iaradsouza1/MicroarrayMethods | a51de58e2e8a527af3bd3f50e32eedc593024360 | e717ec81551daacebb9dfe804a761c29371139bb | refs/heads/master | 2021-11-24T09:03:44.411844 | 2021-10-29T17:27:44 | 2021-10-29T17:27:44 | 166,096,496 | 0 | 1 | null | 2020-06-25T23:34:12 | 2019-01-16T19:17:58 | R | UTF-8 | R | false | false | 831 | r | import_norm.R | #' Import and normalize
#'
#' Import CEL files (Affymetrix) and normalize with RMA method
#'
#' @param celfiles_path Path to the celfiles directory
#' @param pheno_data File name with metadata information from the experiment
#' @param sep \code{pheno_data} separated format
#' @param filenames a vector containg the name... |
2c8f667e5b6c508b8bd84a56e4a118458ad80f4b | 65f98b3f7e3842afe26ab5a2ccf0e80ed2a2de63 | /R/write_SIAMESE_input.R | c469855ab5a7180f3210e16e415781bac8de16eb | [] | no_license | nroming/IDA | 4dd46faa4c9679869bfd2aa30e590d7015f18b07 | 87b4d815051aa6074993d7870ce04e5f205e1f7b | refs/heads/master | 2021-01-08T05:29:53.759564 | 2020-02-28T08:03:23 | 2020-02-28T08:03:23 | 241,926,102 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,852 | r | write_SIAMESE_input.R | #' Creates an output file in excel format that can be used as SIAMESE downscaling input
#'
#' @param df, A compatible dataframe
#' @param filename path of the Excel file where to write to (e.g. "test.xlsx")
#' @param source source_id from which scenario should be taken (e.g. "AR5")
#' @param scen Name of the scenario f... |
5d0a9f11e8fd304b8b023af5d2c62b921069e722 | 530f2465d447e630fa8430768e915e54b62d8caa | /R/sourceFunctions.R | e69db514c7943d34bfaa94d36444df4f3796dec4 | [] | no_license | dnegrey/spork | bf9cabf7dac81214c756a311b747e43e62c7e69a | 3c3b0f8fff368aee9da079f7a5801cad53ad16c7 | refs/heads/master | 2021-01-10T13:01:04.612721 | 2016-04-28T02:42:39 | 2016-04-28T02:42:39 | 52,160,224 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 745 | r | sourceFunctions.R | #' @title Source a directory of R functions
#' @description \code{sourceFunctions} sources all of the \code{*.R} files
#' found in the specified directory
#' @param dir path containing the files to source
#' @param recursive logical value; recurse into sub-directories?
#' @return The \code{source} function is applied ... |
9d2f294631f3a7a2b133df8f0c70af136fa7ac7a | 3c7122be9073fd05934f6c192232b15fbbb16a0d | /2018-07-31-upload_data_into_Postgresql.R | 77e9a5b450c347a41211d803310d427e42c5601b | [] | no_license | qihaowei89/my_work_script | ac2bad26c0f7f5cc2763fe0deb0b952264775638 | bb3daf53b9064329ba398b9117cdfc0b4c61655b | refs/heads/master | 2020-03-26T08:22:22.368313 | 2018-08-14T10:11:28 | 2018-08-14T10:11:28 | 144,698,570 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,684 | r | 2018-07-31-upload_data_into_Postgresql.R | library(RPostgreSQL)
# install.packages("RPostgreSQL")
con = dbConnect(PostgreSQL(),host="127.0.0.1",user="postgres",password="wqh123",dbname="mydb")
dbListTables(con)
dbWriteTable(con,"mtcars",mtcars)
dbListTables(con)
dbListFields(con,"mtcars")
dbReadTable(con,"mtcars")
res = dbSendQuery(con,"select * FROM mtcars whe... |
577d44c4102f62b38833f463e5d79b38d1e39c2f | f14b7c62e8037a6e6811ee4286e113d8cd6c5621 | /ting2/man/ting2-package.Rd | cf36600bebabf932538d1d8a4d8eb9229feee474 | [] | no_license | tinggao0716/WeatherStations | c6d17c8dea3deb991b1766523aec8625356baf3a | c67ab0a1dbf86fe5c8ca047a207e47baaa391a08 | refs/heads/master | 2016-09-16T13:22:01.758997 | 2014-03-19T21:35:46 | 2014-03-19T21:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,510 | rd | ting2-package.Rd | \name{ting2-package}
\alias{ting2-package}
\alias{ting2}
\docType{package}
\title{
Weather Station data
}
\description{
Organize, visualize and model weather station conditions.
}
\details{
\tabular{ll}{
Package: \tab ting2\cr
Type: \tab Package\cr
Version: \tab 1.0\cr
Date: \tab 2014-03-19\cr
License: \tab What lice... |
bf6ed4846b3aa119515bbdb6e3194b0892c56489 | aed2befcda06b44324e887a55c289e32e5c7c8ae | /fireDataHardTest.R | 1194247d98426d45af71d1dd028c575be3441a60 | [] | no_license | benubah/gsoc-test | 8f95c3074c15df91e68c2d9c13d8d7840ce89314 | 39db428b67e5b6972377aa3ec938a54277ea7291 | refs/heads/master | 2021-04-12T11:30:51.323308 | 2019-04-01T02:06:12 | 2019-04-01T02:06:12 | 126,233,627 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,528 | r | fireDataHardTest.R | # For upload function
\examples{
#example uploading mtcars data-frame to firebase
upload(x = mtcars, projectURL = "https://firedata-b0e54.firebaseio.com/", directory = "main")
\donttest{
upload example where write access is restricted to registered users only. Replace token with idtoken obtained by cal... |
fe84d7ddeec122f12a449952049d84a11a372dba | 0b0e58d6578ea085b65407ea8702db7e60780ba5 | /skyline_graph_v2.r | 4eefc9244eb717f86775df9fd9ea6d67f1e05eda | [] | no_license | hug-fr/skyline | 0fa19e44b7923452b86d422292446b639fc152f9 | a10ef4c62fa1a644d9112513d211af23d7a6bdb8 | refs/heads/master | 2021-03-12T20:00:48.256762 | 2015-06-05T07:57:21 | 2015-06-05T07:57:21 | 22,676,846 | 0 | 0 | null | null | null | null | WINDOWS-1252 | R | false | false | 1,818 | r | skyline_graph_v2.r | # INTRODUCTION DONNEES ATTRIBUTAIRES SQL
library (RODBC)
library (plotrix)
library (reshape)
ch = odbcConnect("PostgreSQL35W",uid="hug",pwd="hug")
sql=
"
/*
select a.gid, nom_station, azimut, angle from stations.station_meteo_skyline a
join stations.geo_station_meteofrance b on a.gid=b.gid
*/
select gid, gid nom... |
5aed371bfdc577047fe6f9e089dd9bf7ec6c12b1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/aspace/examples/CF.Rd.R | 30ac81d4f91d956af6b1973d6d980a0ae80d6c7c | [] | 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 | 367 | r | CF.Rd.R | library(aspace)
### Name: CF
### Title: Central Feature (CF) Calculator
### Aliases: CF
### Keywords: arith
### ** Examples
## CF example
CF(id=1, filename="CF_Output.txt", points=activities)
## CF to shapefile example (exclude the comments below to run script)
## shp <- convert.to.shapefile(cfloc,cfatt,"id",5)
##... |
fa2e76a13d92c900353ad2f7f8743b36fcdc058b | afa0f52844fd96b0a783e31901e6d1ec03ff54e9 | /Rfuns/ExpCompareBetweenGroup.R | a8f8229a5cbe7665be61b23807038f18b7fff5e4 | [] | no_license | juwonk/jwbi | daf8d6317646019a94ccb20fd8ff5928d3937637 | 0497028c37a8fa6549ae103ad92fbbd5d48362b0 | refs/heads/master | 2020-04-11T20:57:57.350665 | 2018-12-17T07:30:07 | 2018-12-17T07:30:07 | 162,090,017 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,881 | r | ExpCompareBetweenGroup.R | ####################################################
###### Expression compare between group ############
####################################################
####################################################
###### Mission 1. KDM expression GBM vs LGG ########
####################################################
... |
a5b1af74ed46e1e81ce7a4ae1dfe7bea0f938c42 | e395de81cb996f9f82dbc98db8d4e8b46bcc0d18 | /ui.R | e26fe5d6bc829c39a18418efd728233beb676fae | [] | no_license | mhoban/tides | 3abe4dd2b3522247b045b0af8d198b51604bc440 | 2b77336a03db21fe2d739ca26b2a5ced401817d7 | refs/heads/master | 2022-12-27T18:37:28.283222 | 2020-10-13T03:22:00 | 2020-10-13T03:22:00 | 296,749,559 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,666 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(stringr)
library(tidyverse)
library(waiter)
library(lubridate)
librar... |
5c6f9735552c774891ced8f4ceb67c1e3650f59a | c57bc21130d865deea21bf10a59abd873f75b9f2 | /DailyDashboard/DailyStandup.R | 981d1201e46a164928583ba8f3514591f2dbb166 | [] | no_license | ygg/bl-centara | 88b1630016d4f0d5b1fd618b9308a2a67a60db5c | e3624982fc21221f103161abff2a138a09fb5c55 | refs/heads/master | 2021-01-13T16:54:12.044998 | 2017-01-22T12:25:42 | 2017-01-22T12:25:42 | 79,711,482 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,672 | r | DailyStandup.R |
library(shiny)
library(dplyr)
library(shinydashboard)
library(ggvis)
# kpi <- readRDS('../../AdHoc/Budget.rds')
kpi %>%
glimpse()
kpi_list <- c("UWC","NetGW","Bonus","NetEGW","APD","NDC","NVC","UDC","UDC","Wager","WD","Dep","TRTP")
month_list <- 1:12
ui <- dashboardPage(
dashboardHeader(title = "Track Daily KP... |
3d84c9fb91695fa81d821bf751446ee6529aa922 | 7cd151dc58a4aa414338b8fbadb465585ee198b0 | /plot4.R | e1a28caa2a05661d70f79f7461b0100d58722320 | [] | no_license | Jing666/ExData_Plotting1 | 8adfe1cd548a0bacb9cacedf6deffe71de6876f2 | 85d0c6a1a755287a0829afaf2955bb41ae93e00d | refs/heads/master | 2021-01-15T16:48:49.079961 | 2015-07-13T12:54:57 | 2015-07-13T12:54:57 | 38,987,608 | 0 | 0 | null | 2015-07-13T02:38:43 | 2015-07-13T02:38:43 | null | UTF-8 | R | false | false | 1,725 | r | plot4.R | ######################################################
# Exploratory data analysis class project 1
# chret 4
# July 2015
######################################################
# read text file
myfile <- read.table("c:/coursera/Exploratory data analysis/household_power_consumption.txt", header=T, sep=";", na.string="?... |
e9c090bc6e870e4007670fa4ac9fac352fb03c71 | 860598c2cb818a9abd51e858abe648ab761fed07 | /run_analysis.R | a3d6679fbe4921b6b276d7fa22b3327f05db1b4e | [] | no_license | sschanel/tidy-data | b2f53b35cf99f38392a957e5981429c3047ad828 | 61a50b1eb710145e8c18010021c9a28847ee0313 | refs/heads/master | 2016-09-08T01:54:25.903977 | 2015-04-26T23:07:16 | 2015-04-26T23:07:16 | 34,630,560 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,468 | r | run_analysis.R | library(plyr)
library(dplyr)
library(reshape2)
## cleanupName "cleans" a measurement name so it is more easily readable.
## For example:
## tBodyAcc-mean()-X => TimeBodyAccMeanX
cleanupName <- function(name) {
name <- gsub("^t", "Time", name)
name <- gsub("^f", "FFT", name)
name <- gsub("-std", "Std", ... |
6a2a738fefb0b4f65ababba557f977c08daec688 | 9951be18da40a04eaea834221b0078c673e01287 | /mac/BPPFormatUI.r | 8db22a5f8c93b4e9da362bec380740c3af6719ba | [] | no_license | MatthewCallis/bppformat | 6a5ad19f50314c14e23ea78abe66b3ad98651fc6 | 06122598ca27be82e7aa61d0c3015586ab595ba9 | refs/heads/master | 2021-01-19T07:56:48.865218 | 2013-05-02T22:49:14 | 2013-05-02T22:49:14 | 9,818,430 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 299 | r | BPPFormatUI.r | //-------------------------------------------------------------------------------
//
// File:
// BPPFormatUI.r
//
// Description:
// Dialog for the BPPFormat Mac project.
//
//-------------------------------------------------------------------------------
#include "Types.r"
// end BPPFormatUI.r |
699f593357d85359da498d6708a049a809efe5bf | 0b55af6f2fc71dbd11501e51db353fedbfbd2bb1 | /man/agent_sim.Rd | 369772be9994a0a931f04c391d615ec5361c41a0 | [] | no_license | brandmaier/agentSim | dab9c838b76846ed07e61a64dad99aaf32369207 | 2fe7708a1eb078ff204fd0fccc4959afd898c8bf | refs/heads/master | 2023-01-05T20:42:33.681368 | 2020-10-24T09:59:23 | 2020-10-24T09:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 748 | rd | agent_sim.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation.R
\name{agent_sim}
\alias{agent_sim}
\title{Set up an agentSim simulation}
\usage{
agent_sim(
agents = NULL,
time_total = NULL,
environment = list(),
referee = NULL
)
}
\arguments{
\item{agents}{}
\item{time_total}{Number ... |
720dfe3e29501d3f4d75a224e5071a4df5e76acd | f133eaaa60ae28cad49fcf4ad043c7584f84d0a7 | /benchmarkvalues.R | c910fa4b29679f0dade300839809b7674433b1eb | [] | no_license | 3841marklid/itusoneanalysis | 51967456dd3813998a9d690bc12836d45c7e4ea0 | 91058d2bf55badca2a6a8cd03f7c90f3312cacd1 | refs/heads/master | 2021-01-19T01:01:35.007280 | 2016-08-02T04:15:04 | 2016-08-02T04:15:04 | 64,668,121 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,240 | r | benchmarkvalues.R | ###this section is for calculating the ideal relative heart rate using Vo2
##worker1
age1 <- Vo2[1,"Age.Worker.1"] #this calls the age
absmaxhr1=209-.7*(age1) #maximum hr equation
rhr1=((Heat.vs.Hr$Worker.1.HR)/absmaxhr1)*100 #calculates relative heart rate index
vo2rhr1 <- data.frame(Relative.Heart.Rate=rhr1, Vo2... |
23248195ae6752dff3157e2fdeb07ca9ba5ed88b | 30ee5256f363954bcacf452ab94249ddf04b270e | /randomforest.r | 5005dcd4b7806eed5c8d4d5164e671397557014d | [] | no_license | tiborh/r | 70c45812347a65786c5bf95eccc7376f8caf7f72 | 8de2d56608b2e52faaf554f3cc955a456c58f57f | refs/heads/master | 2022-11-01T05:54:55.451584 | 2022-10-27T15:15:37 | 2022-10-27T15:15:37 | 36,147,838 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 652 | r | randomforest.r | #!/usr/bin/env Rscript
source("common.r")
## source:
## https://www.tutorialspoint.com/r/r_random_forest.htm
stop.if.not.installed(c("party","randomForest"))
print(str(readingSkills))
cat("\n1. Creating a forest:\n")
output.forest <- randomForest(nativeSpeaker ~ age + shoeSize + score,
... |
1d0fdbca7223ab814c8bf30533640330b2c49362 | e155ec2079871717911417d41c5f15afb559a2ea | /clase 26 de septiembre 2016, formatos de fechas.R | 01e875820eca2c5f46e64ab9988091dd09aa30d2 | [] | no_license | Moni105/Programacion_Actuarial_lll_OT16 | c433315850d4d8f6d04def9fe267adab7d68d896 | bd5b856669907aa002ef4f0c8344fdb3190177ed | refs/heads/master | 2020-12-25T14:33:18.084755 | 2016-12-05T02:44:13 | 2016-12-05T02:44:13 | 65,914,580 | 0 | 0 | null | null | null | null | ISO-8859-2 | R | false | false | 863 | r | clase 26 de septiembre 2016, formatos de fechas.R | hacer.potencia <- function(n){
potencia <- function(x){
x^n
}
potencia
}
cubica <- hacer.potencia(3)
cuadrada <- hacer.potencia(2)
cubica(3)
cuadrada(2)
#funciones que crean funciones
#entorno de la función
ls(environment(cubica))
get("n",environment(cubica))
ls(environment(cuadrada))
get("n",environment... |
f8b174781feee1df9b1388862019ee17e3a0f16e | f7c0693382b13c2ec3872b9342a5820c77f78778 | /man/mdl_courses.Rd | 42eace8c5104f27798c1ae528f7b1ffd663f066a | [
"MIT"
] | permissive | NAlcan/moodleR | 2542c32d259dc9d3f8b3729219fd42b7e8f6b162 | c505ffcd1c50a5f7e8e6ab02adb939ae65e521f7 | refs/heads/main | 2023-04-06T13:44:07.308081 | 2021-04-21T16:57:52 | 2021-04-21T16:57:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 494 | rd | mdl_courses.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mdl_courses.R
\name{mdl_courses}
\alias{mdl_courses}
\title{Get Courses}
\usage{
mdl_courses(con = mdl_get_connection())
}
\arguments{
\item{con}{a database connection object}
}
\value{
A dbplyr reference object.
}
\description{
Returns a ref... |
4bb166a6feae4b8dda3107b08e6cbf0c97e359c5 | 5227e8fb4619e3b4212613f3f779df8b7c3706b2 | /man/ploteQTL.Rd | 5a31094c3efa247302d5fe02d7236b0d0f1e907a | [] | no_license | phamasaur/qtlpvl | 5a5b930b4f12d67c7cc00840a63e9725da3dbc2b | 9c199f47c21a8deb5a50cda5c8b5423c49efa15c | refs/heads/master | 2023-04-19T05:30:01.716383 | 2015-08-26T05:32:19 | 2015-08-26T05:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 722 | rd | ploteQTL.Rd | % Generated by roxygen2 (4.1.1.9000): do not edit by hand
% Please edit documentation in R/ploteQTL.R
\name{ploteQTL}
\alias{ploteQTL}
\title{eQTL plot}
\usage{
ploteQTL(marker.info, probepos, phenonames, markers, chr1, pos1, main = "",
plot.chr = c(1:19, "X"), add = FALSE, col = "black")
}
\arguments{
\item{marker.i... |
90299af7c8f2d8f77e56afe51c9aece027835582 | 0cd9d5c94b659ba91d8e5e3a7b9f7538341e7a04 | /man/listAnnotations.Rd | c4ec6d15121d164ebcf8aed3edef2545634c948b | [] | no_license | Przemol/WB.WS259 | c9f5e11e999527773e1e939d1b1e4fb1cf3b614a | e7836f8f6762d3d9cb4b9d9fc145b142430511c4 | refs/heads/master | 2021-01-01T04:49:15.775477 | 2017-07-17T17:26:26 | 2017-07-17T17:26:26 | 97,256,528 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 254 | rd | listAnnotations.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_functions.R
\name{listAnnotations}
\alias{listAnnotations}
\title{listAnnotations}
\usage{
listAnnotations()
}
\value{
annotations table
}
\description{
listAnnotations
}
|
b3c4d8ace50f20b335fc254e76e5cfb99efd7b95 | 75e25e706517e28b2baf63c0c78e26daf883e924 | /ejemplo_mirt.R | 65eb18204f9aad49bb7737ecc6f0d96cfee0b618 | [] | no_license | Cabrotfe/prueba3 | 25ed09b4f153d2a5f02c50e05928d06e07ba66df | 02888b3fd915b68dd4ff7f4bdf7462c8d67f90b5 | refs/heads/master | 2023-02-01T04:48:04.606220 | 2020-12-16T02:33:03 | 2020-12-16T02:33:03 | 321,827,422 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,342 | r | ejemplo_mirt.R |
# Apertura de paquetes ----------------------------------------------------
pacman::p_load(tidyverse, mirt, stringr)
# Creación de datos -------------------------------------------------------
datos= simdata(a=runif(10,0.8,1.2), d=rnorm(10,0,1), itemtype = "2PL", N =1000)
datos = data.frame(datos)
# Modelamie... |
d0e6e90f813e5337d26de06aacc65e7f72e28881 | 278477474fe4117f01bcf5ad101225e49f37e72d | /Engine/AnalysisResults/Tests/enrich_distance_timezone.R | 8cf43dd0e0538798ae143f527034898c60ef0a9f | [] | no_license | esteevanderwalt/TwitterAnalysis | ff967c432a88e84f0df502f4bfa9897f19cdd88b | 2858a30f355cde4d0ec0d3e2cea52378415bf9a8 | refs/heads/master | 2020-09-22T12:04:31.670706 | 2019-05-07T15:48:37 | 2019-05-07T15:48:37 | 67,336,784 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,110 | r | enrich_distance_timezone.R | suppressMessages(library(RODBC))
options(scipen=999)
#LINUX
myconn<-odbcConnect("SAPHANA", uid="SYSTEM", pwd="oEqm66jccx", believeNRows=FALSE, rows_at_time=1, DBMSencoding="UTF-8")
# Convert degrees to radians
deg2rad <- function(deg) return(deg*pi/180)
# Calculates the geodesic distance between two points specifi... |
93564931aad3e6364641868cbf3f4f54184db75d | aae46958c9b9ca7b33fd2e530f8cfc713d546560 | /community/gbif/gbif_data.R | 27e3bdec1d439346c6b79316a5927c4390f58bc6 | [] | no_license | EnquistLab/PFTC4_Svalbard | a38f155c5f905af74b7e265ace7dc256eaa4e2f9 | f372df13dc8002f347e2fe8810c4034ed02f06fc | refs/heads/master | 2022-02-16T09:20:34.170459 | 2022-01-28T14:14:50 | 2022-01-28T14:14:50 | 130,364,868 | 2 | 13 | null | 2021-05-19T11:11:34 | 2018-04-20T13:19:53 | HTML | UTF-8 | R | false | false | 1,274 | r | gbif_data.R | library("rgbif")
library("tidyverse")
library("mapdata")
name_backbone("Sphagnum warnstorfii")
if(!exists("gbif/sj.rdata")){
load("gbif/sj.rdata")
}else{#slow
sj <- occ_search(
taxonKey = 7707728,
hasCoordinate = TRUE,
country = "SJ",
limit = 100000,
decimalLatitude = "74,82",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.