similar to: subsets problem

Displaying 20 results from an estimated 8000 matches similar to: "subsets problem"

2009 Feb 13
4
PCA functions
Hi All, would appreciate an answer on this if you have a moment; Is there a function (before I try and write it !) that allows the input of a covariance or correlation matrix to calculate PCA, rather than the actual data as in princomp() Regards Glenn [[alternative HTML version deleted]]
2009 Jan 14
6
Removing duplicates from a list
For a list say; list1<-{1,2,3,4,5,2,1} How do I remove the duplicates please? My real list is 20,000 obs long of dates with many duplicates Regards Glenn [[alternative HTML version deleted]]
2009 Jan 19
3
Month tick marks on a plot()
Hi All, I have a small dataframe [dates, values) I am plotting with plot(df,type=²l²) And the date date covers a year. The graph only have marks at Œ2008¹ and Œ2009¹. How do I get the months labeled at the bottom please Thanks as always Glenn [[alternative HTML version deleted]]
2009 Feb 06
2
does R plus 3.3 need vista ?
Hi all - has anyone ot and experienced problems with R+. Have downloaded the trail and it will not work -does it need vista (like it says on the box!) Thanks glenn [[alternative HTML version deleted]]
2009 Jan 18
1
Combinations
Hi All, some help on this would be appreciated; Understood combinations(7,4) returns all the possible 4 part combinations out of 7. Is is possible to substitute the ³7² for a list of stuff you would like to see the mix of; c(³a²,...,²g²) say ? Thanks Glenn [[alternative HTML version deleted]]
2009 Jan 14
2
List of Lists
Dear All; Is it possible to create a list of lists (I am sure it is) along these lines; I have a dataframe data02 that holds a lot of information, and the first column is ³date² I have a list of dates in; data03<-c(date1,.....,daten) And would like to create a list; data04 <- subset(data02, date == data03[1,]) Ie. data04 holds the data from data02 that matches a date in data03 How do
2004 Oct 20
1
Problems with thunderbird
I'm running dovecot-1.0-test50 on openbsd 3.4 and it's working great, exept with thunderbird. Everything works fine with squirrelmail. The instant i log in with thunderbird the imap process goes up to 100% cpu, and instantly goes back down to 0 when i log out. I configured dovecot with the following arguments: --with-vpopmail --with-storages=maildir --without-passwd
2009 Jan 10
1
<no subject>
Very simple questions if anyone can help: (1) what is the value in saving workspaces, which is offered at every close? I thought it might save the set up of the GUI but I cant work out what it does ­ I run a script that loads the packages I need at the start of every session. (2) mathematica has a term (%) that when typed means the last returned value, so > % + 1 say would return the last
2009 Feb 09
1
sapply
Newbie question sorry (have tried the help pages I promise) I have a dataframe (date,stockprice) say and looking how I might get the return of: dataframe (difference in days, change in stock price) using sapply - I require a very simple function and don't really want to go down the zoo and quant mod route Regards glenn [[alternative HTML version deleted]]
2009 Feb 09
1
standardize
Very quick newbie question sorry; How do I standardize a list of data please (other than do the calculation of course). Is there a quick way please ? glenn [[alternative HTML version deleted]]
2004 Oct 20
1
Unable to compile dovecot with Solaris 9 and Forte C
Just a "heads up". I tried to search mailinglist archives and wiki, but found no similar configurations. Dovecot is unbuildable with the following configuration: SunOS mail 5.9 Generic_112233-08 sun4u sparc SUNW,Sun-Fire-V210 cc: Forte Developer 7 C 5.4 2002/03/09 config.log output from ./configure is at: http://iso.ego.fi/misc/dovecot_1.0-test50.log I guess I'll have to bend
2004 Oct 26
1
Cache fields
Using 1.0-test51, or maybe test50. I this message in syslog: mail_cache_fields: Invalid cache field name 'MessagePart', ignoring >From the what I see, MessagePart is the default value. My <sysconfdir>/dovecot.conf has: mail_cache_fields = MessagePart Thanks, Alex
2004 Mar 11
3
making operators act on rows of a data frame
Dear R helpers, I wish to use the "sum" operator for each row of a data frame. However, it appears that the operator acts on the entire data frame, over all columns. What is the best way to obtain row- wise operation? The following code shows my attempts so far, and their problems:- test1=array(rbinom(120,1,0.5),c(20,3)) test1[,3]=NA sum(test1[,1:2]) test1[,3][sum(test1[,1:2])>=2]=1
2013 Nov 14
1
issues with calling predict.coxph.penal (survival) inside a function
Thanks for the reproducable example. I can confirm that it fails on my machine using survival 2-37.5, the next soon-to-be-released version, The issue is with NextMethod, and my assumption that the called routine inherited everything from the parent, including the environment chain. A simple test this AM showed me that the assumption is false. It might have been true for Splus. Working this
2001 Nov 26
1
Hmm. Silly(ish) question re: winbind
Hmm...I've never tried it with a local user and a domain group. I've certainly done stuff like: chown DOMAIN+David:"DOMAIN+Domain Users" * and had it work before... -----Original Message----- From: Glenn Sieb [mailto:ges@lumeta.com] Sent: Monday, November 26, 2001 11:00 AM To: Samba Mailing List Subject: Hmm. Silly(ish) question re: winbind I know that winbindd allows Samba
2010 Sep 03
3
S4 Method Signatures
Hello, If the signature of a method defines which generic it implements then I'm confused about why this minimal example I invented won't work : setGeneric("myFun", function(rs, ...){standardGeneric("myFun")}) setGeneric("myFun", function(cs, ...){standardGeneric("myFun")}) setMethod("myFun", "numeric", function(rs, colour =
2003 Apr 17
4
A function as argument of another function
Dear all, I would like to write a function like: myfun<-function(x,fn) {xx<-exp(x); x*fn(xx)} where fn is a symbolic description of any function with its argument to be specified. Therefore myfun(5,"2+0.3*y^2") should return 5*(2+0.3*exp(5)^2), myfun(5,"log(y)") should return 5*log(exp(5)) and so on. I tried with "expression" and others, but without success.
2011 Sep 26
4
Testing for arguments in a function
I don't understand how this function can subset by i when i is missing.... ## My function: myfun = function(vec, i){ ret = vec[i] ret } ## My data: i = 10 vec = 1:100 ## Expected input and behavior: myfun(vec, i) ## Missing an argument, but error is not caught! ## How is subsetting even possible here??? myfun(vec) Is there a way to check for missing function arguments, *and*
2006 Feb 02
2
How to get the namespace of a function?
I declared the environment of the function myfun to be NULL as follows: environment(myfun) <- NULL Later on I called that myfun and got an error message because the function index() in the zoo package was called inside myfun and was not visible: Error in myfun(args) : couldn't find function "index" I tried to use zoo::index() instead of index(), but that did not work. In fact,
2013 Jun 07
1
It seams that fast99 function (sensitivity package) does not work out for norm distribution.
Dear all mailing listers, Does Anyone have the same problem as mine when using the fast99 (extended-FAST method) to perform SA of model with norm distribution inputs? See the simple example given following. Any suggestion will be greatly appreciated. Thank you! Marino # Simple example # 1. uniform version (It works well) library(sensitivity) Myfun<-function(x){return(rowSums(x))} SA1