Displaying 20 results from an estimated 100 matches similar to: "split a character variable into several character variable by a character"
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
2009 Jun 16
4
confusion on levels() function, and how to assign a wanted order to factor levels, intentionally?
Dear R-helpers,
I want to make a series of boxplots on several numeric univariates with two
group variables (species and population, population nested in species, and
with population as the X-axis). In order to get a proper order of the
individual populations in X-axis, I need to assign a wanted order to the
factor (population). I used the levels() function to do this assignment, but
it seemed
2009 Jun 15
1
How to do automatical-plotting
Hi R-listers,
I am new to R and programming.
I have a large dataframe composed of two grouping variables (species,
population, with populations nested in species) and tens of continuously
numeric variables. For each numeric variable, I want to make a boxplot with
population as the X axis and the boxes filled according to which species it
is belonging to. But, that is a definitely tedious work. I
2004 Aug 21
1
relative frequencies for hist()
I have problems getting a histogram with relative frequencies on the y-axis.
Here is an example data set:
> a <- c(4.626, 4.627, 4.627, 4.628, 4.629, 4.629, 4.630, 4.631, 4.632,
4.632)
> d = hist(a,freq=F)
> d$density
[1] 299.9999 100.0000 200.0000 100.0000 100.0000 200.0000
The obtained densities are given by counts/(total n * bin width), with
bin width being
2012 Jan 11
1
R CMD check pkg and 32/64 bit.
R gurus:
I'm trying to get another round of rconifers out and I need some advice/help crushing differences in the examples test.
I'm trying to make sure the max sdi values are being respected.
I've added a tests/rconifers-Ex.Rout.save (from windows i386-pc-mingw32) and when I ran R CMD check (both R-2.13.0), I got the following results:
* using log directory
2009 Jan 18
1
?grep
Dear Rxperts,
I have the following data:
Study Study.Name C Category TC Time QC QO SD FSD Theta
1 NONE 0 P(22) 0 0.00 7.5596 0 0 8.0361e-03 0
1 NONE 6 G(50) 0 0.00 1.0000 0 0 0.0000e+00 0
1 NONE 2 F(02) 0 0.00 100.0000 0 0 0.0000e+00 0
1 NONE 3 F(03) 0 0.00 13.2280 0 0 1.6732e-02 0
2011 Jan 19
1
Problem in using bdh function for Govt tickers
Hi, all
I wanted to fetch data from Bloomberg for govt bonds, and analyse it
further.
I am having trouble in getting data as when I use field=PX_LAST, it is
giving the prices but when I use field=CPN, or ISSUE_DT, it is not giving
the results and just bouncing back <NA> for that.
This is the piece of code:
> library(rJava)
Warning message:
package 'rJava' was built
2008 Jul 02
2
help appreciated to make a plot
Dear All:
I have the following data:
0 100
0.5 79.9605
0.75 84.7098
1.5 72.1793
2.5 97.4924
4.5 90.9696
8.5 59.9794
24.5 76.4859
456 100.0000
457.5 116.7381
460.5 118.7550
464.5
2008 Mar 20
1
Interpretation of Variance decomposition in VAR model
Hi all,
This question is not really R related, rather on Statistics subject itself. Even I did not do those using R. however still I want to post it here, because my hope is I could get help from great statisticians who are the very active member of this group.
My problem is to interpret Variance decomposition of VAR model in layman's language.
Using EViews I got following :
Variance
2006 Sep 28
2
a decimal aligned column
Hello,
For numbers in the range 100 to 100,000,000 I'd like to decimal align
a right-justified comma-delineated column of numbers, but I haven't
been able to work out the proper format statement. format(num,
justify=right, width=15, big.mark=",") gets me close, but numbers
larger than 1,000,000 project a digit beyond the right edge of the
column, which I really don't
2005 Nov 10
2
polynomials transformation
Dear All,
Need some help in polynomials transformation to get the coefficients. I have tried "poly.transform" as applied in S-plus but it does not work.
Thanks in advanced for any helps.
Regards.
Abd. Rahman Kassim (PhD)
Head Forest Ecology Branch
Forest Management & Ecology Program
Forestry and Conservation Division
Forest Research Institute Malaysia
Kepong 52109
Selangor,
2011 Aug 08
0
Odp: Fw: R function for Gage R&R
Hi Elaine
I do not use it very often. I programmed it to mimic Minitab functions
(partly) with some adons from czech statistics textbook written by
M.Meloun (meloun militky statistics - first hit in google)
Basically you can have your data in some data frame or they can be as
separated vectors. The function itself expects input of 3 vectors, but you
can easily to modify it for imput as
1997 Jul 25
2
R-beta: R 0.50 alpha
The new code seems to have broken various things.
Autoloading of libraries doesn't seem to work:
> library(survival4)
Autoloading required library: splines
Error in pos.to.env(pos) : invalid "pos" argument
> search()
[1] ".GlobalEnv" "library:survival4" "library:date"
[4] "library:base"
The coxph function the
1997 Jul 25
2
R-beta: R 0.50 alpha
The new code seems to have broken various things.
Autoloading of libraries doesn't seem to work:
> library(survival4)
Autoloading required library: splines
Error in pos.to.env(pos) : invalid "pos" argument
> search()
[1] ".GlobalEnv" "library:survival4" "library:date"
[4] "library:base"
The coxph function the
2013 Oct 04
1
[Bug 70130] New: unable to compile fragment shader program
https://bugs.freedesktop.org/show_bug.cgi?id=70130
Priority: medium
Bug ID: 70130
Assignee: nouveau at lists.freedesktop.org
Summary: unable to compile fragment shader program
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: infyquest at gmail.com
Hardware: x86 (IA32)
2009 Jun 09
4
how to substitute missing values (NAs) by the group means
Dear Ruser's
I ask for helps on how to substitute missing values (NAs) by mean of the
group it is belonging to.
my dummy dataframe is:
> df
group traits
1 BSPy01-10 NA
2 BSPy01-10 7.3
3 BSPy01-10 7.3
4 BSPy01-11 5.3
5 BSPy01-11 5.4
6 BSPy01-11 5.6
7 BSPy01-11 NA
8 BSPy01-11 NA
9 BSPy01-11 4.8
10 BSPy01-12 8.1
11 BSPy01-12 6.0
12
2010 Jul 09
3
how to plot two histograms overlapped in the same plane coordinate
Dear R-help listers,
I am new. I just want to get helps on how to plot two histograms
overlapped in the same plane coordinate. What I did is very ugly.
Could you please help me to improve it? I want to got a plot with semi-
transparent overlapping region. And, I want to know how to specify the
filled colors of the different histograms.
I also prefer other solutions other than ggplot2.
Many
2002 Jun 04
2
machine dependency [polr()/optim()]
Dear R experts:
I am running some calculations using polr() in MASS library, and found some
differences in results obtained on two different machines (IRIX 6.5, and
Linux RH 7.1). It is not clear to me whether this is due to some error in
my programming the calculation and how to resolve the differences, if
possible.
The polr() call is the following:
2009 Feb 23
1
how todefine an variable/column in a dataframe as numeric mode
Hello dear R-users,
I have a tricky problem of data manipulation with R. Although it seems
very easy, I can not solve it by myselves.
The problem is a variable in my dataset is usually be readed as
"factor" (variable mode), however I want it be a "numeric" one. I want
to know how can I define an variable/column in a dataframe as numeric
mode, after I imported a large
2009 Aug 19
2
Why are there small circles in my plot
Dear R-listers,
There is my data and my codes to create a plot. I want to know why
there are two small circles in the upper right and lower left of the
plot respectively. Could you please share your experience or advice
with me?
# dummy data
factor<-rep(c("Alice","Jone","Mike"),each=100)
factor<-factor(factor)
traits<-c(rnorm(100, mean=1, sd=1), rnorm(100,