similar to: Putting x into the right subset

Displaying 20 results from an estimated 60000 matches similar to: "Putting x into the right subset"

2008 Dec 13
2
weird pasting of ".value" when list is returned
could someone explain why the name of FPVAL gets " .value" concatenated onto it when the code below is run and temp is returned. I've been trying to figure this out for too long. It doesn't matter when I put the FPVAL in the return statement. It happens regardless of whether it's first or last. Thanks. f.lmmultenhanced <- function(response, pred1, pred2) {
2008 Mar 19
1
Problems with Samba - Domain not reachable
I'm very despaired. Trying to join a Domain I also get an error: "Domain not reachable". But to my mind the samba-configuration is ok. The logs give no hint to an error. testparm smb.conf works fine. I created a shortcut to logon on server, that works. (via ip and via name). But i cannot join the domain. Does anyone has an advice, where the problem could be? To my mind it is a
2012 Jun 30
3
Accessing named members of a list in an array
Dear List, I've created a two-dimensional array which shall contain a value and its error, respectively. These two values are concatenated in al list and bear the names "sl" and "sl_err" But I can't adress them using the $-notation. a<- array(list(NULL),dim=c(2,2)) a[[1,1]]<- c(a=2,b=3) a[[1,1]]$a ## Fehler in a[[1, 1]]$a : $ operator is invalid for atomic
1999 Jul 05
1
Re: A Problem I'm having with R
Dear Stuart Washington, please ask these kind of questions on the mailing list "R-help" to which I am now forwarding. [Read any "CRAN" mirror, e.g. http://lib.stat.cmu.edu/R/CRAN/, to find out on subscribing to R-help or how to access the mailing list archives.] Regards : Martin Maechler StuW> Dear Sir, I'm having a problem getting R to do a
2002 Nov 01
3
Line plot with date-time on X-axis
Dear List, What is the way in R to plot a graph having date time (e.g. format 12/31/2002 13:12) in the x axis and numerical value (e.g. temperature) on the Y-axis ? I could not get 'plot()' to do this as X axis values are non-numeric. 'bwplot()' sorts the date values and thereby changes the order of the dates and of Y. The date/time values have to be shown on the X-axis as tick
2006 Jul 20
3
throwaway() function
Dear all, I apologize if this is a FAQ (seems a bit like one, but I didn't find anything). I'm looking for an easy way to cut one value out of a vector and shorten the vector accordingly. Something like: x <- c(1, 1, 0, 6, 2) throwaway(x[3]) which will return x = 1 1 6 2, with length(x) = 4. I know one could do this by hand, but then one would have to create a second vector y in a
2008 Nov 08
3
Parsing regular expressions differently - feature request
Hi there, I rejoiced when I realized that you can use Perl regex from within R. However, as the FAQ states "Some functions, particularly those involving regular expression matching, themselves use metacharacters, which may need to be escaped by the backslash mechanism. In those cases you may need a quadruple backslash to represent a single literal one. " I was wondering if that is
2012 May 12
1
Subset and order at the same time?
Is there a way to order data and subset it at the same time?? I want to sort all the members of group A by their values in column 3. (I'll then do the same for each subsequent group.) This could be done in a loop building up another vector, but I like to avoid loops in R. ------------------------------------- a <- temp[temp$group=="A",] a <- a[order(a[,3]),]
2003 Nov 23
4
remove 0 rows from a data frame
Dear all, As part of a larger function, I am randomly removing rows from a data frame. The number of removed rows is determmined by a Poisson distribution with a low mean. Sometimes, the random number is 0, and that's when the problem starts: My data frame: > temp occ x y dbh age 801 0 2977.196 3090.225 6 36.0 802 0 2951.892 3083.769 8 40.6 803 0 2919.111
2010 Dec 13
2
inconsistency with cor() - "x must be numeric"
Howdy, I have written a small function to generate a simple plot and my colleague is having an error when attempting to run it. Essentially I loop through categories in a data frame and take the average value for each category The categories are in $V1, subset first then mean taken and concatenated to previous values using rbind(c("label",mean(data$V6)). The result is a two-column
2003 Feb 20
2
subset with NA
Easy question that I can't find an answer for. I'm trying to subset a data frame and want to exclude the positive values, i.e. I want the NA values. My data: > summary(temp$tuna) Min. 1st Qu. Median Mean 3rd Qu. Max. NA's 1 2 3 3 4 5 1211 Querying for subset(temp, tuna %in% "NA", select.... subset(temp, tuna == NA,
2005 Jun 07
5
Temperature monitoring tools
Are there any easy to use snmp(mainly temperature monitoring) tools around for Centos -4? This is on a Dell sc420 server. -- Computer House Calls, Networks, Security, Web Design: http://www.emmanuelcomputerconsulting.com What businesses are in Brunswick, Maryland? Check Brunswick First! http://www.checkbrunswickfirst.com My "Foundation" verse: Isa 54:17 No weapon that is formed
2003 May 20
1
Restoring concatenated ogg vorbis files
Questions about concatenated ogg files have been popping up recently. Here's another one — is there an easy way of splitting a concatenated ogg file back to its constituents? i.e. if you have a complete album that has been concatenated to a single file using the copy command in Windows (I suspect an analog of cat in *nix), is there a way to split it back into tracks? Sergey <p>---
2009 Apr 14
2
Subset function: selecting variables within a factor
Hi all I know this must be an easy one so sorry for the trouble. I would like to select a list of variables within a factor The following example is given in help for subset: subset(airquality, Temp > 80 select = c(Ozone, Temp)) So how do I select all temperatures of 90 and 80 ie Temp = c(80,90) I would appreciate your help. Kind regards andy Andrew McFadden MVS BVSc Incursion
2010 May 13
3
select subset based on another variable
Hi, dear R-helpers, I have a simple question regarding selecting subset of a variable based on another variable. Here is the example: xx=rnorm(10) id=sample(1:10, 10) temp=c(6, 1, 8, 2) Now, all I want is xx's that their id are 6, 1, 8, 2, instead of the position. Any suggestions ? Thank you all your help !! Carrie [[alternative HTML version deleted]]
2006 Oct 26
2
Newbie: Better way to do compound conditionals in subset?
There must be a better way to select the rows after 22-Apr-2004 and before 01-Sep-2004 with a temperature below 65 than this: > before2sw1 <- subset(energy.data, as.Date(start, format="%d-%b-%y") < as.Date("01-Sep-04", format = "%d-%b-%y")) > before2sw2 <- subset(before2sw1, as.Date(start, format="%d-%b-%y") >=
2006 Oct 29
2
Splitting Theora encoding into multiple tasks for Thoggen
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all, I have been thinking about multiple core processors and how Thoggen (http://www.thoggen.net) encodes DVDs to Ogg-Theora files. I was intending to file a feature request that basically suggested dividing the total size of the target DVD by the number of logical CPUs and encoding each chunk of DVD as a separate task so that encoding could
2017 Nov 23
5
Creating Spec file for RPM
Im trying to learn how to create RPMs but am a little confused by the spec file. Im trying to package up some Python scripts, rather than binary files, and I want them to be installed in a subdirectory under /usr/local which I shall refer to as /usr/local/X Ive put the scripts in a tarball under /home/me/X/RPM/SOURCES but Im getting terribly confused over what to put in the? %build %install
2013 Mar 24
1
FLAC deletes file right after encoding bug.
I'm using flac 1.3.0pre2 on Windows 8 (not sure which git version, the exe was on the mailing list a few days ago) and right after I encode a 24 bit ~2 hour long flac file, to flac with -8 -e -p -V it creats a temp file called something like .flac`enc blah blah blah, it will finish making the file, verify it, then start encoding from the source file to the end file again after promptly
2018 Feb 12
0
plotting the regression coefficients
Hi Petr; Thanks so much. This is great! Although last Sunday, alternatively, I have solved the problem using the following statement at the very end of the program. * ggsave('circle.pdf', p4, height = 70, width = 8, device=pdf, limitsize = F, dpi=300).* This works very well too. Asa my categorical variables are in my Y axis, my R program reorders the names on Y-axis. However, I would