Displaying 20 results from an estimated 2000 matches similar to: "PROBLEMS with In `[<-.factor`(`*tmp*`, (¿ORDERED FACTOR?)"
2012 May 29
1
Factor problem
HI!
I am working with a table with quantitative and qualitative data; one of
the columns is "Level of education", which is an ordered factor. I want to
get rid of the ordered factor, and set my own scale. How to do that? All
the time I get the following error:
In `[<-.factor`(`*tmp*`, educa = "Less than high school", value = 3) :
invalid factor level, NAs generated
2011 May 16
2
conditional rowsums in sapply
Hi all
I have a data frame with duplicate columns and i want to remove duplicates
by adding rows in each group of duplicates, but have lots of NA's.
Data:
dfrm <- data.frame(a = 1:4, b= 1:4, cc= 1:4, dd=1:10, ee=1:4)
names(dfrm) <- c("a", "a", "b", "b", "b")
dfrm[3,2:3]<-NA
dfrm
a a b b b
1 1 1 1 1 1
2 2 2 2 2 2
3
2011 Jan 31
2
From data frame to list object
Dear all, let say I have following data frame:
> data.frame(x=rnorm(18), y=rep(c("a", "b", "c"), each=6))
x y
1 -1.072152537 a
2 0.382985265 a
3 0.058877377 a
4 -0.006911939 a
5 -2.355269051 a
6 -0.303095553 a
7 0.484038422 b
8 0.733928931 b
9 -1.136014346 b
10 0.503552090 b
11 1.708609658 b
12 -0.294599403 b
13
2004 Aug 06
2
Re-4: streaming MP3s?
The ices.log says
INFO playlist-builtin/playlist_read Currently playing "<dateiname>.mp3"
WARN playlist-builtin/playlist_read Corrupt or missing data in file "<dateiname>.mp3"
then the thread is shut down
<p><p>-------- Original Message --------
Subject: Re: Re-2: [icecast] streaming MP3s? (25-Sep-2003 13:31)
From: remco@rc6.org
To:
2011 Jan 31
2
Missing at random
R users:
Thanks in advance
How to generate missing at random (MAR)?
assaedi76@yahoo.com
Thanks
[[alternative HTML version deleted]]
2013 Mar 06
2
Fwd: How to conditionally remove dataframe rows?
Hi,
I have a data frame with two columns. I need to remove duplicated rows in
first column, but I need to do it conditionally to values of the second
column.
Example:
Point_counts Psi_Sp
1 A 0
2 A 1
3 B 1
4 B 2
5 B 0
2008 Apr 10
3
Custom Form Builder Help
Hello All,
We use a different custom form builder for our app, but I wanted to
use facebooker''s typeahead widget in side the other form builder.
I don''t know much about form builders, but I created a file in lib/
doing this:
http://pastie.caboo.se/178776
It works great, except that the id''s and class names get messed up.
Instead of school_name, I get
2011 Jul 15
3
summarized data set - how to use an "occurs" field
I have a data set with 22 fields and several thousand records in which
one field (count) indicates the number of times that each specific
combination of the other 21 fields occurred in a bigger and largely
unavailable data set.
So each record is unique in its combination of field values and has a
field that identifies how many multiples of this record actually
occurred.
Without resorting to
2012 Mar 18
3
Extracting numbers from a character variable of different types
Hello,
I have a file which contains a column with age, which is represented in the
two following patterns
1. "007/A" or ''007/a" or ''7 /a" ..... In this case A or a means year and I
would like to extract only the numeric values eg 7 in the above case if this
pattern exits in a line of file.
2. "004/M" or "004/m" where M or m means month
2004 Aug 06
4
.conf for 2nd streem
I'm pretty sure it was in the default ices.conf, but I guess I deleted it.
How do I setup a 2nd stream? The first plays at 24k, I want same audio for a box on the local lan, so bandwidth is not an issue;
so either don't decode/reencode or re-encode at 300+K, or whatever the highest is.
Carl K
http://www.personnelware.com/carl/resume.html
--- >8 ----
List archives:
2013 Mar 11
2
how to convert a data.frame to tree structure object such as dendrogram
I have a data.frame object like:
> data.frame(x=c('A','A','B','B'), y=c('Ab','Ac','Ba','Bd'))
x y
1 A Ab
2 A Ac
3 B Ba
4 B Bd
how could I create a tree structure object like this:
|---Ab
A---|
_| |---Ac
|
| |---Ba
B---|
|---Bb
Thanks,
Zech
[[alternative HTML version deleted]]
2011 Mar 12
2
Merge data under conditions
Dear All,
Debuting in R, I'm facing a problem.
I have 2 vectors, say 'a' et 'b', and I'd like to merge them according to
the proximity of their variable 'time'.
How to do to keep elements which satisfy (for example) 'a$time-b$time<0.5'?
For example :
> a
time x
1 1.0 4
2 2.2 5
3 5.2 6
> b
time y
1 0 1
2 1 3
3 2 5
4 4 7
5
2004 Aug 06
5
m3u - file definition
Hello Remco,
I found these decumentations before but they say nothing about
setting the start time and end time of each mp3 file entry in the
.m3u file
Best Regards
- Johann
"Remco B. Brink" schrieb:
> <quote who="Johann Soukup">
>
> > is there any documentation on the .m3u file definition ?
>
> Google is your friend (tm):
>
>
2004 Aug 06
2
could not create listener socket on port 8000
greetings!
when i try to start the icecast server i get the
following error:
Could not create listener socket on port 8000
Server startup failed. Exiting.
I did make sure that iptables has port 8000 open for
tcp.
Any suggestions for troubleshooting? Thanks.
jg
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
2010 Mar 16
2
Conditional variable assignment
Hi everyone,
Once again I am stuck with a problem I can't seem to figure out. I suppose this learning curve levels off eventually, lol. I am learning on my own with absolutely no background in programming, so if I seem to request help a lot it's not because I am seeking others to do the work for me. I need to assign one of two arrival times to the 'ARRIVE' variable of my
2003 May 09
1
windows data editor changes dimensions displayed data frames
dear R-tists,
i am experiencing a problem with the data editor in the windows version of
R 1.6.1 envoked with the command 'fix'.
the data editor changes the size of large data frames.
a simple example illustrates this:
-------------------------------------------------------
> dfrm <- data.frame(no=c(1:100000))
> length(dfrm[,1])
[1] 100000
> fix(dfrm)
>
2011 Jul 01
4
Access only part of last dimension of table/matrix
I would like to do some operations inside a function using only one
value for the last dimension of a table/matrix:
tabfn <- function (dfrm, facvec, YN ="event"){
return( Etbl <- do.call(table, dfrm[ , c(facvec,
"event") ]) )
# just want Etbl[,,,"TRUE"] or Etbl[,, "TRUE"] or
Etbl[,"TRUE"]
}
2004 Aug 06
2
Can't get ices to work on secondary audio card
> On Wed, 2003-06-04 at 22:01, adam leigh wrote:
>
> > When broadcasting live media off of any sound card other than the primary
> > (Default, aka: /dev/dsp) sound device I only end up broadcasting silence.
>
> so there's a connection to icecast being maintained and icecast shows a
> stream with so many listeners (status.xsl) ?
That's right. Icecast
2005 Dec 01
1
Kalman Smoothing - time-variant parameters (sspir)
Dear R-brains,
I'm rather new to state-space models and would benefit from the extra
confidence in using the excellent package sspir.
In a one-factor model, If I am trying to do a simple regression where
I assume the intercept is constant and the 'Beta' is changing, how do
I do that? How do i Initialize the filter (i.e. what is appropriate to
set m0, and C0 for the example below)?
2010 Dec 24
4
Removing rows with earlier dates
Hi all,
I'm new to the list but have benfited from it quite extensively. Straight to
my rather strange question:
I have a data frame that contains mapping rules in this way:
ACCOUNT, RULE COLUMNS, Effective Date
The dataframe comes from a database that stores all dates. What I would like
to do is to create a data frame with only the most recent rule for each
account. In traditional