This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setwd("/Volumes/Daten/FelixLindemann/Documents/git") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo <- | |
function(value) { | |
return (3+value) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get.ReliabilitätsSample<-function(n , min , max , seed ){ | |
set.seed(seed) # Wähle eine bestimmte Zufallszahlenliste aus --> Für Reproduzierbarkeit | |
x<-sample(min:max, n) # Ziehe eine Stichproben von n Elementen | |
return (x[order(x)]) # gib eine sortierte Liste zurück | |
} | |
n <- 30 | |
min <- 1 | |
max <- 576 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on formula by | |
# Cochran, W. G. 1963. Sampling Techniques, 2nd Ed., New York: John Wiley and Sons, Inc. | |
# see also http://statistikberatung.blogspot.de/2008/03/samplesizer-kostenloses-tool-zur.html | |
get.SampleSize <- function(N, Z, p, e){ | |
n <- ( | |
Z^2 * p * (1-p) / e^2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BOARD) | |
gpios = { | |
1: "3.3 v", | |
2: "5.5 v", | |
3: "GPIO 0 (SDA)", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT COLUMN_NAME | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_SCHEMA='TABLE_SCHEMA' | |
AND TABLE_NAME='TABLE_NAME'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data.nst <- dbGetQuery(con, "select * from NST2007Abteilungen") | |
data.nst[,1:3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(RMySQL) | |
dbhost<-"192.168.0.104" | |
dbsuer<-"windowsparallels" | |
dbpass<-"" | |
dbcatalog<-"db" | |
con <-dbConnect(MySQL(), | |
host=dbhost, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install.packages('RMySQL',type='source') | |
library(RMySQL) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Compare Database | |
Public Sub createMySqlDump2() | |
Dim Filename As String | |
Filename = "Y:\mypath\myfilePrefix-" ' Tablename.sql will be attached | |
createMySqlDump Filename | |
End Sub |