Displaying 20 results from an estimated 55 matches for "laurier".
Did you mean:
laurie
2012 Nov 09
5
using lapply with recode
...,10,1), prov=c(rep('Quebec', 5), rep('AB', 5))))
str(mylist)
###My current code
lapply(mylist, function(x) {
recode(x$prov, "'QUE'='QC' ; 'Quebec'='QC'")
}
)
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
2010 Apr 18
2
rosavent problem
...plotted 6 times around the 360
degrees. I also get the following error:
Error in legend(-fmaxi - 2 * fint, fmaxi, fill = col, legend = attr(frec, :
'legend' is of length 0
Can anyone help me with this?
Thanks.
--
Kevin Turner
Department of Geography
and Environmental Studies
Wilfrid Laurier University
Waterloo, Ontario
[[alternative HTML version deleted]]
2010 Oct 10
1
Create single vector after looping through multiple data frames with GREP
...>> from what they originally were.
>>>
>>> I'm grateful for any suggestions.
>>> Yours, Simon Kiss
>>>
>>>
>>>
>>> *********************************
>>> Simon J. Kiss, PhD
>>> Assistant Professor, Wilfrid Laurier University
>>> 73 George Street
>>> Brantford, Ontario, Canada
>>> N3T 2C9
>>> Cell: +1 519 761 7606
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mail...
2010 Oct 19
2
separate elements of a character vector
...ook like evenly-spaced x-labels?
Yours,
Simon Kiss
x1<-rnorm(500)
plot(x1)
test<-seq(1987, 2002, by=1)
test_2<-seq(2003, 2006, by=1)
test<-format(c(test, test_2), width=5)
mtext(test, side=1, line=2)
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 519 761 7606
2006 Jan 13
5
ads_connect: Program lacks support for encryption type
....QC.CA = {
default_domain = mydomain.qc.ca
kdc = server1.mydomain.qc.ca:88
kdc = server2.mydomain.qc.ca:88
admin_server = server1.mydomain.qc.ca:749
}
[domain_realm]
.mydomain.qc.ca = MYDOMAIN.QC.CA
mydomain.qc.ca = MYDOMAIN.QC.CA
Roberto Mason
IT Department
Sir Wilfrid Laurier School Board
235 Mont?e Lesage
Rosem?re, Qu?bec,
J7A 4Y6
2011 Jul 28
2
cycling from x11 window in RCommander to graphics device window: Mac Os 10.6.8
...is quite laborious, having to restart.
I've looked through the help documentation and tried reinstalling tcltk prior to opening up Rcommander, but that does not address the problem.
Any thoughts?
Yours, Simon Kiss
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 905 746 7606
2012 Aug 20
2
Changing line length in Sweave output works for numeric, but not for character vectors
...0,1)
@
<<echo=TRUE, results=verbatim>>=
test<-c('The government should do more to advance societys goals, even if that means limiting the freedom and choices of individuals.')
@
\end{document}
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 905 746 7606
Please avoid sending me Word, PowerPoint or Excel attachments. Sending these documents puts pressure on them to use Microsoft software and helps to deny them any other choice. In effect, you become a buttress of t...
2011 Nov 10
2
Listing tables together from random samples from a generated population?
...tistic)
}
hist(.z, xlab='Chi-Square Value', main="Chi-Squared Values From 100 different samples asking\nabout gender and tea/coffee drinking")
abline(v=3.84, lty=2)
Thank you in advance,
Simon Kiss
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 905 746 7606
2011 Jan 18
2
Counting dates in arbitrary ranges
...ormat(mydata[[1]], "%Y"))
t_1<-hist(as.numeric(mydata[[1]], breaks=c("14056", "14421")))$counts
cut(mydata[[1]], breaks=c(as.Date("2008-06-26"), ("2009=06-26")))
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 519 761 7606
2010 Apr 17
1
Frequency table
...40-49
50+
The final table will be used in the rosavent function to produce a wind rose
diagram just like in this example:
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=123
Anyone have any ideas. Thanks.
--
Kevin Turner
Department of Geography
and Environmental Studies
Wilfrid Laurier University
Waterloo, Ontario
[[alternative HTML version deleted]]
2011 Jan 17
1
Importing multiple text files with lapply.
...or in read.table(header = TRUE, sep = "\n") :
element 1 is empty;
the part of the args list of 'is.character' being evaluated was:
(file)
Does anyone have any suggestions?
Yours, Simon Kiss
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 519 761 7606
2012 Apr 16
1
grep and XML
...E)
txt<- getNodeSet(txt, '//p')
So, I can get the node, properly but then, if I try soething like this:
grep(c('USD'), txt)
I get:
integer(0)
Can anyone suggest a way forward?
Yours, Simon KIss
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 905 746 7606
2012 May 28
1
Rcurl, postForm()
...et The forms
forms<-getNodeSet(doc, "//form")
forms[[1]]
#These are the input nodes
getNodeSet(forms[[1]], ".//input")
#These are the select nodes
getNodeSet(forms[[1]], ".//select")
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 905 746 7606
2012 Dec 18
2
Changing Variable Names In VCD
...s there and then pass that to mosaic?
Or is there a way to do it simply within mosaic.
I was thinking something like:
mosaic(~var1+var2, labelling_args=list(varnames=c('newvar1', 'newvar2'))
Simon Kiss
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
2011 Jul 11
1
grep lines before or after pattern matched?
...nt [0-9]". There is an an argument to grep in unix that can do this ...grep -A4 'pattern' infile>outfile, but I don't know if there is an equivalent argument in R.
Any thoughts.
Yours, Simon Kiss
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 905 746 7606
2011 Jan 25
1
subsetting based on joint values of critera
...: num 2008 2008 2008 2008 2008 ...
$ ban : num 0 0 0 0 0 0 0 0 0 0 ...
$ partisan: Factor w/ 3 levels "democrat","mixed",..: 1 1 1 1 1 1 1 2 3 2 ...
$ news : num 1.67 2 0 0 2.38 ...
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 519 761 7606
2011 Mar 31
1
error in recode.defalt ....object '.data' not found
...onwhites<-recode(social$nonwhites, "1=4; 2=3; 3=2; 4=1; 8=NA; -9=NA")
*ERROR
Error in recode.default(social$nonwhites, "1=4; 2=3; 3=2; 4=1; 8=NA; -9=NA") :
object '.data' not found
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 519 761 7606
2006 Apr 13
1
Several anomalies - Samba ADS member computer
...e to log on.
3. I don't have the same problem, if the share is on a server 2000 or 2003 on my domain. I'm then able to access the share from users of another domain, as long as the group from the other domain is granted permission on the share
Roberto Mason
IT Department
Sir Wilfrid Laurier School Board
235 Mont?e Lesage
Rosem?re, Qu?bec,
J7A 4Y6
2011 Jul 23
2
sum part of a vector
...at[mydat$state==i, ]$news, function(x) sum(1:x))
}
I can sort of get the same sapply function to do what I want when working on a test string
test<-1:10
sapply(test, function(x) sum(1:x))
Any thoughts?
Simon Kiss
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 905 746 7606
2011 Apr 22
1
indexing list elements with lapply?
...runif(10, 0.85, 1)
gg<-cbind(gg, 1-ff)
hh<-runif(10, 0.86, 1)
hh<-cbind(hh, 1-hh)
ii<-runif(10, 0.92, 1)
ii<-cbind(ii, 1-ii)
jj<-runif(10,0.76, 1)
jj<-cbind(jj, 1-jj)
r<-list(ff, gg, hh,ii, jj)
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 519 761 7606