Displaying 20 results from an estimated 1000 matches similar to: "How can I calculate conditional mean in a large dataset including date data"
2006 Oct 12
3
Cross two dataframe
Dear r-users!
I would like to cross two data frame which have the same row number but
different in the number of column. Can anybody help me for this case ?
Thanks a lot in advance
--------------------------------------------------------------------------------
Majid Iravani
PhD Student
Swiss Federal Research Institute WSL
Research Group of Vegetation Ecology
Z?rcherstrasse 111
2006 Oct 13
3
multiply two matrixes with the different dimension column by column
Dear all,
I would like to multiply two matrixes with the different dimension column
by column. Let make an example:
If I have two matrixes "X" and "Y"as follow:
X<- matrix(1:12, nrow=4, ncol=3, dimnames=list(c("A","B","C","D"),
c("stage1","stage2","stage3")))
Y<- matrix(1:28, nrow=4, ncol=7,
2010 Jan 14
2
paired repeated measurements
I have the following problem:
I measured co2 on 6 paired sites (one grubbed and one non-grubbed
fence per site -> grubbing = treatment). These measurements I repeated
15 times over 2 years. So, now my problem is how to analyze these
data. I tried the following model:
mod1_CO2<-lme(co2~treatment+time,random=~1|site,data=CO2_t1_t15)
I think with the random effect I included the paired
2005 May 07
3
converting NA/non-NA's to a binary variable
Dear R colleagues,
I am trying to create a new column in a data frame, which converts values
and NA's from another column into binary format. Essentially I need the
NA's to become 1 and the rest to be 0. The code I wrote is returning the
following error message:
Error in if (mort[i, 4] != NA) mort[i, 8] <- 0 else if (mort[i, 4] == :
missing value where TRUE/FALSE needed
2006 Jan 26
1
construct a bundle, subdirs do not exist?
Hi,
Sorry to bother, but I checked around and did not succed creating a
bundle from six existing packages (which are checkable, installable,
etc. individually). I carefully followed the procedure given in ch.
1.1.5 Package bundles. However, I am getting
hoffmann at fluke:~/R/Sources >R CMD check cwhmisc
* checking for working latex ... OK
* using log directory
2011 Dec 01
3
vector
Hi.
Can you please answer to my questions about R ?
1.how can I write command for vector ?
for exaple in this sample :
I have this :
a1 <- c (1:10)
now how can I put in the vector ?
bye for now,
Thanks a lot.
Majid.
[[alternative HTML version deleted]]
1998 Dec 22
2
Problems with SMB.CONF (2nd)
Majid,
On Wed, 23 Dec 1998 00:20:31 +1100, Majid Tajamolian wrote:
>> >; hosts allow = *.bol.sharif.ac.ir
>> >; hosts allow = .bol.sharif.ac.ir
>> >; hosts allow = 194.225.42.*
>> > hosts allow = 194.225.42.
>> >2. As you see above, if I use a domain detector except with the format
>> > "194.225.42." , clients on our LAN
2012 Jan 15
1
Correct Localized Numbers on Plots, related to glibc!
Dear R Helpers,
I want to localize my plots, i.e. the numbers by x & y axis be
Persian, using Persian numerals and Persian decimal separator. I
change the locale to fa_IR.utf8, but nothing on plots change. I can
change the numerals shaping to Persian ones (???? instead of 1234)
using some non-standard fonts but the decimal point is a problem. I
asked about that in Persian-Computing mailing
2003 Dec 29
2
Outlook 2002 sp-2 and initial connection after OS reboot
I have a strange problem that I have been experienceing with dovecot:
Dovecot version : 0.99.10.4-1 Using IMAP:
When I restart the OS (windows XP) and open up Outlook 2002 SP2 I
don't automatically get my IMAP folders on the DOVECOT imap server.
(the one on the uw_imap server open up straight away)
When I click on inbox I cam given a message saying : unable to connect
to imap folders
2004 Jul 06
1
Samba 2.2.8.a for Solaris
Hi,
I just downloaded and installed samba2.2.8.a on a sun4u sparc box running Solaris8. The installation process completed w/o errors and I can now confirm that by "$pkginfo -l samba". I can even start and stop samba by "/etc/rc3.d/S99samba.server start" and see that smbd and nmbd processes are running. However, I can not find the "configure" file in the source
2004 Sep 30
4
Can't add new users
Hi all,
I tried to add a new user to a Samba share, I did all the usual: made a Unix account on the Unix server for the user which was the same as the user's window's UID. Put her name as a valid user for that directory in server:/etc/opt/samba/smb.conf, and stopped and started server:/sbin/init.d/samba server; nothing worked.
Interesting observations: 1- After performing the steps
2020 Nov 18
2
formatting issue with gcc 9.3.0 on Ubuntu on WSL2
On Wed, 18 Nov 2020 at 10:26, Tomas Kalibera <tomas.kalibera at gmail.com> wrote:
>
> On 11/17/20 9:34 PM, Bill Dunlap wrote:
> > I just got a new Windows laptop (i7, 10th generation CPU), installed
> > 'Windows Subsystem for Linux 2' and then installed Ubuntu 20.04 and
> > used 'apt-get install' to install packages that the R build seems
> > to
2002 Sep 04
3
logical and NA
Hi there, (sorry Martin, ich habe den falschen Empfaenger erwischt :-( )
Is there a function in the base package or elsewhere which returns TRUE and
not NA, even if NA is involved: (I did not find in the help system :-( )
if ( x==something & !is.na(something))
or
if ( x==something & !is.na(x==something))
If "something" is complicated, a function would be handy.
Thanks
2004 Mar 24
6
First Variable in lm
Hi all,
I just cannot think of how to do it:
I want to take the first variable (column) of a data frame and regress
it against all other variables.
bla <- function (dat) {
reg <- lm(whateverthefirstofthevariablenamesis ~., data=dat)
return(reg)
}
What kind of function do I have to take instead of the
whateverthefirstofthevariablenamesis,
eval(), substitute(), get(), ...
to
2004 Sep 22
1
is.constant
>>x <- c(1, 2, NA)
>>is.constant(x)
>
> [1] TRUE
>
> For data such as c(1, 1, 1, NA), I should think the safest answer should be
> NA, because one really doesn't know whether that last number is 1 or not.
>
> Andy
>
My version is
is.constant <- function(x) {
if (is.numeric(x) & !any(is.na(x))) identical(min(x), max(x)) else FALSE
}
2008 Dec 05
1
How to retrieve a method
Hi there,
I am interested in the inner workings of wilcox.test:
> wilcox.test
function (x, ...)
UseMethod("wilcox.test")
<environment: namespace:stats>
how can I get at the code, if it is R-code? For Methods one should be able to learn what extension to use, but here default or such do not help.
Is there a wayplot.default to learn which different versions of
2006 Jan 11
2
Browser problem, Misrepresentation of .html in Solaris Firefox (PR#8471)
Hi there
I hope that I am in the right forum.
I am working on Win2000 PC connected via Exceed 6.0.1.0 to a
SunOS fluke 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-480R
There I am using Mozilla Firefox 1.0.7 as a browser.
I am having
difficulties viewing .html files. Their first pages are displayed
normally, black on white, links in blue. When I scoll down, the pages
appear black
2012 Jun 10
1
How to see the implementation of print function for a class from a package?
Dear R-helpers,
I want to see the code used when printing (using print(object) or by just
typing the object name) for a class from a package.
I can see the summary code using packagename::summary.classname but nothing
for print method and also plot methods.
In general, how can I see the COMPLETE code for a package? not just the
function defs?
--
Majid Einian,
PhD Candidate in
2001 Feb 14
2
assignment function
Hi,
I am trying to create the assignment function:
"substring<-" <- function(text, first, last=100000, sub) {
if(is.character(first)) {
if(!missing(last)) stop('wrong # arguments')
return(sedit(text, first, sub))
}
lf <- length(first)
if(length(text)==1 && lf > 1) {
if(missing(last)) last <- nchar(text)
last <- rep(last,
2001 Feb 05
1
packages, help
Hi,
Using help under help.start() is working fine (html)
Q1:
using > ?solve results in the message
"sh: ~/R/tmp/R4f32S1cfb: cannot open"
displayed in the XEmacs buffer "help[R](solve)". BUT there exists a file
R.R4f32S167e
in that directory. (not quite the same name).
Does the "sh: " prefix suggest that the shell "sh" is run, although my