Displaying 20 results from an estimated 1000 matches similar to: "Drop last numeral"
2010 Feb 17
1
Procedure not working for actual data
Hello all,
I have what i feel is a unique situation which may not be resolved with
this inquiry. I have constructed the below data set so that i may give an
example of what im doing. The example works perfectly and i have no issues
with it. My problem arises with my actual data, which includes another 11
columns of data (used in later analysis) and a total of about 7000
cases(rows). i
2009 Oct 29
5
Summing identical IDs
Hello All,
I would like to select records with identical IDs then sum an attribute
then and return them to the data frame as a single record. Please consider
Acres<-c(100,101,100,130,156,.5,293,300,.09)
Bldgid<-c(1,2,3,4,5,5,6,7,7)
DF=cbind(Acres,Bldgid)
DF<-as.data.frame(DF)
So that:
Acres Bldgid
1 100.00 1
2 101.00 2
3 100.00 3
4 130.00 4
5 156.00 5
2010 Sep 13
1
Transforming character vector
Hi guys,
Cant seem to find a solution for this. I am looking for a substitute for
cut that can transform character vectors. So as cut would be used below to
transform YearCat-> YearCat2 base on Year and vector
Ag<-c("00-'70","'71-'75","'76-'85","'86-'09") using 'cut '
2004 Sep 13
5
music on hold not strting
Good day all
I added the music on hold entry in vpb.conf and commented out default line in
musiconhold.conf.
Asterisk starts up with the default mp3 but as soon as I remove it and add my
mp3 it just doenst start up and gives a broken pipe error?
Please Help or advice
Thanks
ALtus
2008 Apr 04
4
vnc mouse out of sync
Hi List,
i finally got Win2003 server running on xen 3.2.0. But the mouse
pionter doenst sync when i connect to the vnc server. it seems like
the windows pointer is faster than my mouse and accelerating... with
that i cant work really well (as a linux guy i used the keyboard) but
the win admin is totally lost without the mouse! Any ideas how to sync
the pointers?
regards Martin
2013 Apr 07
2
group data in classes
Hello all!
I have a problem to group my data (years) in 10 years classes. For example
for year
year decade
1598 1590-1600
1599 1590-1600
1600 1590-1600
1601 1600-1610
---
my is like this>
[1] 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611
1612
[16] 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626
1627
[31] 1628 1629 1630 1631 1632 1633
2012 Feb 06
5
I bet apply has a solution
Hi all
For the data below, I would like to return a logical value indicating
differences in the data.
#Create data
Data..<-data.frame(a=rep(1,10),b=c(rep(1,9),2),c=c(rep(1,8),2,2))
a b c
1 1 1 1
2 1 1 1
3 1 1 1
4 1 1 1
5 1 1 1
6 1 1 1
7 1 1 1
8 1 1 1
9 1 1 2
10 1 2 2
So what I want is to return logical value telling me if all the values are
the same. So the result would be a b
2010 Nov 29
3
List elements of NULL to value
Hi everyone,
I am posting this because i know its easy and i cant for the life of me
figure out how to do it though i have tried and through a ridiculously
complex loop made it happen. I need to convert some list elements of NULL
value to 0s so they mesh with my data frame properly. So for
A<-list(1,NULL)
returns
[[1]]
[1] 1
[[2]]
NULL
Would instead return
[[1]]
[1] 1
[[2]]
[1] 0
2013 Mar 12
5
extract values
Hello all!
I have a problem to extract values greater that for example 1820.
I try this code: x[x[,1]>1820,]->x1
Please help me!
Thank you!
The data structure is:
structure(c(2.576, 1.728, 3.434, 2.187, 1.928, 1.886, 1.2425,
1.23, 1.075, 1.1785, 1.186, 1.165, 1.732, 1.517, 1.4095, 1.074,
1.618, 1.677, 1.845, 1.594, 1.6655, 1.1605, 1.425, 1.099, 1.007,
1.1795, 1.3855, 1.4065, 1.138, 1.514,
2010 Sep 13
2
proportion
Hi ,
SO i have been on a role of asking simple questions lately. So much for
feeling like im getting this R business.
I wrote a script 2 weeks ago that utilized "proportion" to turn values in a
table (from "table") into proportions to then graph. I now get an error
that proportion is not a function so im confused. I ran the script a few
times and im thinking maybe i had
2010 Aug 09
4
Pie Chart in map
Hey R'rs,
So im sick of dealing with ESRI products and am looking to stream line a
process i now use GIS to do using R. I have made a lot of maps using R but
have not yet seen a map that puts pie charts within the map to help
represent data like the attachment.
http://r.789695.n4.nabble.com/file/n2318816/template1.bmp
I found Tanimura et al. work "Proportional Symbol Mapping in
2011 May 17
4
Summarize by two or more attributes
Okay everyone heres a likely softball for someone.
Consider the following data frame:
#Create data
x<-rep(c(1,15),10)
y<-rnorm(20)
z<-c(rep("auto",10),rep("bus",10))
a<-rep(c(1,1,2,2,3,3,4,4,5,5),2)
#Create Data frame
Df<-data.frame(Source=x,Rate=y,Bin=a,Type=z)
I want to create a new column the equals the sum of the Rates for each type
(1,15) by Bin.
A
2012 Oct 11
3
Sorting a data frame by specifying a vector
Hello all,
I cannot seem to figure out this seemingly simple procedure.
I want to sort a data frame by a specified character vector.
So for :
df.. <- data.frame(Season=rep(c("Summer","Fall","Winter","Spring"),4),Obs=
runif(length(rep(c("Summer","Fall","Winter","Spring"),4))))
I want to sort the data frame
2011 Dec 01
2
Summarizing elements of a list
Hi everyone,
I looked around the list for a while but couldn't find a solution to my
problem. I am storing some results to a simulation in a list and for each
element i have two separate vectors(is that what they are called, correct my
vocab if necessary). See below
Version1_<-list()
for(i in 1:5){
Version1_[[i]]<-list(First=rnorm(1),Second=rnorm(1))
}
What I want is to put all
2010 Jun 03
2
Subsetting for unwanted values
Hi all,
I have toyed with this for too long today and in the past i used multiple
lines of code to get at what i want. Consider the following:
All i need to do is subset Pc to the values that do not equal Pc.X. The
first attempt doesnt work because i have unequal lengths. The second
attempt doesnt give me an the right answer.
2010 Mar 04
2
Removing colon from numerical data
Basic question, looked through the forum and documentation but didnt see a
solution.
So consider
O<-c(1:20)
D<-c("1:","2:","3:","4:","5:","6:","7:","8:","9:","10:","11:","12:","13:","14:","15:","16:",
2011 Jan 07
2
Dont show zero values in line graph
Hey everyone,
Im getting better at plotting my data but cant for the life of me figure
out how to show a line graph with missing data that doesnt continue the line
down to zero then back up to the remaining values.
Consider the following
x<-c(1:5,0,0,8:10)
y<-1:10
plot(0,0,xlim=c(0,10), ylim=c(0,10),type="n",main="Dont show the bloody 0
values!!")
lines(x~y,
2010 Oct 28
4
Alter character attribute
Hi everyone
I have some records that include a date attribute for the date and time but
i need to separate the data and analyze it separately in GIS by Month and
Year, so i need to pull these attributes out and create their own attribute
field.
So the input:
RawData2.. returns
ID period_end_date
1 22 9/10/2007 0:00:00
2 44 2/2/2006 0:00:00
and i need to get
ID period_end_date
2011 Dec 06
2
To Try or to TryCatch, I have tried to long
So after about 4 hours struggling with Try and TryCatch I am throwing in the
towel. I have a more complicated function that used logspline through
iterative distributions and at some point the logspline doesnt function
correctly for some subsets but is fine with others so I need to be able to
identify when the error occurs and stop curtailing the distribution and I
think this Try or TryCatch
2012 Jun 20
2
Using object as literal value in list vector
Hello all ,
This is a pretty simple question I think but cannot find an answer on the
list or in my brain. I would like to iterate through a loop and use a
vector of strings to name a number of list elements. For instance
#Create vector of strings
Et<- c("ACC","RTL","WHL")
MeanValues_ <- list("ACC" = 1000, "RTL" = 2000,