similar to: Removing and restoring factor levels

Displaying 20 results from an estimated 20000 matches similar to: "Removing and restoring factor levels"

2005 Oct 13
1
Removing and restoring factor levels (TYPO CORRECTED)
Sorry, a typo in my previous message (parens in the wrong place in the conversion). Here it is corrected: I'm doing a big slow computation, and profiling shows that it is spending a lot of time in match(), apparently because I have code like x %in% listofxvals Both x and listofxvals are factors with the same levels, so I could probably speed this up by stripping off the levels and just
2002 Mar 13
0
rpart error with 0-frequency factor levels (with partial fix) (PR#1378)
(I'm sending to r-bugs because rpart is one of the recommended packages and is always installed. I'm also sending it directly to Dr. Ripley, as the maintainer.) rpart working as a classifier does not work (produces no splits) when the class indicator has no instances of one of the factor levels, as long as the factor level is not the final level. I have at least a partial fix, which I
2012 Aug 30
2
Identifying and Removing NA Columns and factor Columns with more than x Levels
Hi, How do you subset a dataframe so that you only have columns: 1. that contain one or more NAs? 2. that contain factors with greater than or equal to 32 levels? How do you remove from a dataframe columns** 3. with one or more NA's? 4. that contain factors with greater than or equal to 32 levels? ** I know how to remove columns at a basic level but I am trying
2009 Jul 01
1
how to keep user/group information when rsyncing to windows for restoring back to
I am guessing that you would like to use rsync to create a bootable backup. It may also be worth while spending some time looking at CloneZilla or even dd? Dd is a really great tool. You know a copy of the device is bit for bit. You can then use rsync to make incremental copies of these directories which regularly change. In this situation you can restore the machine and then
2008 Aug 30
4
remove levels from a factor
Hi,   how to remove levels that have less than a specific number such as 2. i.e..   > f<-as.factor(c("a","b","a")) > f [1] a b a Levels: a b I want to remove level b because level b has less than 2. > f [1] a a Levels: a   [[alternative HTML version deleted]]
1999 Jul 13
0
Restoring from an smbclient/gtar archive?
Hi all, I recently used smbtar (Samba Version 2.0.4) to create a tar file "backup" of an NT filesystem. However, when using GNU tar to extract the tar file, I get a little ways into the 'tar xvpf ../file.tar' command and get a whole bunch of errors: tar: Read error on ../file.tar: Invalid argument tar: Read error on ../file.tar: Invalid argument tar: Read error on
2005 Jul 08
2
removing factor level represented by less than x rows
In a number of different situations I'm trying to remove factor levels that are represented by less than a certain number of rows, e.g. if I had the dataset aa below and wanted to remove the species that are represented in less than 2 rows: data(iris) aa <- iris[1:101,] In this case, since I can see that the species virginica only has one row, I can write: table(aa$Species) setosa
2012 Jul 27
1
lmer t value for 3 levels of fixed factor
Hello, I just joined this list today, so am worried about proper protocol, but would like to post a question about lme4. In Baayen, Davidson, and Bates (2008), Mixed-effects modeling with crossed random effects for subjects and items, the authors describe steps for a Latin Square Design (p. 402) in which they compare 3 levels of the experimental conditions. I am considering replicating this
2012 Jul 27
1
lme4 t value for 3 levels of fixed factor
Hello, I just joined this list today, so am worried about proper protocol, but would like to post a question about lme4. In Baayen, Davidson, and Bates (2008), Mixed-effects modeling with crossed random effects for subjects and items, the authors describe steps for a Latin Square Design (p. 402) in which they compare 3 levels of the experimental conditions. I am considering replicating this
2019 Aug 30
1
Sieve Header question.
I'm trying to make my github processing better, but I'm missing something. I have the following: if address :all :contains "from" ["github.com"] { addflag "github"; addflag "MyFlags" "github"; set "mailbox" "GitHub"; if address :matches :user "to" "*" { set "GHUser"
2010 Oct 26
1
Time series data with dropouts/gaps
I have time-series data from a pair of inexpensive self-logging 3-axis accelerometers (http://www.gcdataconcepts.com/xlr8r-1.html). Since I'm not sure of the vibration/shock spectrum I'm measuring, for my initial sensor characterization run the units were mounted together with the sample rate set to the maximum of 640 samples/sec. Unfortunately, at this sample rate there are significant
2004 Sep 10
0
[Flac-users] Re: settings for tighter compression than -8?
On Sat, Apr 12, 2003 at 05:49:06PM -0500, David W. Tamkin wrote: > Early this past week, Miroslav Lichvar suggested for me: > > >Ok, you need 0.04% improvement, that should not be a problem. Try > >flac --lax -e -p -l 32 -r 10 --no-padding > > Thank you again, Miroslav. I tried that, and it took almost two full > days (surprisingly, Windows ME stayed up that long
2012 Dec 04
2
problem with factor levels
Hi I have a data.frame with 371,718 obs. of 12 variables (see below for an str). My problem is with V1, a Factor w/ 93144 levels, there should actually be 93994 levels. Each entry looks like: comp[number]_c[number]_seq[number] for example comp215489_c0_seq40 R is grouping as though the last number is a decimal for some reason, in other words comp215489_c0_seq40 and comp215489_c0_seq4 are
1998 Jul 07
1
Restoring original file permissions
Hello, I've compiled and configured Samba 1.9.18p8 on a DEC Alpha running DEC Unix 4.0b for the express purpose of enabling a Windows NT 4.0 server running Seagate BackupExec software to be able to see my Unix filesystems as NT shares and back them up (as of this time BackupExec does not support DEC Unix clients). Test backups have worked OK, but I'm having problems restoring the
2008 Sep 25
1
Repeated factor levels - inconsistency of factor and levels<- functions?
Hello, I have a vector x containing letters ("a", "b" etc.). Now I want to convert it to factor and group some letters into one common level. If I do it by factor function, giving the same label names for all values I want to group, it doesn't work: > x<-letters[1:5] > x [1] "a" "b" "c" "d" "e" >
2012 Mar 24
1
SIS and restoring from backups
On 2012-03-24 7:49 AM, Timo Sirainen <tss at iki.fi> wrote: > This is already optionally done in v2.0+dbox. MIME attachments can be > stored in plain binary form if they can be reconstructed back into > their original form. It doesn't break any signed stuff. Hey Timo, Splitting this off into a separate thread... On the question of the existing SIS capability for
1998 Aug 24
1
ERRDOS - 50 when restoring a tar file
A collegue of mine has problems restoring files that are created with smbtar. I also tried it (using smbclient -T) and encountered the same problem. The tar file can be restored on unix without problem, but restoring them on a PC results in the following error messages: smbclient '\\jaap\temp' -Tx backup.tar Added interface ip=192.93.141.1 bcast=192.93.141.255 nmask=255.255.255.0 Server
2009 Jun 20
1
how to apply the dummy coding rule in a dataframe with complete factor levels to another dataframe with incomplete factor levels?
Dear R helpers: Sorry to bother for a basic question about model.matrix. Basically, I want to apply the dummy coding rule in a dataframe with complete factor levels to another dataframe with incomplete factor levels. I used model.matrix, but could not get what I want. The following is an example. #Suppose I have two dataframe A and B
2016 Jun 22
1
KVM HA
Once upon a time, Digimer <lists at alteeve.ca> said: > The cluster software and any hosted services aren't running. It's not > that they think they're wrong, they just have no existing state so they > won't try to touch anything without first ensuring it is safe to do so. Well, I was being short; what I meant was, in HA, if you aren't known to be right, you are
2008 May 08
1
Restoring a DomU HVM-Domain is "slow" (Bandwidth 23MB/sec from a ramdisk, xen3.2.1)
Hi, i do some tests with restoring HVM winxp-domU''s. Even, if i restore a saved DomU from a ramdisk, the Restoring-process has only a bandwidth about 23MB/sec: Here a example restoring an 512MB HVM opensuse10.3 DomU ...... [2008-05-07 22:40:12 3314] DEBUG (XendCheckpoint:218) restore:shadow=0x5, _static_max=0x20000000, _static_min=0x0, [2008-05-07 22:40:12 3314] DEBUG (balloon:132)