Questions tagged [replicate]
280 questions
0
votes
1 answer
Replicate and transpose data
I've been attempting to reshape my data and I've come to a block in how to accomplish this. I have rather large data sets but here's an example of a single row:
TJ25_TAD
TJ_num Date Bin 1 Bin2 Bin3
TJ25 4/18/2006…

Ally D
- 165
- 11
0
votes
0 answers
Linking two factors (Population and Site) without multiple measurments in lmer?
I look at the size of fish (same species) in ten different sites and different ages. For each individual I know size at age 1,2,3,4 etc. -> I have one value for one individual at certain age (no multiple measurments for a specific age!). [From the…

FischAnLand
- 1
- 1
0
votes
1 answer
How to repeat a block of code to sample 2 values in r?
(I'm new to this so now editing my question as a reproducible example).
I've reviewed bootstrapping,loop and replicate functions and can't figure out how to repeat a series of steps (not just a single function) in R and store the result in…

EMC
- 3
- 1
- 4
0
votes
3 answers
Make a matrix of two variables each row from replicating binomial distribution proportion
So... I have some issue...
Using R, I'm trying to simulate a Binomial distribution with n=10 and p=0.6, with size 1, and then, getting how many 1s and 0s I get, and this simulation should be repeated 200 times, so as to take a matrix of 200 rows and…

Emilio Mármol Sánchez
- 667
- 1
- 6
- 17
0
votes
1 answer
Replicate event pinch from a div to openlayer map
Good afternoon,
I have a div over the ol3 map with one list of marker. When the user clic on a marker, the center's map is updated with the coordinate of this marker.
I tried that the user have the possibility to zoom on the map when he "pinch" on…

Slayes
- 395
- 1
- 5
- 15
0
votes
1 answer
R, how could I get same results using function "for" to get the result from "replicate"?
I would like to have a same result of this code using replicate function,
set.seed(1)
n <- 100
sides <- 6
p <- 1/sides
zs <- replicate(10000,{
x <- sample(1:sides,n,replace=TRUE)
(mean(x==6) - p) / sqrt(p*(1-p)/n)
})
by using for function. Code…

Sung-Hun Yun
- 13
- 2
0
votes
4 answers
replicate() method not found in laravel 5.2
I am trying to replicate table row and its relationship.
but I am getting error message that replicate() does not exist,
I have seen on stackoverflow that many have used replicate() without any issue, but i am getting this error
my controller code…

dollar
- 483
- 3
- 11
- 27
0
votes
1 answer
I have two MySQL data base mysql
I have two MySQL databases that replicate such as master master:
mysql1 192.168.10.244
mysql2 192.168.10.245
My Joomla is on IP 192.168.10.243.
What can I do connected Joomla to the database?
OS: CentOS 6.8

Miladn
- 11
- 1
0
votes
1 answer
SQL - stored procedure, pass field and table name parameters on execute
I created a SQL procedure that replaces all values in a field with Xs the same length as the original values.
Update Table
Set Name = Replicate('x', Len(Name))
I am trying to alter this procedure so that I can just pass a table and field name…

Cat4Storm
- 3
- 1
- 3
0
votes
1 answer
SQL - replace all column values with 'X' the same length
I am trying to create a stored procedure that replaces all values in one column with Xs the same length as the original values. Here is what I have so far:
SELECT REPLICATE('x', LEN(Name))
This code shows the output with Xs but it does not make…

Cat4Storm
- 3
- 1
- 3
0
votes
1 answer
R generating the same random numbers at two places
I have this code and I want sample(1:3650, 365, replace=T) to generate the same numbers at both instances, but different values for each replication. So that for each replication i generate 365 random values and those values are used for both…

Erik Lundberg
- 11
- 5
0
votes
2 answers
Replace parts of string in sqlite3
I want to replace parts information in my strings.
e.g. From +1-2024561111 To +1-202***1111
I found a query REPLICATE which could achieve what I want. However, it seems not available in sqlite3.
And the REPLACE in sqlite can only replace some…

WenT
- 157
- 8
0
votes
1 answer
Have a SVN checkout location connected to Codeplex and propagate updates to another develpment location connected to another SVN repository
I would like to checkout a read only SVN projects (e.g. from Codeplex) to a folder on my local disk, open the solution (let's say I am getting Dotnetnuke and open it's solution, add some projects to the solution and possibly changing some files,…

Rad
- 933
- 1
- 15
- 32
0
votes
1 answer
How to replicate mysql from src host?
Situation:
MySQL server "Src" is behind a router. So "Src" has no public address.
How could I replicate "Src" to MySQL server "Dst" who has public address.
Maybe there are some agent tools who act as a agent run on "Src" host
will read update from…

tryer3000
- 829
- 10
- 14
0
votes
1 answer
Replication CouchDB Error & Query to remote database
I am trying to replicate a local database in couchDB to a remote db via futon. Following the doc, I don't know what to put for remote db. What is it exactly? How can I get it? Anyway I'm using.
curl - POST /_replicate HTTP/1.…

Bryn
- 257
- 4
- 16