Displaying 20 results from an estimated 8000 matches similar to: "different names for new files in a for loop"
2009 Sep 10
1
function to solve equations
Hi,
I am trying to solve this equation prob = exp(-3.33 + 0.0102*x)/(1+exp(-3.33 + 0.0102*x)). I want to write a function where I call the function and enter the 'prob' value and the output should be the 'x'. Im not sure how to write this. I have a basic structure but im not sure if its correct.
calc <- function(prob){
prob <- exp(-3.33+0.0102*x)/(1+exp(-3.33 + 0.0102*x))
2009 Aug 12
1
logged2
Hi,
Can you please tell me what does the the function logged2 in R do im list or..? As I have
> ?logged2
No documentation for 'logged2' in specified packages and libraries:
you could try '??logged2'
> ??logged2
No help files found with alias or concept or title matching ‘logged2’
using fuzzy matching.
Thank you in advance,
Amor
[[alternative HTML version
2011 Sep 05
2
Need more information about VGLM
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20110905/43ff838a/attachment.pl>
2010 May 05
3
Symbolic eigenvalues and eigenvectors
Let's say I had a matrix like this:
library(Ryacas)
x<-Sym("x")
m<-matrix(c(cos (x), sin(x), -sin(x), cos(x)), ncol=2)
How can I use R to obtain the eigenvalues and eigenvectors?
Thanks,
John
[[alternative HTML version deleted]]
2011 Mar 24
2
Using C code in R
Hi,
I am new to R and I want to know how to use C code which contains two
functions one called inside another.I know that how to use C code in R if it
has only one function but dont know how to do it in above case. I want to
use the same in R .My C code is as follows.
//#include <R.h>
void sayHello();
void g();
void sayhello() {
Rprintf("Hello world %d\n",global);
}
void
2012 Oct 10
2
history() does not work?
Hi,
> history()
gives Error in savehistory(file) : no history available to save
although I can scroll throu history with C^uparrow an C^downarrow.
How can I make history() work and/or show the current history in a file,
so that I can choose from previous commands?
The web did not throw up anything useful.
TIA --Christian
--
Christian W. Hoffmann,
CH - 8915 Hausen am Albis,
2010 Jun 16
2
Parallel computing on Windows (foreach) (Sergey Goriatchev)
foreach (or virtually anything you might use for concurrent programming)
only really makes sense if the work the "clients" are doing is substantial
enough to overwhelm the communication overhead. And there are many ways to
accomplish the same task more or less efficiently (for example, doing blocks
of tasks in chunks rather than passing each one as an individual job).
But more to the
2009 Aug 18
2
value of nth percentile
Dear All,
I have to get the value of say 90th percentile of precipitation time series.. The series is of daily precipitation value of 96 years, I have to to get 90the percentile value of daily precipitation each year. If you know the R code or command for this please let me know.
I would appreciate your early response.
Thanking you,
Sincerely,
Ajay.
2010 Jan 21
2
How to open .rda file in R
Hi,
I have a file containing gene expressions written using the tillingArray package. I used load() and attach() to get the data into R. Both of them works fine. Now I want to see the contents of the file. How can I see the contents of the file?
Thankyou for your time.
Regards,
Ambuj
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
[[alternative HTML version
2010 Jun 14
2
Multiple regressions
Hi,
Could you please tell me whether SVM can do multiple regression or not?
Cheers,
Amy
_________________________________________________________________
Browse profiles for FREE! Meet local singles online.
[[alternative HTML version deleted]]
2010 Sep 23
2
hdf-files
Dear All,
I have data in HDF file format and would like to read it into R.
I have tried the package hdf5 without success.
Any ideas and suggestions??
Kind regards,
Katrin
--
Katrin Fleischer
Vrije Universiteit Amsterdam
Faculty of Earth and Life Sciences
Subdepartment Hydrolgy and Geo-Environmental Sciences
Room E-360
De Boelelaan 1085
1081 HV AMSTERDAM
Tel: +31 20 59 87391
2012 Feb 20
2
R
Hello, just a couple of short questions that would be much appreciated.
Is there a way of putting a vectors inputs in size order from low to high?
And if I had a random list or TRUE and FALSE, is there a way of finding the 100th TRUE?
Thank you very much,
Elliot Welch
elliot.welch at virgin.net
Sent from my BlackBerry? smartphone
2009 Sep 11
3
Working with large matrix
Dear All,
I have large matrix (46000 x 11250). I would like to do the linear regression for each row. I wrote a simple function that has lm() and used apply(mat,1,func). The issue is that it takes ages to load the file and also to finish the lm. I am using LINUX 64 bit with 32G mem. Is there an elegant and fast way of completing this task?
Thanks in advance.
Kind regards,
Ezhil
2009 Oct 21
3
Temperature Prediction Model
Greetings!
As part of my research project I am using R to study temperature data
collected by a network. Each node (observation point) records temperature of
its surroundings throughout the day and generates a dataset. Using the
recorded datasets for the past 7 days I need to build a prediction model for
each node that would enable it to check the observed data against the
predicted data. How can
2009 Aug 12
5
Nominal variables in SVM?
Hi,
The answers to my previous question about nominal variables has lead me
to a more important question.
What is the "best practice" way to feed nominal variable to an SVM.
For example:
color = ("red, "blue", "green")
I could translate that into an index so I wind up with
color= (1,2,3)
But my concern is that the SVM will now think that the values are
2011 Feb 08
3
Parallel processing question ...
I am experimenting with parallel processing using foreach and seem to be
missing something fundamental. Cool stuff. I've gone through the list and
seen a couple of closely related issues, but nothing I've tried seems to
work.
I know that the results from foreach are combined, but what if there is more
than one variable within the loop? Below is a snippet (non-functioning) of
code that I
2010 Jun 04
2
Help with iteration using while loop
Hello everyone,
I am trying to use while loop to iterate a function until convergence. But I
am having problem when I try to use a fixed number of iterations.
Say I want to use maximum iteration of 150. If the value don't converge
within maximum iteration, show warning of no convergence.
Currently I don't have non- convergence problem so I think my code works
fine. But in future I may
2009 Nov 03
2
Change negative values in column
Hi all,
I'm trying to write a script that changes all negative values in a data frame column to a small positive value, based on the the minimum value of the column.
However, I get the following error:
Error in if (x[i] < 0) { : argument is of length zero
As well, I would "minimum" to be the smallest of the non-negative values...
2009 Sep 15
2
Putting together a constantly evolving package
Hi all,
I'm putting together some common code + data into a custom package,
everything is working out fine, but the ``R CMD INSTALL MyPackage``
call seems to take a particularly long time in the "**data" step:
$ R CMD INSTALL MyPackage/
* installing to library ?/Library/Frameworks/R.framework/Resources/
library?
* installing *source* package ? MyPackage? ...
** R
** data
2011 Sep 08
2
As a package author, is there a way to specify that your package is architecture (x86_64) specific?
Hi,
Essentially: subject line says it all.
I've created a package that wraps an external c++ library (which I
didn't write) that only successfully compiles on 64bit machines.
I'd like to make the package broadly available, but is there a way to
get it on CRAN if the 32-bit builds break by specifying its 64-bit
only somehow?
Luckily, I've ./configure'd my