Questions tagged [data-management]
312 questions
0
votes
1 answer
Stata Deleting Multiple Observations
I have the following data matrix containing ideology scores in a customized dataset:
year state cdnum party name dwnom1
1946 23 10 200 WOODRUFF 0.43
1946 23 11 200 BRADLEY F. 0.534
1946 23…
Jay
0
votes
1 answer
Convert variable value from two variables into a separate variable value
I have the following data matrix containing Poole dw-nominate scores:
con statenm party name dwnom1
80 USA 100 TRUMAN -.276
80 ALABAMA 100 BOYKIN F -.026
I was wondering if there was a way in Stata to turn the USA…

Joe Maj
- 1
- 3
0
votes
1 answer
Stata keeping even years
If I have data for every year of 1932 to 2012, how do I keep only the even number years from 1946 to 2012 in Stata? I've tried the following:
keep if year == 1946(2)2012
But it doesn't seem to help.

Joe Maj
- 1
- 3
0
votes
1 answer
Dealing with Data: plot giving a condition
I have a data frame defined by “Data” and two subsets of this data set (scale1, scale2). I want to plot this scales by gender and then by country, without having to define scales every time. I know that is possible in R, and may be a newbie…

Ariadna Angulo
- 93
- 1
- 8
0
votes
1 answer
Manage MultiType objects under a single structure
I'm trying a datamanager framework in C++ which would periodically (when Manager::checkout() is called) save the current state. This would be the base of a system allowing application to restart after a system error.
The idea would be to have a…

Amxx
- 3,020
- 2
- 24
- 45
0
votes
1 answer
Work around for creating object from database just to access a single property of the object
I'm trying to optimize a small patch of code that's connecting to our servers over and over again. To start off, here's the patch of code
Dim sale as Sale()
With sale
If .CustomerID > 0 Then
.CustomerName =…

Chris Hobbs
- 745
- 2
- 9
- 27
0
votes
4 answers
Moving between view controllers Objective-C
I was wondering if you could help me. I am developing an app where I have five UIView Controllers, each with fields to be completed and filled in. At the bottom of the page I have created a bottom bar with five buttons, one for each controller.…

lwm
- 15
- 5
0
votes
0 answers
Cut connection time by optimizing code for speed
I'm trying to optimize a small patch of code that's connecting to our servers over and over again. To start off, here's the patch of code
Dim sale as Sale()
With sale
If .CustomerID > 0 Then
.CustomerName =…

Chris Hobbs
- 745
- 2
- 9
- 27
0
votes
2 answers
select multiple rows with unique pairs, and export a random selection, for all possible pairs
I am working with a very large dataset, and have a unique problem I haven't encountered before. This is radar data, paired with GPS points. through the radar processing, I interpolated between data points to smooth the radar image for selecting…

Scandela1986
- 3
- 1
0
votes
1 answer
How to restore a navigationcontroller path when relaunching the app?
I am building an app based on a navigation controller.
I would like that the user has the ability when he relaunches the app to see the last screen he saw when he quit the app.
It's exactly like in the mail app, when you push "home" while composing…

Eric
- 3
- 1
0
votes
2 answers
Data operation in memory
I know it is always better to operate data in memory instead of file. Currently, I am putting all incoming data in a static ArrayList, and when that ArrayList has more than 80 entries, my program will save the contents of this ArrayList to a file…
user3555216
0
votes
1 answer
Replace second instance a character
I have a file containing several thousand lines, which look something like this:
dm 10:124614405:G_GTR I .9186 .9829 -0.037 0.964 0.219 0.0283 0.8665 0.0282 0.8665 358 440
dm 10:124685661:TCAAAR D …

mfk534
- 719
- 1
- 9
- 21
0
votes
1 answer
R coding for selecting subset with criterion "if any of the following condition is true, then select row x"
I'm choosing observations to be included in a subset of a larger data set
R code:
var1 <- c(1,0,0,3,1)
var2 <- c(0,0,0,0,0)
var3 <- c(1,1,0,0,0)
df <- cbind(var1, var2, var3)
How could I select the subset of the data that contains only…

HueSX
- 145
- 5
0
votes
0 answers
HDF5 with database best practices
I am attempting to set up a system to organize data contained across a large number of HDF5 files. From what I've read, it seems that the easiest way to do this that would suit my needs would be to create an SQLite database containing the paths to…

Hinrik Ingolfsson
- 11
- 2
0
votes
2 answers
Should I use an array or a database - and where to initialize it?
I'm currently working with the Mapbox SDK for iOS and got a question about general data management.
I got a table with coordinates and some other attributes and the table has about 600 to 700 rows. Now I was wondering what would be the best way to…

zeekrey
- 391
- 6
- 16