What is the difference between char s[] and char *s?

The difference here is that will place “Hello world” in the read-only parts of the memory, and making s a pointer to that makes any writing operation on this memory illegal. While doing: puts the literal string in read-only memory and copies the string to newly allocated memory on the stack. Thus making legal.

python pip – install from local dir

All you need to do is run and pip will search /opt/mypackage for a setup.py, build a wheel, then install it. The problem with using the -e flag for pip install as suggested in the comments and this answer is that this requires that the original source directory stay in place for as long as you want to use the module. It’s great if … Read more

SummarySE (Rmisc package) to produce a barplot with error bars (ggplot2)

Both the code variants that you posted won’t work because they are using the function summarySE() wrongly: Version 1: You use Family as the measurement variable, which means that you ask the function to give you mean, standard deviation, etc. of Family. Version2: You correctly group by Family, but now you supply many measurement variables. This does not work because summarySE() expects a … Read more

Categories R Tags