similar to: vector sprintf argument [SEC=UNCLASSIFIED]

Displaying 20 results from an estimated 1100 matches similar to: "vector sprintf argument [SEC=UNCLASSIFIED]"

2007 Nov 30
1
vector sprintf argument
Hello all: If I have a vector and a format, I want to do this: > A <- c(3,4,5) > F <- "Number: %d, %d, %d" > sprintf(F,A) This doesn't work because A isn't three arguments, it's just one. Is there a way to peel the vector members out of A so that sprintf can get at them? I would like to do this because I have a large set of variable-length data that
2007 Oct 15
1
avoiding a loop?
Hi All: I feel like there must be a slick R-native no-loop way to get the counts for the entries in a factor, but I'm unable to see how. Right now I'm doing this: hn.ent<-data.frame(rep(0,length(levels(hnf))), row.names=levels(hnf)) colnames(hn.ent)<-c("count") for (lev in levels(hnf)) { hn.ent[lev,"count"] <- sum(lev == hnf) } I'm sure there's a
2007 Dec 02
3
documenting yoru progress
Hello all: I have a function that writes a fairly elaborate report based on some survey data. For documentation and bookkeeping purposes, I'd like to write out in the report the function call that produced the report, or at least enough information to help me recreate the steps that led to that report. I've been generating all the reports with scripts, in order to be able to recreate
2007 Sep 27
1
curvilinear grid
Hello all: A question from a new user. I have data on a geo-referenced curvilinear grid. This is a grid with 75 rows and 51 columns, is not aligned north-south, and the rows and columns are not straight. (And the coordinates are in meters.) I want to make image plots of this data, but where the grid is deformed according to the correct locations of the grid points, instead of coming out
2007 Oct 10
3
simulated data using empirical distribution
Hello all: I'm sure this is a trivial request, but I'm still a beginner at this, and haven't been able to find it. I need to create simulated data based on some empirical distributions of a single variable. I've found R functions to help me simulate data based on analytical distributions, or to make simulations based on correlation matrices, but nothing so simple as what I need.
2007 Dec 21
1
using apply to loop [SEC=UNCLASSIFIED]
Hi Louis, You could try this: # find the index of the maximum value in each row of _data_, # disregarding the last column classified <- apply(data[,-(nclass+1)],1,which.max) ## or, if the maximum may be repeated: classified <- apply(data[,-(nclass+1)], 1, FUN = function(x) which(x == max(x))) # the variable _truth_ is just the last column of _data_ ? truth <- data[,nclass + 1] ?table
2007 Dec 20
1
data shape
Hello: I have been give a spreadsheet to work with formed as one big table. What it consists of is a 10-row-by-40-column table for each of about 70 different locations. In other words, the table row names are repeated 70 times, once for each of the locations (whose names also appear in the same column, where it's talking about the totals for that location), e.g.: A B C
2007 Sep 20
1
Identify and plotting symbols. [SEC=UNCLASSIFIED]
Rolf turner wrote: >I have been trying, unsuccessfully, to use identify() to (simply) >return a list of the indices of points clicked on and overplot (with >say a solid dot) each clicked-on point so that I can see where I've >been. I.e. I don't want to see the indices printed on the screen; I just want the points I've already selected to be highlighted. > >I
2007 Oct 07
0
Break [SEC=UNCLASSIFIED]
Hi, You can exit out of the 'identify()' routine by either: right-click > 'stop' Or click on 'stop > stop locator' in the top-left of the plot window. The script should continue with line1, line2 etc. Cheers Joe Joe Crombie Information and Risk Sciences Bureau of Rural Science Canberra Australia p: +61 2 6272 5906 e: joe.crombie at brs.gov.au
2007 Sep 21
0
Time series graphs, question about using zoo [SEC=UNCLASSIFIED]
Hi Fang, An easy way of doing this is by: > matplot(one, pch = LETTERS[1:4], type = 'b') Cheers Joe Joe Crombie Information and Risk Sciences Bureau of Rural Science Canberra Australia p: +61 2 6272 5906 e: joe.crombie at brs.gov.au -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of fang liu Sent: Friday,
2007 Jan 22
0
[UNCLASSIFIED] predict.survreg() with frailty term and newdata
Dear All, I am attempting to make predictions based on a survreg() model with some censoring and a frailty term, as below: predict works fine on the original data, but not if I specify newdata. # a model with groups as fixed effect model1 <- survreg(Surv(y,cens)~ x1 + x2 + groups, dist = "gaussian") # and with groups as a random effect fr <- frailty(groups,
2007 Oct 16
0
partitioning data [SEC=UNCLASSIFIED]
Hi Stephen, Check the help for predict.glm(). The argument for passing new data is actually 'newdata', as in: > pred = predict(glm.model, newdata=form[150001:200000,-1], > type="response") Cheers Joe -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of stephenc at ics.mq.edu.au Sent: Tuesday, 16
2007 Oct 24
0
random walk w/ reflecting boundary: avoid control construct? [SEC=UNCLASSIFIED]
Hi Johannes, I came up with the following (assuming that if step[i] is independent of step[i-1] then it is also independent of -step[i-1]): Cheers Joe > # your (unbounded) random walk > k <- cumsum(c(0,sample(c(-1,1), 1000, rep = T))) > > #shift it to positive, to allow following calculations k <- k - min(k) > # set your bound (remember min(k) is now zero) wid <- 10
2014 Nov 26
0
flac-1.3.1pre1
On Nov 25 00:43:22, mle+la at mega-nerd.com wrote: > http://downloads.xiph.org/releases/flac/beta/ > Please test. ./test_replaygain.sh fails for me in tonegenerator(), saying: ./test_replaygain.sh[91]: mawk: not found Testing FLAC replaygain 8000 (8000 x 1) ... -: ERROR: got partial sample Apparently, the tone-generating awk script does not work with my system's awk, which is
2010 Aug 29
1
PAM authentication fails
Hi, I'm fighting all weekend on with auth and pam to authenticate local system users. testuser is such local user and is in passwd and shadow. I want to have local system users (testuser is one of them) and virtual users. The virtual part works fine but I cannot get the local user to connect. Still pam fails finding the user. The suggested password mismatch at the end is, in my eyes,
2003 Sep 17
2
CART analysis
Greetings, Does anyone know of an R code for classification and regression tree analysis (CART)? Thank you Ron Ron Thornton BVSc, PhD, MACVSc (pathology, epidemiology) Programme Co-ordinator, Active Surveillance Animal Biosecurity MAF Biosecurity Authority P O Box 2526 Wellington, New Zealand phone: 64-4-4744156 027 223 7582 fax: 64-4-474-4133 e-mail: ron.thornton at maf.govt.nz
2016 Nov 16
2
Multiple location DC's with same hostnames
Hi, Not sure exactly how I would word the subject line so appologies in advanced. We are trying to accomplish the following scenario: Location 1: PDC: fs01.loc1.example.com IP: 10.0.0.1 Location 2: SDC: fs01.loc2.example.com IP: 10.0.1.1 Clearly when we join the SDC to the PDC there is a naming conflict. The end result would be to have clients at each site resolve the fs01 name to
2010 Feb 14
0
ads_sasl_spnego_krb5_bind failed: Program lackssupportfor encryption type [SEC=UNCLASSIFIED]
-----Original message----- From: Jeremy Allison jra at samba.org Date: Sat, 13 Feb 2010 22:09:31 -0600 To: dale at briannassaladdressing.com Subject: Re: [Samba] ads_sasl_spnego_krb5_bind failed: Program lackssupportfor encryption type [SEC=UNCLASSIFIED] > On Sat, Feb 13, 2010 at 01:35:12PM -0600, dale at briannassaladdressing.com wrote: > > Alex, > > > > I've been a
2005 Aug 02
0
SEC: UNCLASSIFIED:-Could not convert sid to gid
I'm using a Proliant GL-380 server running Red Had Linux ES 4 (2.6.9-5.0.3.ELSMP) and Samba 3.0.10-1.4E. The server is acting as a Domain Member Server of an ADS Windows 2003 server. The problem I haveI been having is with some groups not being "migrated" to the Linux environment, or more specifically converting the group SIDs to GIDs. The problem can be summarised as follows: *
2017 Aug 30
0
FW: Predictive accuracy measures in a recently released R package, spm: Spatial Predictive Modelling [SEC=UNCLASSIFIED]
Hi All, Just thought you might be interested in a recently released R package, spm: Spatial Predictive Modelling. It aims to introduce some novel, accurate, hybrid geostatistical and machine learning methods for spatial predictive modelling. Of 22 functions available in spm, two functions are for accuracy assessment. Perhaps they are not only useful tools for spatial predictive modelling