Displaying 20 results from an estimated 200 matches similar to: "Name of a column"
2006 Jan 12
2
tapply and weighted means
I' m trying to compute weighted mean on different
groups but it only returns NA. If I use the following
data.frame truc:
x y w
1 1 1
1 2 2
1 3 1
1 4 2
0 2 1
0 3 2
0 4 1
0 5 1
where x is a factor, and then use the command :
tapply(truc$y,list(truc$x),wtd.mean, weights=truc$w)
I just get NA. What's the problem ? What can I do ?
2008 Aug 04
1
R and emacs
I wrote a "program" truc.r with emacs
In emacs, I start the buffer R, then I eval the buffer truc.r (C-c C-b)
All is correct and I have my results.
But, when I return to Console R, and make:
> source ("truc.r"), I obtain an error:
Erreur dans source("truc.r") :
invalid multibyte character in parser at line 1
If I copy, line by line the instructions of the
2008 Aug 03
1
(sans objet)
- Peut-on poser des questions en fran?ais?
- Tr?s simple. Je fais un programme "truc.r" (sous emacs)
Ce programme r?alise des graphiques.
Je voudrais les enregistrer au fur et ? mesure -- sinon, quand la
session est finie, ces graphiques sont perdus--
J'ai essay?:
pdf("truc.pdf")
Mais le fichier "truc.pdf" cr?? est vide.
Comment fait-on?
Merci et salutations
2005 Oct 31
3
Applying a function to a vector
I have defined a function to compute the value of a
beta distribution of the second kind (the existing
beta distribution of th stats package is the beta
distribution of the first kind). It works perfectly
for a single value, but I want to apply it to a vector
of 22 000 values. I can use a loop for the calculation
of each value but it runs very very slowly.
So, what can I change ?
Hers's the
2011 Apr 26
1
About snow packages
Dear Luke !
Thanh you for the lovely packages. I have used it, it woks fine for Linux, XP, but concerning about windows 7 - 64 bits.
I have problem with function makeCluster(). with R 13.0 version.
I wonder it may caused a update problem or ???
Do you have any hint ???
Best
Truc
2005 Aug 21
1
Warning when using 'prelim.mix' from the package 'mix'
'sodexquan' is an data frame of numeric variables with some missing values.
I would like to approximate these missing values using some algorithm.
I thereby chose the mix package.
But when trying to run the 'prelim.mix' function (aka the function that will
prepare the data for further calculations), R says:
prelim.mix(truc,0)
Error in as.integer.default(list(c(32, 52, 32, 27, 34,
2010 Feb 23
1
RODBC to import/export xls files
Dear R users,
I've learned today about RODBC package in order to import xls file to
dataframes and export the dataframes to xls files.
However I have some problems. Please excuse me if these are basic but as
I said, I've just begun with this package.
Also this email is quite long, but everything is related, so I don't
think it would be better to split it. Moreover, there's a
2003 Jan 20
2
ave across columns
Hi:
How do I find average across three columns such as weight1, weight2,
weight3 (20 people, each person has three different measures)? They have
NA's also. Thanks
Tom, Univ of Pittsburgh, ttrut at yahoo.com
2018 May 09
2
ScalarEvolution questions
Hi,
I'm new to ScalarEvolution and wanted to explore its capabilities.
I have following few questions:
1) How to compare SCEV expressions.
I have a situation to compare two SCEV to find the min among them.
Found an existing function(getMinFromExprs) in LoopAccessAnalysis which compares two SCEVs.
getMinFromExprs function finds the diff between two SCEV's and then checks for the negative
2009 Feb 19
2
table with 3 variables
I have the initial matrice:
> *data.frame(Subject=rep(100:101, each=4), Quarter=rep(paste("Q",1:4,
sep=""),2), Boolean = rep(c("Y","N"),4))*
Subject Quarter Boolean
1 100 Q1 Y
2 100 Q2 N
3 100 Q3 Y
4 100 Q4 N
5 101 Q1 Y
6 101 Q2 N
7 101 Q3 Y
8 101
2018 May 10
2
ScalarEvolution questions
Thanks Sanjoy, I'll look into this.
-----Original Message-----
From: Sanjoy Das [mailto:sanjoy at playingwithpointers.com]
Sent: Thursday, May 10, 2018 8:07 AM
To: Nema, Ashutosh <Ashutosh.Nema at amd.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] ScalarEvolution questions
Hi Ashutosh,
On Wed, May 9, 2018 at 3:28 AM, Nema, Ashutosh via llvm-dev <llvm-dev at
2009 May 06
1
Samba group management understanding
Hello all,
I want to set up a share for a project (enseign)
First thing I did is to create a group for that project (with
smbldap-groupadd) and add project members to that group.
Then I created a test_smb directory on my linux server with the
following access rights:
drwxrwx--- 2 gbayard enseign 4096 avr 29 15:03 /test_smb
Note: the idea is that only group members should be able to
2005 Dec 27
2
Create pdf and postscript files
Hello,
I would like to learn how to create a pdf and a postscript file from an R
graphic.
For example, I tried :
plot(1) # example
pdf("H:/Perso/essai.pdf")
postscript("H:/Perso/essai.ps")
But the pdf document created is empty.
How do these functions work ?
Thank you very much.
--
David Hajage
Interne de santé publique
Institut Curie
2018 May 10
0
ScalarEvolution questions
Hi Ashutosh,
On Wed, May 9, 2018 at 3:28 AM, Nema, Ashutosh via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> I’m new to ScalarEvolution and wanted to explore its capabilities.
>
> I have following few questions:
>
> 1) How to compare SCEV expressions.
>
> I have a situation to compare two SCEV to find the min among them.
>
> Found an existing
2009 Jan 09
5
grep : escape "*"
Dear R useRs,
Sorry for this foolish question, but I can't find how to escape the *
character when using grep :
> grep("-", c("/3", "2*3", "4-4"))
[1] 3
> grep("/", c("/3", "2*3", "4-4"))
[1] 1
> grep("*", c("/3", "2*3", "4-4"))
Erreur dans grep("*",
2013 Jun 21
1
doveadm move command
Hello
I want to transfer an email from user1 at domain.com to put it in a folder of another user: user2 at domain.com
For that, it seems to me appropriate to use 'doveadm move' command, but I can not get the right result. Can you help me?
syntax:
doveadm move [-u <user>|-A] [-S <socket_path>] <destination> [user <source user>] <search query>
my
2013 Jun 20
1
doveadm move syntax
Hello
I want to forward an email to user1 at domain.com box to the box user2 at domain.com
For this I try to use 'doveadm move', but I'm having problems with the syntax.
Could you give me an example please?
thanks
2005 Dec 06
4
R newbie...
Hello,
I'm a new user...
I have a function :
calculate <- function(x,y)
{
z <- x + y
}
I would like to use the result (z) with another function :
recalculate <- function(...)
{
a <- z^2
}
But R says that z does not exist...
How can I use z in an another function ?
Thank you for your answer...
--
David
[[alternative HTML version deleted]]
2018 May 16
0
ScalarEvolution questions
Hi Sanjoy,
Your inputs really helped.
Using “isImpliedCond”, able to relate and find the min for cases like:
SCEV1: (-1 + (sext i32 %n.addr.058 to i64))<nsw>
SCEV2: 0
Extra-Condition: (n.addr.058 > 7)
Result: ‘0’ (SCEV2)
I have another case where trying to find min between two SCEVs under an extra condition.
“isImpliedCond” is not helping for below case, may be I’m missing something:
2007 Nov 21
3
[LLVMdev] Add/sub with carry; widening multiply
I've been playing around with llvm lately and I was wondering something about the bitcode instructions for basic arithmetic. Is there any plan to provide instructions that perform widening multiply, or add with carry? It might be written as:
mulw i32 %lhs %rhs -> i64 ; widening multiply
addw i32 %lhs %rhs -> i33 ; widening add
addc i32 %lhs, i32 %rhs, i1 %c -> i33 ; add with carry