Displaying 20 results from an estimated 10000 matches similar to: "displaying a note or comment when --format doc"
2009 Jun 11
2
Expand a contingency table based on the value in one column
Hi R-helpers,
I have the following (dummy) dataframe:
> test
DATE LOCATION KIND CLASS COUNT
1 1 1 CAR A 2
2 1 1 TRUCK D 3
3 1 1 BUS E 4
4 1 2 CAR E 2
5 1 2 TRUCK A 7
6 1 2 BUS F 1
That I would like to turn into this:
> test2
DATE LOCATION KIND CLASS
1 1 1
2009 Jan 26
1
reshape problem: id and variable names not being recognized
Hi everyone. Long time listener, first-time caller here.
I have a data set that's been melted with the excellent reshape package, but
I can't seem to cast it the way I need to.
Here's the melted data's structure:
> str(mdat)
'data.frame': 6978 obs. of 4 variables:
$ VehType : Factor w/ 2 levels "Car","Truck": 1 1 2 1 1 2 1 1 1 1 ...
$ Year :
2006 Jun 01
1
find not working properly
here is the input view
[code]
<form method="post" action="found">
<br>
<b>Find by</b><br/>
<b>Vehicle Number:</b><br/>
<input id="truck_vehicleID" name="truck[vehicleID]" size="20"
type="number" value=""/><br/>
</p>
<%= link_to "Find", :action
2011 Jun 06
2
qplot fill and colour not working as expected
I am just learning to use qplot and can't get the fill/colour to work. Below
is the R code for a scatter plot and bar graph.
library(ggplot2)
x<-c(1,2,3,4,5,6,7)
y<-c(1,2,3,2,5,6,3)
qplot(x,y, main="Scatter Plot Test", xlab="X Label Test", ylab="Y Label
Test", colour="blue")z<-c("van", "van", "van",
2011 Aug 11
1
help with loops
hi I need help with list object.
I have a list object
> a <- c('apple','orange','grape')
> b <- c('car','truck','jeep')
> c <- list(a,b)
> names(c) <- c('fruit','vehicle')
> c
$fruit
[1] "apple" "orange" "grape"
$vehicle
[1] "car" "truck"
2009 Jun 22
4
SAS-like method of recoding variables?
Dear R-helpers,
I am helping a SAS user run some analyses in R that she cannot do in
SAS and she is complaining about R's peculiar (to her!) way of
recoding variables. In particular, she is wondering if there is an R
package that allows this kind of SAS recoding:
IF TYPE='TRUCK' and count=12 THEN VEHICLES=TRUCK+((CAR+BIKE)/2.2);
Thanks for any help or suggestions you might be able
2009 May 26
3
Still can't find missing data
I'm trying to prepare some cross tabs, looking at a number of variables against a variable "connector" which has 2 values: "OD Passenger" and " Connector".
When I produce a xtabs one way I have observations under "Connector" but against a different variable "Connector" shows all 0 values.
What is wrong? I've looked into the na commands
2009 Feb 19
1
How do I get xtabs to show missing data?
I presume the behavior below (no Connector values in the second table)
is because I have na values in my dataframe. How do I get them to list?
I found references to na.action and na.pass, but I could not figure out
how I could use them with xtabs to list the na as a value. I'm sure
there's a simple syntax I need, but it's not obvious to me.
> # Weighted Data
2009 Sep 25
1
if else and loop for code in R
I am using if else and loop to sortout the data set that is the values
less than o or more than 100 will be chosen.I could not get outTable
with loop.
Please help me to correct the code:
I USED:
# Read
a_data <- read.table("D:/SNP/copy.sas", header=T, sep="\t")
tr <- a_data$truck
ca <- a_data$cars
length <- nrow(a_data)
outTable <- matrix(nrow=length,ncol=3)
2008 Sep 23
2
how to model this
Dear list,
I met with a business case and feel frustrated to model it,scenario is like
this
1. logistics department running
2. a lot of customers place orders and goods need to be send to their site
(nationwide)
3. order received and then choose from a list of truck carriers to deliver
goods,a cheapest one should be selected but might not available for the
limit of order-shipment time,so a more
2008 May 10
2
cannot locate cdrom
Im tryingn to run a cd from the windows 3.1 to '95 era. Its a Ford factory service manual disk for pulling up automotive diagnostics/schematics etc. The disk installed without a problem using wine /path/to/cdrom/install.exe . I can also run the locally installed executable file without a problem once again using wine /path/to/local.exe . The problem is that the program requires a callback to
2016 Nov 06
2
Asterisk 1.8 to Asterisk 13.11 appending area code to local numbers
Hello, I would like to add area code to local numbers, it worked like a
charm on Asterisk 1.8 but does not work on Asterisk 13.11.
Extensions.conf; worked before on Asterisk 1.8
; Adding Area code to local numbers
exten => _9XXXXXXX,n,Set(CALLERID(all)="$CallerID" <3818008000>)
exten => _9XXXXXXX,n,Dial(SIP/voip-truck/1381${EXTEN:1},80)
Any ideas?
Thanks,
Motty
2007 Jun 19
5
TentSteak 0.2.0
The second release of TentSteak is out and available as a gem on
rubyforge ("gem install tent_steak"). This version introduces a
handful of new form helpers, a couple method renames, editable HTML
tables, and some application bootstrappers for kickstarting Camping
and initializing ActiveRecord.
It''s still in active development, and I''d very much appreciate
2009 Jun 09
2
Sweave and accents
Hello.
I want to write my notes in Sweave in my own language (spanish). But
my language has accents and when I run Sweave in R to translate my Snw
file into the tex file the accents are translated into unrecognizable
characters.
For example, the word "cami?n" (truck) is translated into "cami??n"
Somebody knows how can I do it?
One solution I don't like is using a
2007 Jan 06
1
trunk build 708:access.c
I was having a little trouble building the 708 truck... access.c bombs out:
gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O -Wall
-Wsign-compare -MT access.o -MD -MP -MF .deps/access.Tpo -c -o access.o
access.c
access.c: In function `mask_cmp':
access.c:59: error: structure has no member named `s6_addr32'
access.c:61: error: structure has no member named `s6_addr32'
2013 Feb 18
1
[LLVMdev] how to check out revision 165095
Hello:
I am told that compile cling, from CERN, I need revision 165095. HOW do I check out that version? When going through the /tags directory, all version are 17xxxx.
I tried svn checkout -r 165095 http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx llvm
but it will not work with either /truck or /tags
I tried svn checkout http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx at 165095, but that also doen't work
2006 Nov 29
1
Asterisk connection to a PBX
We are thinking of setting up an Asterisk system to route calls between 2 of our factories. Our idea is to connect an Asterisk box to each PBX and then use SIP(or IAX) to truck between the 2 systems on our internal network.
I would be interested in any ideas regarding the connection points:
1. Is using Asterisk a good solution?
2. Is using a T-1 card the best way to connect the PBX and
2020 Aug 12
3
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
Hi everyone,
Well, we lost power here again. I was not at home, but I guess a dump truck smashed into some power poles and took out half the city; actually tripped most of the breakers in the panel. Anyways, the power was out for just a few seconds and of course my servers shutdown on me after power being out for just a second or two. Here is my syslog from two different machines. I included
2005 Jun 08
2
unknown boot options on kernel command line.
changing i386 COMMAND_LINE_SIZE to 1024
attached is a simplistic fix to change kernel's command-line size from
256 to 1024,
tomatch capability in syslinux 3.08.
It seems to work. Is this all there is to it ?
One of the reasons I did this was to figure out what extra options are
appearing, and why.
b4 extending: (the last bit is truncated)
Jun 4 06:31:05 truck kernel: Kernel command
2005 Aug 22
3
Help me with my memory
Okay, now, before 3.10 is finalized... what bug reports am I still
forgetting?
-hpa