Questions tagged [replicate]
280 questions
0
votes
1 answer
pouchDB to iriscouch syncing issue with remove
I have followed the tutorial http://pouchdb.com/getting-started.html to the letter and the addition of new todos works great, so does the editing of todos but the deleting (remove) doesn't work.
i.e. In browser1 I add a todo and in browser2 it is…

Dominic
- 351
- 4
- 18
0
votes
1 answer
Laravel 4: replicate to table
how to clone table row from one table to another i found way to make a clone but dont know how to insert it in other table
I have Data class and Product class and I want to clone from Data to Product one row only
public function getClone($id) {
…

NeoNe
- 1,429
- 1
- 11
- 12
0
votes
2 answers
How to bootstrap a function after taking a randomly drawn sample without replacement
I have some code that allows me to take two randomly drawn samples from a dataset, apply a function and repeat the procedure a certain number of times (see below code from associated question: How to bootstrap a function with replacement and return…

jjulip
- 1,093
- 4
- 16
- 24
0
votes
2 answers
Quick way to space fill column 256 chars SQL-Server 2012
So i have a file I'm creating using SQL Server 2012.
Many of the columns are optional or unused, and in place of the characters that would normally be there we are asked to zero-fill numeric columns, and space-fill alphanumeric columns.
Now I have a…

Hituptony
- 2,740
- 3
- 22
- 44
0
votes
2 answers
Replicate a sequence when a condition is met
To generate the output below, I am using the following code:
safe.ifelse <- function(cond, yes, no) structure(ifelse(cond, yes, no), class = class(yes))
library(lubridate)
df <- data.frame(i_date=mdy("9/1/2011") + months(seq(0,31)),…

user3743201
- 53
- 1
- 6
0
votes
1 answer
How to bootstrap a function with replacement and return the output
I am trying to take two randomly drawn subsamples from a data frame, extract the means of a column in the subsamples and calculate the difference between means. The below function and use of replicate within do.call should work as far as I can tell,…

jjulip
- 1,093
- 4
- 16
- 24
0
votes
3 answers
Pull Data from PHP site - Replicate database
There's a PHP based website that I'd like to replicate the data from.
The problem is that the website's data is only accessible via a company name search page - www.example.com/companynamesearch.php
The results are displayed under the same URL, so…

user2565123
- 293
- 1
- 5
- 12
0
votes
2 answers
Duplicate matrix columns and put next to original in R
If I have a matrix say:
> mat1=matrix(1:12, ncol=3)
> mat1
[,1] [,2] [,3]
[1,] 1 5 9
[2,] 2 6 10
[3,] 3 7 11
[4,] 4 8 12
What do I do to replicate each column and put it next to the original so it looks like…

Edward Armstrong
- 329
- 2
- 3
- 12
0
votes
2 answers
How do I replicate values based on previous value
How do I replicate one value based on a previous value?
e.g
My dataset
name <- c("sergio",NA,NA,NA,NA,"John", NA,NA,NA,NA,NA,NA)
number <-c(1234,NA,NA,NA,NA,5678, NA,NA,NA,NA,NA,NA)
mydata <- cbind(as.data.frame(name),as.data.frame(number))
New…

shasj
- 85
- 1
- 6
0
votes
1 answer
How many Replicate set should we create in MongoDB and ElasticSearch?
I'm working on integrating ElasticSearch with my symfony2 application using MongoDB doctrine.
In this tutorial it says that I need to convert my standalone instance into a Replicate set
Basically the concept is as follow: the application…

Aysennoussi
- 3,720
- 3
- 36
- 60
0
votes
2 answers
Can I import SAP tables that were exported by SE16?
I have exported the contents of a table with transaction SE16, by selecting all the entries and going selecting Download, unconverted.
I'd like to import these entries into another system (where the same table exists and is active).
Furthermore,…

vlad-ardelean
- 7,480
- 15
- 80
- 124
0
votes
2 answers
How can I replicate a table from SQL 2000 to SQL 2008?
I have a table on a SQL Server 2000 database, which I want copied verbatim to a 2008 server.
I tried to do it manually with INSERT/UPDATE triggers, but this technique runs in a distributed transaction, which does not work because I apparently have…

BeemerGuy
- 8,139
- 2
- 35
- 46
0
votes
1 answer
Comparing and replicating/merging data for similar rows in Excel
I've got a really specific and tricky situation in excel. Basically I've been tasked to take 10 different iterations of outlook contact backups and merge them together. What i have at the moment looks something like this but with 90 columns and…

Grant
- 1
0
votes
1 answer
generate increasing sequence in R
Possible Duplicate:
Sequence of Repeated Values in R
I'm trying to generate an increasing sequence in R, with a total length of 5952. I have been writing it out by hand but I suspect there must be an easier way to do it. Here is the example:
v<-…

hubert_farnsworth
- 797
- 2
- 9
- 21
0
votes
2 answers
Replicate Tab Character in C#
After searching the web and reading docs on MSDN, I couldn't find any examples of how to replicate a tab character in C#. I was going to post a question here when I finally figured it out...
I'm sure it is obvious to those fluent in C#, but there…

James L.
- 9,384
- 5
- 38
- 77