Displaying 20 results from an estimated 1000 matches similar to: "Help: formatting the result of 'cut' function"
2016 Apr 17
3
Trying to understand cut
Jeff,
Perhaps I was sloppy with my notation:
I want groups
>=0 <10
>=10 <20
>=20<30
......
>=90 <100
In any event, my question remains, why did the four different versions of cut give me the same results? I hope someone can explain to me the function of
include.lowest and right in the call to cut. As demonstrated in my example below, the parameters do not seem to alter
2004 Mar 17
9
Frequency table
This must be FAQ, but I can't find it in archives or with a site search.
I am trying to construct a frequency table. I guess this should be done with
table. Or perhaps factor and split. Or prop.table. cut? findInterval? Argh!
Please correct me if what I am looking for is not called a "frequency table".
Perhaps it's called grouped data.
> zz$x9
[1] 65 70 85 65 65 65 62 55
2016 Apr 17
2
Trying to understand cut
I am trying to understand cut so I can divide a list of numbers into 10 group:
0-9.0
10-10.9
20-20.9
30-30.9,
40-40.9,
50-50.9
60-60.9
70-70.9
80-80.9
90-90.9
As I try to do this, I have been playing with the cut function. Surprising the following for applications of cut give me the exact same groups. This surprises me given that I have varied parameters include.lowest and right. Can someone
2016 Apr 17
0
Trying to understand cut
Have you read FAQ 7.31 recently, John? Your whole premise is flawed. You should be thinking of ranges [0,10), [10,20), and so on because numbers ending in 0.9 are never going to be exact.
--
Sent from my phone. Please excuse my brevity.
On April 16, 2016 7:38:50 PM PDT, John Sorkin <jsorkin at grecc.umaryland.edu> wrote:
>I am trying to understand cut so I can divide a list of numbers
2012 Nov 27
1
Using factor variables with overlapping categories
ear folks ?
I have a question, though it is more of a logic- or a good
practices-question than a programming question per se. I am working with
data from the American Community Survey summary file. It is mainly
categorical count data. Currently I am working with about 40 tables covering
about 35 variables, mainly in two-way tables, with some 3-way and a handful
of four-way tables. I am going to
2008 May 22
4
Binning groups
Hi, this is probably quite simple but I can't seem to do it correctly. I have
a data frame of counts of infections in different ages; something like:
count=c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 7, 8, 8, 9, 9,
10, 11, 15, 17, 17, 17, 17, 19, 19, 19, 19, 20, 20, 20, 21, 21,
21, 22, 22, 22, 22, 23, 23, 23, 23, 23, 24, 24, 25, 27, 31, 33
)
age=c(3, 8, 9, 7, 56, 58, 10, 13, 53, 55, 11,
2009 Jan 30
1
How to generate a xyplot with multiple panels using an empty data frame ?
Hi:
I am coding some interactive interface using an xyplot from lattice.
When a user clicks on a panel of the xyplot, a simulation is executed and
the resulting data is plotted on the corresponding panel.
The problem is that I start with an empty data frame and only fill it as the
user request data from simulations.
And, I have found it impossible to create a conditional plot that contains
panels
2009 May 27
2
problem with cbind
Hi All,
I have a file with two columns, the first column has the names of the
patients and the second column has the age. I am looking into creating an
output file that looks like
1-10 10-20 etc
Eric Chris
Bob mat
Andrew
Suzan
Where each column has the name of the patients in a given age category that
is displayed in the header. For example in the output, the first
2009 Jan 30
0
How to generate a xyplot with multiple panels using an empty data frame ?
Hi:
I am coding some interactive interface using an xyplot from lattice.
When a user clicks on a panel of the xyplot, a simulation is executed and
the resulting data is plotted on the corresponding panel.
The problem is that I start with an empty data frame and only fill it as the
user request data from simulations.
And, I have found it impossible to create a conditional plot that contains
panels
2005 Jan 05
5
Converting integers to chars i.e 1 to "01"
Hello!
I am producing a set of images and I would like them to be sorted by names
I give. I was able to produce my names and add integer to them. That is
easy. But my problem lies in sort of file from this process:
figure_10.png
figure_11.png
figure_12.png
...
figure_1.png
figure_20.png
...
So I would like to convert integers to something like 01 if upper limit for
this conert is 10 or 001
2009 Nov 09
1
adding zero to a number vector
Hi !
I'd like to create
a vector
that has this kind of numeration
001
002
003
.
.
.
099
I have looked at format help page but couldn't get
any hint on how to do it.
Thanks
Anna
Anna Freni Sterrantino
Ph.D Student
Department of Statistics
University of Bologna, Italy
via Belle Arti 41, 40124 BO.
[[alternative HTML version deleted]]
2009 Sep 13
1
Manage an unknown and variable number of data frames
Hi,
In the code below I create a small data.frame (dat) and then cut it
into different groups using CutList. The lists in CutList allow to me
choose whatever columns I want from dat and allow me to cut it into
any number of groups by changing the lists. It seems to work OK but
when I'm done I have a variable number of data frames what I need to
do further operations on and I don't know
2004 Aug 12
3
Compatibility with NetApp DataONTAP filers?
Good ${time of the day}
I have just been wondering if anyone would know if Samba is compatible with the CIFS implementation of the Network Appliance DataONTAP filers?
http://www.netapp.com/products/filer/ontap.html
I have so far unable to connect to any shared folder on the NetApp filer that require authentication. An attempt to access or list shared resources on the NetApp filer fails with the
2006 Apr 07
1
smbcacls cannot locate the object of a samba share
Hello
smbcacls is not able to locate the object of a share.
I've attached a copy of the smb.conf file and the debug output of the
smbcacls command.
Within XP/NT I'm able to get and set the acls with no problem.
Thanks
Regards,
Komal
[global]
workgroup = test
server string = Samba Server
interfaces = eth0, lo
bind interfaces only = Yes
passdb backend =
2009 Nov 09
2
Negative integer subscripts in [[?
Should negative subscripts be outlawed in
x[[subscript]]
?
Currently, if subscript is a scalar then it can only
be negative if length(x)==1 (otherwise [[ throws an
error). If length(subscript)>1 then it gets treated
as an attempt to recursively extract an element of
a nested list.
> list(10,20)[[-1]] # get the last element out of 2
[1] 20
> list(10,20,30)[[-(1:2)]] # get the last
2012 May 19
3
converting csv to image file
Hello everyone,
I want to get a 1km by lkm grid raster image using my csv data. If I call
latitude=a, longitude=b and preciptation=c.
a<-(1,2,3,4,5)
b<-(6,7,8,9,10)
c<-(10,20, 30,40, 50)
Then I found an example in r help which goes like
pts = read.table("file.csv",......)
library(sp)
library(rgdal)
proj4string(pts)=CRS("+init=epsg:4326") # set it to lat-long
pts =
2005 Mar 31
1
aggregate question...
R-folks,
Is there a function, like aggregate, that allows users to bin values?
I've got to break down a data frame into classes of 5cm (or something like
it), and I only know how to do it using code like,
signif <- symnum( stems$dbh,
corr = FALSE,
na = FALSE,
cutpoints = c(0,10,20,30,40,999),
symbols = c(0,10,20,30,40) )
2007 Jan 29
3
Problem runing Samba 3.0.23d with LDAP on FreeBSD 6.2 sparc64
Hi
I want to run a Samba PDC with LDAP backend on a FreeBSD 6.2 for Sparc64.
And off course, if I send this mail, it is not working ! :-(
I have this error message when using smbclient on the PDC itself.
The command line is: smbclient -L janus -Uadministrator%toto
The result is: session setup failed: Call returned zero bytes (EOF)
I've tested on 2 differents FreeBSD6.2 Sparc64, I have the
2011 Feb 02
2
Counter in a For Loop - Efficiency Issue
I have a 32000 x 14 matrix (M) where entry (x, y) corresponds to
person x at a discrete time y. I then have a matrix (M2) of 60000 x 2
where each entry is a an event by a person that is in the above 32000
and at a time that is in the range of the discrete time points above.
I want to populate the another matrix (M3) such that (x, y) is the
number of events of person x between times y-1 and y. This
2008 Nov 03
2
Join fails with 'SPNEGO login failed: invalid parameter'
Hi,
I am running Samba 3.2.4 on a Solaris 10 SPARC machine. The config is pretty
simple (see below). Security is set to 'domain'. The PDC and BDC are running
3.0.30 without problems.
When joining the machine to the domain with 'net rpc join', it fails with:
Could not connect to server 130.37.79.2
Connection failed: NT_STATUS_INVALID_PARAMETER
when running the net command