search for: aa_2002

Displaying 8 results from an estimated 8 matches for "aa_2002".

Did you mean: aa_2000
2017 Dec 04
3
Dynamic reference, right-hand side of function
...nced Stata-user, I guess part of my problem is that my mindset (and probably my language as well) is wrong. Anyway, I have what I guess is a rather simple problem, that I now without success spent days trying to solve. I have a bunch of datasets imported from Stata that is labelled aa_2000 aa_2001 aa_2002, etc. Each dataset is imported as a matrix, and consists of one column only. The columns consists of integer numbers. I need to convert the data to vectors, which I found several ways to do. I use, for example: aa_2000 <- as.numeric(aa_2000[,1]) However, when trying to automate the task, so I do...
2017 Dec 04
0
Dynamic reference, right-hand side of function
...-user, I guess part of my problem is that my mindset (and probably my language as well) is wrong. Anyway, I have what I guess is a rather simple problem, that I now without success spent days trying to solve. > > I have a bunch of datasets imported from Stata that is labelled aa_2000 aa_2001 aa_2002, etc. Each dataset is imported as a matrix, and consists of one column only. The columns consists of integer numbers. I need to convert the data to vectors, which I found several ways to do. I use, for example: > aa_2000 <- as.numeric(aa_2000[,1]) > However, when trying to automate the tas...
2017 Dec 04
3
Dynamic reference, right-hand side of function
...-user, I guess part of my problem is that my mindset (and probably my language as well) is wrong. Anyway, I have what I guess is a rather simple problem, that I now without success spent days trying to solve. > > I have a bunch of datasets imported from Stata that is labelled aa_2000 aa_2001 aa_2002, etc. Each dataset is imported as a matrix, and consists of one column only. The columns consists of integer numbers. I need to convert the data to vectors, which I found several ways to do. I use, for example: > aa_2000 <- as.numeric(aa_2000[,1]) > However, when trying to automate the tas...
2017 Dec 04
0
Dynamic reference, right-hand side of function
...guess part of my problem is that my mindset (and probably my language as well) is wrong. Anyway, I have what I guess is a rather simple problem, that I now without success spent days trying to solve. >> >> I have a bunch of datasets imported from Stata that is labelled aa_2000 aa_2001 aa_2002, etc. Each dataset is imported as a matrix, and consists of one column only. The columns consists of integer numbers. I need to convert the data to vectors, which I found several ways to do. I use, for example: >> aa_2000 <- as.numeric(aa_2000[,1]) >> However, when trying to automate...
2017 Dec 04
2
Dynamic reference, right-hand side of function
...guess part of my problem is that my mindset (and probably my language as well) is wrong. Anyway, I have what I guess is a rather simple problem, that I now without success spent days trying to solve. >> >> I have a bunch of datasets imported from Stata that is labelled aa_2000 aa_2001 aa_2002, etc. Each dataset is imported as a matrix, and consists of one column only. The columns consists of integer numbers. I need to convert the data to vectors, which I found several ways to do. I use, for example: >> aa_2000 <- as.numeric(aa_2000[,1]) >> However, when trying to automate...
2017 Dec 05
3
Dynamic reference, right-hand side of function
...my strange question, I sort it out with an example: I had a number of matrices, named in a consecutive manner: aa_2000 <- as.matrix(read.csv(text="1,0,1,1,0,0,0,0,0,0,1,0,0", header=FALSE)) aa_2001 <- as.matrix(read.csv( text="0,0,0,1,0,1,1,0,0,0,0,1,0,0", header=FALSE)) aa_2002 <- as.matrix(read.csv( text="1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0", header=FALSE)) I needed them to be vectors, and they weren't: is.vector(aa_2000) I finally solved it with this loop (well, I admit I shaped up the last line thanks to William Dunlap): for (year in 2000:2002){ varnam...
2017 Dec 04
0
Dynamic reference, right-hand side of function
...part of my problem is that my mindset (and probably my language as well) is wrong. Anyway, I have what I guess is a rather simple problem, that I now without success spent days trying to solve. >>> >>> I have a bunch of datasets imported from Stata that is labelled aa_2000 aa_2001 aa_2002, etc. Each dataset is imported as a matrix, and consists of one column only. The columns consists of integer numbers. I need to convert the data to vectors, which I found several ways to do. I use, for example: >>> aa_2000 <- as.numeric(aa_2000[,1]) >>> However, when trying to...
2017 Dec 05
0
Dynamic reference, right-hand side of function
...h an example: > > I had a number of matrices, named in a consecutive manner: > > aa_2000 <- as.matrix(read.csv(text="1,0,1,1,0,0,0,0,0,0,1,0,0", > header=FALSE)) > aa_2001 <- as.matrix(read.csv( text="0,0,0,1,0,1,1,0,0,0,0,1,0,0", > header=FALSE)) > aa_2002 <- as.matrix(read.csv( text="1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0", > header=FALSE)) > > I needed them to be vectors, and they weren't: > > is.vector(aa_2000) > > I finally solved it with this loop (well, I admit I shaped up the last > line thanks to William Dunl...