Displaying 20 results from an estimated 10000 matches similar to: "To add text in a matrix"
2004 Nov 11
6
scan or source a text file into a list
I've ported somebody else's rather cumbersome Matlab model to R for
colleagues that want a free build of the model with the same type of I/O.
The Matlab model reads a text file with the initial parameters specified as:
C:\Data\Carluc\Rport>more Params.R
# Number of years to simulate
nYears = 50;
# Initial year for graphing purposes
year0 = 1970;
# NPP/GPP ratio (cpp0 unitless)
fnr =
2017 Nov 29
3
RFC: Adding 'no-overflow' keyword to 'sdiv'\'udiv' instructions
Introduction:
We would like to add new keyword to 'sdiv'\'udiv' instructions i.e. 'no-overflow'.
This is the updated solution devised in the discussion: http://lists.llvm.org/pipermail/llvm-dev/2017-October/118257.html
The proposed keywords:
"nof" stands for 'no-overflow'
Syntax:
<result> = sdiv nof <ty> <op1>,
2010 Jan 25
2
Two == expressions in bquote
Hi,
I want to put text on a plot containing something like: a = b^2 = <squared numeric value of b> using bquote.
Example:
mu = 5
plot(1:10,1:10)
text(2,8, bquote(delta == mu^2)) # This works
text(2.5,8, bquote(phantom(0) == .(mu^2))) # but is unpredictable
text(2,8, bquote(delta == mu^2 == .(mu^2))) # This doesn't work
The last text function returns the error:
2006 Aug 06
1
Take random sample from class variable
Dear all,
Suppose I have a dataset like below, then I take for example, 100
random sample "class" variable where contains "yes" and "no"
respectively, 70% and 30%.
I need a new 100 random sample from mydat dataset, but I can't get the result.
Thanks you very much for any helps.
Best, Muhammad Subianto
mydat <- data.frame(size=c(30,12,15,10,12,12,25,30,20,14),
2010 Aug 31
3
"mode" function
Hi, I have what I think is a simple question/issue but I have unable to find the answer for it either in the R-manual or by browsing the web.
I would like to know if there is a "mode" function in R, such that from a vector or matrix the function returns the most common value. In other programs I use (such as Matlab) I can have for exampe a 3X3 matrix A, A=[1 2 3; 1 3 2; 3 3 2] and I
2001 Oct 17
2
File reading.
Hi all,
Appologies for the rather basic IO question but I am rather new to R...
Migrated from IDL/Matlab recently. I have a rather simple Fortran
control file (sigh...) that I am trying to parse and read using R. My
problem is that the file's format is somewhat flexible. Imagine:
---
1> 39 1901
2> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
3> 22 24 26 28 30 32 34 36
2009 Oct 22
2
Diffusion of particles inside a sphere
Hello veryone,
I am interested in the diffusion of particles inside a sphere, and its release through a small pore on the sphere surface. Unfortunately, I have not found the way to do this in R. Could you help me?
Thank very much in advance for your help
2010 Feb 15
3
executable R script under xp (to avoid migration toward Matlab or C++)
Hello,
I discovered R two years ago and thanks to the R-community I managed to
write some scripts to analyze my data stored in mysql databases.
The only problem is that I am the only one using R in the lab. Colleagues
mainly use Matlab (but not with mysql, only with text files) but regularly
come to me to get data treated with R-scripts !!!.
To allow the use of my scripts by other people, my
2006 Apr 01
3
issues with password-file
I have rsync daemon running on a fedora core 4 box that I am trying to use
as a backup server for my web sites. I dont have shell access on my web
host so will need to run a cron job to do the backups, which is what I want
to do anyway.
For testing purposes however I am using a php script using the "system()"
function so I am getting some feedback.
In my rsyncd.conf file I have the
2008 Nov 02
2
R CMD check with Matlab and perl?
Hi, All:
How might one test Matlab and perl code during "R CMD check"?
I ask for two reasons: First, the "fda" package exists in both R
and Matlab, and it would help if we could run test examples in Matlab as
part of "R CMD check". I tried "R.matlab", but could not get it to work
in that context.
Second, I have professional
2009 Jan 23
2
R for Computational Neuroscience?
Hi all,
I've noticed that many computational neuroscience research groups use
MATLAB. While it's possible that MATLAB may have some features
unavailable in R, I suspect that this may instead simply be a case of
costly tradition, where researchers were taught MATLAB as students and
pay for it as researchers because it's all they know.
I'd like to attempt to break the cycle by
2007 Feb 06
15
R in Industry
The other day, CNN had a story on working at Google. Out of curiosity, I
went to the Google employment web site (I'm not looking, but just
curious). In perusing their job posts for statisticians, preference is
given to those who use R and python. Other languages, S-Plus and
something called SAS were listed as lower priorities.
When I started using Python, I noted they have a portion of the
2004 May 28
5
vector normal to a plane
Hi All,
(I have a degree in math, but I am too embarassed to ask my colleagues,
so here goes:)
I would like to get a vector normal (orthogonal) to a plane formed by
two other vectors. In matlab I do this:
v1 = [.4, .6, .8]; v2 = [.9, .7, .2]; nn = cross(v1,v2) (gives ~[-.48,
.65, -.24]
if I do R> cross(v1, v2), I get .94. Huh?
Thanks for all your help, again.
W
2006 Sep 06
3
continuation lines in R script files
When I have to enter a very large matrix into the R console, I can make
use of the continuation feature in the console to enter the matrix in
pieces (e.g., on a row by row basis). So, for example, the console
would show the "+" sign for continuation lines - something like what
I've written below:
a=matrix(c(0,20,50,
+ 0.05,0,0,
+ 0,0.1,0),
+ 3,3,byrow=T)
(obviously, for a
2019 Jan 16
2
optimizacion costos
Estimados.
Hace un tiempo que tengo una duda, estaba pensando en los problemas como
optimización de costos, donde hay varias alternativas y librerías, pasando
por soluciones inspiradas en energía, genética o algo matemático como
matrices y álgebra.
Luego aparecen tensorflow, cntk, y otros tantos, de los cuáles
https://keras.rstudio.com/ ofrece alternativas para mezclar los mundos por
decirlo de
2010 Jun 18
1
Read SPSS v 18 .sav file
Hi,
I repeatedly get an error when trying to read an SPSS v. 18 .sav file into R.
> require(foreign)
Loading required package: foreign
> femaleSPSS.dat <- read.spss("female-04-02-2010.sav")
Warning message:
In read.spss("female-04-02-2010.sav") :
female-04-02-2010.sav: Unrecognized record type 7, subtype 18 encountered in system file
>
However, read.spss works
2017 Nov 22
3
Tibble o data.table?
Que es postgres y presto?? Se uqe google tiene la respuesta,....
________________________________
De: José Luis Cañadas <canadasreche en gmail.com>
Enviado: miércoles, 22 de noviembre de 2017 22:01
Para: Jesús Para Fernández
Cc: Carlos Ortega; r-help-es en r-project.org
Asunto: Re: [R-es] Tibble o data.table?
Yo la ventaja que le veo a tibble y demás cosas del mundo tidy es la conexión a
2020 Jul 31
2
Mejor paquete machine learning
Puedes poner el post de kaggle?
Get Outlook for Android<https://aka.ms/ghei36>
________________________________
From: Emilio L. Cano <emilopezcano en gmail.com>
Sent: Friday, July 31, 2020 6:05:57 PM
To: Jesús Para Fernández <j.para.fernandez en hotmail.com>
Cc: r-help-es en r-project.org <r-help-es en r-project.org>
Subject: Re: [R-es] Mejor paquete machine learning
Yo
2017 Nov 22
3
Tibble o data.table?
Tienes razon de que hay una serie de paquetes que lo usan, pero me da que vienen impulsados por Rstudio desde el paquete tidyverse...
Yo me resisto a usarlo. Me parece que queda mas limpio, pero no se porque no le pillo la gracia...Quizas sea el apoyo de Rstudio lo que me tire para atras...
________________________________
De: Carlos Ortega <cof en qualityexcellence.es>
Enviado: miércoles,
2005 Jun 21
3
R-help
Background:
OS: Linux Mandrake 10.1
release: R 2.0.0
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3
---------------------------------
Colleagues
Is there a function in R that is an equivalent of zoom in matlab? This is
very useful for being able to magnify details in a plot.
I have searched the help for "zoom", "interactive zooming", and "magnify".
The R search