search for: bcpy01

Displaying 4 results from an estimated 4 matches for "bcpy01".

2009 Apr 09
2
failed when merging two dataframes, why
Hi, R-listers, Failed, when I tried to merge df1 and df2 by "codetot" in df1 and "codetoto" in df2. I want to know the reason and how to merge them together. Data frames and codes I have used were listed as followed. Thanks a lot in advance. df1: popcode codetot p3need BCPy01-01 BCPy01-01-1 100.0000 BCPy01-01 BCPy01-01-2 100.0000 BCPy01-01 BCPy01-01-3 100.0000 BCPy01-02 BCPy01-02-1 92.5926 BCPy01-02 BCPy01-02-1 100.0000 BCPy01-02 BCPy01-02-2 92.5926 BCPy01-02 BCPy01-02-2 100.0000 BCPy01-02 BCPy01-02-3 92.5926 BCPy01-02 BCPy01-02-3 100.0000 BCPy01-03 BCPy01-03-1 100.0...
2009 Apr 10
4
split a character variable into several character variable by a character
Dear Mao Jianfeng, "r-help-owner" is not the place for help, but: r-help at r-project.org (CC-ed here) In any case, strsplit() does the job, i.e.: > unlist(strsplit("BCPy01-01", "-")) [1] "BCPy01" "01" You can work with the whole variable, like: splitpop <- strsplit(df1$popcode, "-") then access the first part with > unlist(lapply(splitpop, "[", 1)) [1] "BCPy01" "BCPy01" "BCPy01&q...
2009 Jun 16
4
confusion on levels() function, and how to assign a wanted order to factor levels, intentionally?
...41 64 2.805556 36 15 Py GSPy02 6.70 130 56 67 1.757576 33 16 Py GSPy02 6.60 115 47 78 1.603175 63 17 Py GSPy02 8.90 137 61 102 1.767677 99 18 Py GSPy02 6.20 157 68 115 1.459016 61 19 Py BCPy01 5.30 91 39 24 1.263158 19 20 Py BCPy01 6.10 100 46 53 1.117647 17 21 Py BCPy01 4.50 81 32 46 1.320000 25 22 Py LJPy01 6.60 170 65 72 2.035714 56 23 Py LJPy01 6.90 104 46 58 1.800000 55 2...
2009 Jun 15
1
How to do automatical-plotting
...Py02 6.2 111 41 64 2.805555556 36 Py GSPy02 6.7 130 56 67 1.757575758 33 Py GSPy02 6.6 115 47 78 1.603174603 63 Py GSPy02 8.9 137 61 102 1.767676768 99 Py GSPy02 6.2 157 68 115 1.459016393 61 Py BCPy01 5.3 91 39 24 1.263157895 19 Py BCPy01 6.1 100 46 53 1.117647059 17 Py BCPy01 4.5 81 32 46 1.32 25 Py LJPy01 6.6 170 65 72 2.035714286 56 Py LJPy01 6.9 104 46 58 1.8 55 Py LJPy01 8.6 161...