Displaying 20 results from an estimated 1000 matches similar to: "SAS like Macro variable substituion?"
2009 Jun 23
4
SAS Macro Variable in R
Hi I'm new to R and would like to implement a SAS-like macro variable
in R.
What I'd like to do is take the simple R code below and change the
"=TEF" to different letters to refer to different companies' data for
download.
# DOWNLOADS FILES FROM YAHOO INTERNET
2009 Sep 21
3
Basic function output/scope question
Hello Group,
I'm trying to learn R and am having a problem getting output from a
function I'm trying to write. The problem is clearly one of scope,
but I can't find the documentation that tells me how to get around the
issue.
Here is an example of my problem.
testfunc<-function(x)
{ y<-10
print(y)
print(x)
}
testfunc(4)
The variables x and y are accessible during execution
2009 Oct 28
3
Lost all script
Hi all,
I just had a rather unpleasant experience. After considerable work I
finally got a script working and set it to run. It had some memory
allocation problems when I came back so I used Windows to stop it.
During that process it told me that the script had been changed and
asked if I wanted to save it. Not being positive that I'd saved the
very last changes I said yes. Now when I
2010 Mar 18
1
Using a function to consolidate variables
Dear List,
I'm getting the error: object of type 'closure' is not subsettable
And am not sure how to get around the problem. I've included two
short code sets below. One that shows what I want to do and works,
but without using the function much, and another that tries to use the
function but causes the error.
# THIS WORKS AND SHOWS WHAT I'D LIKE TO DO
a <- c(1,2,3)
b
2009 Oct 15
1
Removing Embedded Null characters from text/html
Hi,
I'm trying to download some data from the web and am running into
problems with 'embedded null' characters. These seem to indicate to R
that it should stop processing the page so I'd like to remove them.
I've been looking around and can't seem to identify exactly what the
character is and consequently how to remove it.
# THE CODE WORKS ON THIS PAGE
library(RCurl)
2008 Jan 22
2
Help - linear regression
Hi,
I am trying a linear regression model where the dependent variable is the size of the heart corrected for the patient's height and weight. This is labelled as LAVI. The independent variables are race (european or non-eurpoean), age, sex (male or female) of the patient and whether they have diabetes and high blood pressure. sample size 2000 patients selected from a community.
when I
2004 Jan 05
1
slow and max connection errors
Sorry about not being specific enough. I will try and be more so in the
future. Here is what I have currently:
Apple X-serve running Yellowdog (a Redhat 9 port for ppc) with 1GB of
RAM, 3 60GB HD not setup as RAID. They are individual partitions (/var
and /, /home and /shared). The shared partition is strictly for Samba
file sharing. I build in a matching user in both the system and in
2018 Mar 05
2
problema con shiny
De acuerdo Carlos pero en mi ordenador no funciona y me da el error que he comentado.
Muchas gracias por tu colaboración.
Saludos,
Juan
El 04/03/2018 a las 20:09, Carlos J. Gil Bellosta escribió:
Corre perfectamente en mi máquina si borro la última línea (print(environment(show))).
Simplemente, he creado un directorio vacío (/tmp/prueba), he copiado el código (menos esa última línea) en el
2018 Mar 04
2
problema con shiny
Carlos el código es el ejemplo de shiny:
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
#setwd("C:/curso 2017-18/curso R/shiny/prueba1")
library(shiny)
# Define UI for application that draws a histogram
ui <-
2018 Mar 04
4
problema con shiny
Estimados compañeros tengo un problema con shiny. Es un problema local de mi ordenador, porque en otro va si problemas pero no consigo saber ¿cómo arreglarlo?. He instalado incluso la nueva versión de Rstudio. Os explico:
1) lanzo el programa app.R, el ejemplo de shiny e intenta mostrar los resultados pero si hago: print(environment(show)) da como resultado
Error in func(fname, ...) : app.R did
2001 Sep 27
1
Samba for Open-VMS
Hi!
I'd like to know if Samba can be installed on a Open-VMW platform. We're
trying to make a NFS network through our NT network using Samba...the
access to UNIX filesystems is ok but we have a filesystem on this Open-VMS
platform wich we'd like to get some access...is that possible with Samba?
If so, how can we do that?
Thanks in advance for any help.
[ Paulo Tavares ]
[ Oracle
2015 Apr 09
5
A vueltas con los UTF-8 en RStudio
Hola, otra vez a vueltas con los UTF8, seguro que es un tema sempiterno de esta lista y que ya se ha contestado, regannadme por ello (y por escribir sin acentos).
Genero un .rda en unix con el system default UTF8 y me lo traigo a un windows.
Tengo el Rstudio en windows configurado con Global Options > Default text encoding UTF8.
Cargo el .rda con load y nada, los acentos a la porra. Vamos, que
2018 May 10
2
anchura chunk en pdf
Instalado ?tinytex?
> install.packages(?tinytex?)
y cargándolo
> library(tinytex)
Fue una causalidad: cuando instalé este paquete los PDFs comenzaron a salir correctamente de anchura. Tampoco puede darte una explicación :(
Saludos,
Patricio
Patricio Suárez Gil
Unidad de Investigación Área V-Gijón
Planta 5ª Impar
Hospital Universitario de Cabueñes
C/Prado, 395
33203 Gijón (Asturias)
2009 Nov 24
2
Problem using LDAP generating Userhome
Hi there,
I'm trying to let dovecot generate the userhome directory dynamicly via
user_attr.
If "uid" is returned from LDAP before "mail" everything is fine, but if
"mail" is delivered
before "uid" the localpart of the mailaddress is used in home path.
e.g.:
Mail: testuser at domain.de
UID : test123
sometimes home is /mail/store/testuser and
2015 Sep 29
2
sobre fread {data.table}
Y con fread.. directamente sobre el ".rel"...
> datIn <- fread("DRUG-AE.rel")
> dim(datIn)
[1] 6821 8
Saludos,
Carlos Ortega
www.qualityexcellence.es
El 29 de septiembre de 2015, 18:45, Pedro Concejero Cerezo <
pedro.concejerocerezo en telefonica.com> escribió:
> No tiene cabecera. Tendrás que ponerle nombre a las variables
> Prueba este código,
2015 Sep 29
5
sobre fread {data.table}
Hola, M. Luz.
Hay infinidad de motivos por los que se te puede cortar la lectura de un archivo de datos, pero los más habituales son encontrar un "#" o unas "" en los registros, o una línea toda en blanco.
Lo primero yo creo que es dejar el archivo en texto plano (lo que te recomendaba Carlos de usar el original, no el docx), y buscar esos caracteres con un editor de texto
2016 Aug 11
3
Comparación de probabilidades de supervivencia en R
Hola, Manuel,
No entiendo tu pregunta (la repito aqui para que sea mas explicito):
hay alguna forma de comparar la probabilidad de
supervivencias (en este caso anual) entre grupos sin utilizar un
chi-cuadrado y un valor de P. Entiendo que lo que hace survdiff es comparar
las curvas de supervivencia, pero yo quiero comparar la probabilidad de
supervivencia entre grupos al final del estudio.
Con
2018 May 10
2
anchura chunk en pdf
Yo he conseguido que los chunks y el texto tengan la misma anchura instalando ?tinytex?.
Un saludo,
Patricio
Patricio Suárez Gil
Unidad de Investigación Área V-Gijón
Planta 5ª Impar
Hospital Universitario de Cabueñes
C/Prado, 395
33203 Gijón (Asturias)
Tfno: 985 185 000 (Ext. 85715)
@uinvest_psg
ESPAÑA
[[alternative HTML version deleted]]
2015 Sep 30
2
sobre fread {data.table}
Hola de nuevo,
el archivo .rel esta en una carpeta comprimida .zip, yo la descomprimo con
win rar. Como no sea ese el motivo por el que no me da el fichero completo?
El 30 de septiembre de 2015, 10:30, MªLuz Morales <mlzmrls en gmail.com>
escribió:
> Pues soy gafe entonces,
> no lo entiendo:
>
> > datIn <- fread("C:\\Users\\iphealthMariluz\\Documents\\Proyecto
2015 May 06
3
Resumen de R-help-es, Vol 75, Envío 7
Vaya, polémica. ¿R puro es R base?
Porque van ya por 6618 paquetes en CRAN
http://cran.r-project.org/web/packages/index.html
Y nadie sabe bien cuántos hay en github.
Por cierto, ¿alguno conoce un código para hacer una estimación?
El 06/05/2015 a las 16:09, Freddy Omar López Quintero escribió:
2015-05-06 11:00 GMT-03:00 Pedro Concejero Cerezo <pedro.concejerocerezo en