Displaying 20 results from an estimated 100 matches similar to: "Creating a simple line graph"
2010 Nov 01
1
ggplot map bounds
To all,
I'm working with code below to produce a map with station data plotted in
points, but right now I'm having trouble with the mapping portion of this
code
states <- data.frame(map("state", plot=FALSE,xlim=
c(-85,-75),ylim=c(33,37))[c("x","y")])
usamap<- ggplot(states)+geom_path(aes(x,y))
usamap
When I plot this the problem is that the bounds of
2009 Oct 13
3
Selecting initial numerals
II just want to create a new object with the first two numerals of the data.
Not sure why this isnt working, consider the following:
EmpEst$naics=c(238321, 624410, 484121 ,238911, 811111, 531110, 621399,
541613,
524210 ,236115 ,811121 ,236115 ,236115 ,621610 ,814110 ,812320)
EmpEst$naics2<-formatC(EmpEst$naics %% 1e2, width=2, flag="", mode
="integer")
#RESULT:Warning
2009 Jul 17
2
Re placing null values (#NULL!)
I am stumped. I have a data set with multiple columns and about 65,000 case.
Some of the cases have a "#NULL!" value so for dataframe "Props_":
access_emp pct_vacant TAVAIL park PARKACRES totlandare
4538 52.15 #NULL! 0 1 22.99 74,129.70400
4539 52.15 .09 0 1 22.99 982,850.80400
10292 54.20
2009 Oct 02
1
text mining
The following code is derived from a paper titled "Text Mining Infrastructure
in R" (http://www.jstatsoft.org/v25/i05/paper). The example below seems to
load some default documents for analysis, some sort of latin document. I
cannot for the life of me figure out to load my own document let alone an
entire corpus. I have searched the above documenet as well as related
documentation.
2008 Apr 06
3
how to manupute data frame with conditions fill cell with previous value if next cell is zero
Dear R Experts,
This is the 2nd time in the chat room. Its a great place to get help from R
experts.
I have a data frame problem, it contains thousands of data.
part of it, I am giving for explaining the problem
date day x y z
82 1989-04-28 Fri 2118.0 2418.80 33713
83 1989-05-01 Mon 0.0 2414.96 33793
84 1989-05-02 Tue 2103.1 2402.86 33955
2008 Sep 30
1
conditional loop
I am looking up a number based upon a randomly selected number and then
proceed to the rest of my code if the corresponding value is greater than or
equal to yet another value.
so if
Dev_Size = 14
and my randomly selected number is 102
and i am looking up 102 in the following table
100 21
101 4
102 9
103 52
104 29
So i select the the corresponding value of 102, which is 9 and
2009 Apr 29
2
Re moving unwanted double values in list
I have a procedure that goes sorts out some numbers based on specidifed
criteria and for some reason the list contains double values in some of the
rows such as:
TAZs <-
[[84]]
[1] 638
[[85]]
[1] 643
[[86]]
[1] 644 732
[[87]]
[1] 651 801
i would like to check list TAZs for double values and remove any if present.
I have tried
if (length(TAZDs==2))
rm(TAZDs[2])
but no luck. I cant
2008 Oct 11
1
Rsync 3.0.5pre1 released
Rsync version 3.0.5pre1 is now available for release testing. This is
a bug-fix release.
Please test this new release and send email to the rsync mailing list
with any questions, comments, or bug reports.
To see a full summary of the changes since 3.0.4, visit this link:
http://rsync.samba.org/ftp/rsync/src-previews/rsync-3.0.5pre1-NEWS
You can download the source tar file and its signature
2008 Oct 11
1
Rsync 3.0.5pre1 released
Rsync version 3.0.5pre1 is now available for release testing. This is
a bug-fix release.
Please test this new release and send email to the rsync mailing list
with any questions, comments, or bug reports.
To see a full summary of the changes since 3.0.4, visit this link:
http://rsync.samba.org/ftp/rsync/src-previews/rsync-3.0.5pre1-NEWS
You can download the source tar file and its signature
2008 Feb 09
1
Problem with fitdistr function
Hello,
I am using fitdistr function for parameter estimation.
When I use
fd<-fitdistr(V2,"gamma")
I get following error:
Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, :
initial value in 'vmmin' is not finite
fd<-fitdistr(V2,"weibull")
Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, :
2008 Nov 07
1
For Loop - loading 10 sets of data and calculating
I am trying to simplify my code by adding a for loop that will load and
compute a sequence of code 10 time. They way i run it now is that the same
8 lines of code are basically reproduced 10 times. I would like to replace
the numeric value in the code (e.g. Bin1, Bin2....Bin10) each time the loop
goes around. Below i tried doing this with a simple for loop and adding the
string character before
2009 Aug 04
2
Re ferencing columns and pulling selected data
Please consider the following inputs:
PrsnSerialno<-c(735,1147,2019,4131,4131,4217,4629,4822,4822,5979,5979,6128,6128,7004,7004,
7004,7004,7004,7438,7438,9402,9402,9402,10115,10115,11605,12693,12693,12693)
PrsnAge<-c(59,48,42,24,24,89,60,43,47,57,56,76,76,66,70,14,7,3,62,62,30,10,7,20,21,50,53,44,29)
2006 May 15
26
Mongrel / RoR first page load times.
I am noticing considerably longer first page load times on most of my
rails apps running Rails (1.1.2) off Mongrel (0.13) on linux. After the
initial request everything seems to run OK. Has anybody else noticed
this and is there anyway to compensate.
Also following the instructions for working with unicode from the rails
wiki, the number of pages served drops noticeably. Are there any sites
2012 Jan 03
7
Low performance
Hi!
I do a rsync between 2 machines. The throughput is only 2 MByte/Sec.
Each machine is a Supermicro server with
2 x 8 Core Opteron 6128
64 GByte of ECC RAM
1 LSI MegaRAID SAS 9280-24i4e
24 x 2TByte SATA Disks as a RAID6
2 Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network-cards
Both run Ubuntu 11.04 64Bit.
Both use rsync version 3.0.7 protocol version 30
There are no
2008 Sep 24
2
Calling object outside function
What i thought was a simple process isnt working for me. After i create an
multiple objects in a function (see below), how to i use those objects later
in the program. I tried calling the function again and then the object i
wanted and it worked the first time but now it doesnt( i think i defined the
object outside the function accidently so then it worked but when run
properly it doesnt). I
2008 Nov 25
2
creating a new vecotr in a for loop
I have consulted the intro and nabble but have not found an answer to what
should be a simple question, here goes:
I am doing a crosscheck of a data frame and pulling out a single value based
on an inputted value ie based on x i will select y, or if x =2 then my code
returns 7.
x y
1 4
2 7
3 10
4 2
My code currently iterates through for as many times as the length of the x
2011 Oct 12
0
[LLVMdev] dragonegg svn benchmarks
Hi Chris,
>> PS: With -fplugin-arg-dragonegg-enable-gcc-optzns the LLVM optimizers are run at
>> the following levels:
>>
>> Command line option LLVM optimizers run at
>> ------------------- ----------------------
>> -O1 tiny amount of optimization
>> -O2 or -O3 -O1
>> -O4 or -O5
2011 Oct 11
4
[LLVMdev] dragonegg svn benchmarks
On Oct 8, 2011, at 12:05 PM, Duncan Sands wrote:
> PS: With -fplugin-arg-dragonegg-enable-gcc-optzns the LLVM optimizers are run at
> the following levels:
>
> Command line option LLVM optimizers run at
> ------------------- ----------------------
> -O1 tiny amount of optimization
> -O2 or -O3 -O1
> -O4 or -O5
2009 Jul 30
4
truncating values into separate categories
Hi all,
Simple question which i thought i had the answer but it isnt so simple for
some reason. I am sure someone can easily help. I would like to categorize
the values in NP into 1 of the five values in "Per", with the last
category("4") representing values >=4(hence 4:max(NP)). The problem is that
R is reading max(NP) as multiple values instead of range so the
2018 Sep 14
3
NUMA issues on virtualized hosts
Hello,
I have cluster with AMD EPYC 7351 cpu. Two CPUs per node. I have performance
8-NUMA configuration:
This is from hypervizor:
[root@hde10 ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 64
On-line CPU(s) list: 0-63
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 2
NUMA