search for: 1951

Displaying 20 results from an estimated 173 matches for "1951".

Did you mean: 191
2013 Apr 08
2
How can I extract part of the data in a panel dataset?
Taking the Grunfeld data, which is built-in in R, for example, (1)How can I construct a dataset (or dataframe) that consists of the data of all firms in 1951? (2)How can I calculate the average capital in each form over the period 1951-1954? What I can imagine is to categorize the data by firm, and then select the data between 1951 and 1954 for each firm, but how can I do it? Thanks, Miao Grunfeld data: invest value capital firm year 317.6 3078.5...
2011 Jul 22
1
Mean and Timeseries modelling
Hello, i have following problem and I hope you can help me a little bit My dataframe looks like: df a m d typ value 1950 1 1 5 -4.1 1950 1 2 9 2.7 1950 1 3 3 -1.3 1950 1 4 5 -1.9 1950 1 5 2 0.2 1950 1 6 8 0.5 1951 1 1 4 1.3 .... It consists by daily observations from 1950- 2009. Now, I get with.... for (i in df$V5) neu <- tapply(df[,5],list(df$V4,df$V1),mean) the yearly means of the types (1-18) for every year. The new df looks like: new typ 1950 1951 1952 1953...
2009 Jan 23
2
Dates in Common
...two collections of dates and I want to figure out what dates they have in common. This is not giving me what I want (I don't know what it is giving me). What is the best way to do this? Tom > data1 [1] "1948-02-24 EST" "1949-04-12 EST" "1950-05-29 EDT" "1951-05-21 EDT" [5] "1951-12-20 EST" "1953-01-22 EST" "1955-02-28 EST" "1956-03-08 EST" [9] "1957-03-22 EST" "1958-02-07 EST" > data2 [1] "1948-02-24 EST" "1949-04-12 EST" "1950-05-29 EDT" "1951-05-...
2011 Nov 18
4
[Bug 1951] New: Add home directory facility for chrooted environments
https://bugzilla.mindrot.org/show_bug.cgi?id=1951 Bug #: 1951 Summary: Add home directory facility for chrooted environments Classification: Unclassified Product: Portable OpenSSH Version: -current Platform: All OS/Version: All Status: NEW Severity: enhancem...
2002 Jun 14
1
data.frame - transform
Hi there, I have a data.frame (pwt6) which I would like to transform: country year gdp MEX 1950 2 MEX 1951 5 BOL 1950 4 BOL 1951 12 ITA 1950 45 ITA 1951 2 This should be the result: year MEX.gdp BOL.gdp ITA.gdp 1950 2 4 45 1951 5 12 2 Right now I have this code (better - no code): country.label<-names(table(pwt6$country)) result<-data.frame(year=NULL) for(i in country.label) ? Thanks f...
2007 Dec 06
3
using "eval(parse(text)) " , gsub(pattern, replacement, x) , to process "code" within a loop/custom function
...in advance for any assistance ... I truly appreciate your expertise. I searched help and could not figure this out, and think you can probably offer some helpful tips. I apologize if I missed something, which I'm sure I probably did. I have data for many "samples". (e.g. 1950, 1951, 1952, etc.) For each "sample", I have many data-frames. (e.g. temp.1952, births.1952, gdp.1952, etc.) (Because the data is rather "large" (and for other reasons), I have chosen to store the data as individual files, as opposed to a list of data frames.) I wish to wr...
2005 Mar 26
1
na.omit error message
If I create a bivariate ts series with 3 time points and run na.omit on it expecting it to reduce it to a one point ts series instead I get the following error messasge: R> hh <- ts(matrix(c(NA,1:4,NA),3), start = c(1951,8), freq=12) R> hh Series 1 Series 2 Aug 1951 NA 3 Sep 1951 1 4 Oct 1951 2 NA R> na.omit(hh) Error in "tsp<-"(`*tmp*`, value = c(1951.66666666667, 1951.66666666667, : invalid time series parameters specified If I repla...
2008 Oct 14
6
Doing a Task Without Using a For Loop
...ar==data1$Year[i] & data1$ID==data1$ID[i],1]) } This seems to work but is horribly slow (some files I am working with have over 500,000 lines). Can anyone suggest a faster way of doing this, perhaps a way that does not use a for loop? Thanks. Tom ID Year NinYear 209 1971 0 209 1971 0 213 1951 0 213 1951 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1953 0 213 1954 0 213 1954 0 213 1954 0 213 1954 0 213 1954 0 213 1954 0 213 1954 0 213 1954 0 213 1954 0 213 1954 0 213 1954 0...
2012 Dec 17
1
subset handling
...1950 3 0.160000004336 FA 1950 4 0.330666675719 FA 1950 5 4.509354847102 FA 1950 6 3.402333338485 FA 1950 7 1.257419359868 FA 1950 8 1.1941935511251 FA 1950 9 1.3753333312634 FA 1950 10 0.7774193514017 FA 1950 11 0.3490000015400 FA 1950 12 0.14903226217 FA 1951 1 0.165161291600 FA 1951 2 0.179285712983 FA 1951 3 0.208387104366 FA 1951 4 0.930000005749 FA 1951 5 3.202903237132 FA 1951 6 8.050000008515 FA 1951 7 4.765806459898 FA 1951 8 2.6587096811281 FA 1951 9 1.3880000012664 FA 1951 10 0.7700000014047 FA 1951...
2012 Sep 13
1
Parsing "back" to API strcuture
...ot;event_2_arm_1\",\"John\",\"2012-09-02\",\"abc\",\"123\",1\n\"01\",\"event_3_arm_1\",\"John\",\"2012-09-10\",\"\",\"\",2\n\"02\",\"event_1_arm_1\",\"Mary\",\"1951-09-10\",\"def\",\"456\",2\n\"02\",\"event_2_arm_1\",\"Mary\",\"1978-09-12\",\"\",\"\",2\n", "`Content-Type`" = structure(c("text/html", "utf-8"), .Names = c("", "ch...
2009 Mar 23
2
Looping of read.table and assignment
Dear all, I am trying to read in and assign data from 50 tables in an automated fashion. I have the following code, which I created with the help of textbooks and the internet, but it only seems to read in the final data file over and over again. For example, when I type:> table_1951 I get the same values in the table as when I type> table_2000 despite the values in the source tables being different: year <- 1951:2000 filelist <- paste("C:\\Documents and Settings\\Data\\table_",year,".txt", sep="") filelist # Code seems to operate succ...
2012 Jul 02
3
enquiry
hi, i am new to using r .so if you can pls tell me how to read "1951-52" ,"1952-52" date format in r [[alternative HTML version deleted]]
2008 Nov 04
1
perform Kruskal-Wallis test without using the built-in command in R
...eb 1950 80.300000 603 Mar 1950 16.500000 604 Apr 1950 62.000000 605 May 1950 43.700000 606 Jun 1950 47.000000 607 Jul 1950 80.300000 608 Aug 1950 59.200000 609 Sep 1950 62.200000 610 Oct 1950 14.500000 611 Nov 1950 104.600000 612 Dec 1950 40.100000 613 Jan 1951 77.000000 614 Feb 1951 127.000000 615 Mar 1951 73.000000 616 Apr 1951 59.000000 617 May 1951 51.000000 618 Jun 1951 24.000000 619 Jul 1951 25.000000 620 Aug 1951 85.000000 621 Sep 1951 53.000000 622 Oct 1951 21.000000 623 Nov 1951 134.000000 624 Dec 1951 3...
2009 Dec 02
1
polygon graph
...rk. I attach the two files. Thanks in advance for all. -------------- next part -------------- 31/03/1948 12.9 30/06/1948 24.9 30/09/1948 45.6 31/12/1948 24.2 31/03/1949 21.1 30/06/1949 -21.1 30/09/1949 -20.5 31/12/1949 -21.6 31/03/1950 23.8 30/06/1950 27.4 30/09/1950 10.4 31/12/1950 13.4 31/03/1951 10.3 30/06/1951 28.9 30/09/1951 26.8 31/12/1951 25.2 31/03/1952 24.9 30/06/1952 23.3 30/09/1952 22 31/12/1952 25.2 31/03/1953 26.1 30/06/1953 26.7 30/09/1953 25.4 31/12/1953 0.4 31/03/1954 -21.9 30/06/1954 -22.5 30/09/1954 -02.8 31/12/1954 22.8 -------------- next part -------------- An embedded an...
2010 Jan 11
3
interpolation
Dear R-users, I have a complex line by xy-values (ordered by z). And I would like to get interpolated y-values on the positions of x = 0:600. How do I get the correct points? x=c(790,790,790,790,790,786,783,778,778,766,763,761,761,761,715,628,521,350,160,134,134,129,108,101,93,111,161,249,288,243,139,45,7)
2009 Mar 25
4
Manual sort in a for loop
...re simply ordered by user choice (as shown by the row numbers in the code). I have been able to carry out each re-arrangement without the use of the 'for' loop, but cannot seem to successfully execute the statements when incorporated into the loop. The code I have is as follows: table_year=1951 for (i in (paste("arunoff_",year,"_temp",sep=""))) { assign(paste("arunoff_",table_year, sep=""),paste("arunoff_",table_year,"_temp")[c(10,7,9,5,4,12,1,3,2,8,11,6),]) table_year = table_year+1 } Th...
2005 Jun 14
2
Plotting rows (or columns) from a matrix in different graphs, not using "par"
Dear R-users, I would like to ask whether it's possible (for sure it would be), to plot each rows (or columns) in different graphs and in the same figure region without using the function "par" and then struggling around with "axes" and labels etc. Luckily, I would always have "rows + columns = even number" and the same "ylim". The next one could be a
2004 May 21
6
VoicePulse SIP
...ut sound is horrible. Regards, Lars... -- Lars Boegild Thomsen Technical Director JustIT Sdn. Bhd. Cell Phone (MY): +60 (16) 323 1999 ICQ: 6478559 Yahoo Chat: lars_boegild_thomsen@yahoo.com MSN Chat: lars_boegild_thomsen@hotmail.com http://www.justit.ws Phone: +1 (360) 515 3551 (US) +45 8692 1951 (DK) +60 (3) 2057 2646 (MY) Fax : +60 (3) 2057 2647 (MY)
2007 Jul 18
2
Subsetting Enigma: More rows after dataframe[-list,]?
...693 701 724 [121] 739 763 771 836 848 859 888 900 902 919 939 972 979 989 1000 [136] 1002 1015 1020 1026 1029 1032 1055 1060 1073 1088 1104 1117 1124 1130 1135 [151] 1144 1221 1225 1249 1251 1257 1376 1384 1386 1453 1487 1529 1532 1534 1605 [166] 1624 1633 1646 1648 1702 1787 1948 1951 > length(i.delete) [1] 173 > nrow(frame) [1] 1975 > nrow(frame[-i.delete,]) [1] 1802
2007 May 21
0
Is this a bug in cv.lm(DAAG) ?
...10 19 X1 X2 X3 X4 X5 X6 x.1 -0.0316 -0.342 -1.44 1.42 -0.446 0.042 Predicted -1.6335 -0.990 1.29 -4.64 -0.773 -1.786 y -16.7876 -25.954 -14.67 -2.29 -28.118 7.731 Residual -15.1541 -24.964 -15.96 2.35 -27.344 9.517 Sum of squares = 1951 Mean square = 325 n = 6 fold 2 Observations in test set: 5 11 12 14 15 16 20 X1 X2 X3 X4 X5 X6 X7 x.1 0.472 0.282 2.20 1.75 0.253 -0.0938 0.1543 Predicted -5.089 -5.385 -2.40 -3.10 -5.431 -5.9707 -5.5842 y -5.894 -8.855 -7.32 2.88...